Archive for July, 2007|Monthly archive page

referring the css files for webpages inside Netbeans IDE

If you are dealing with CSS (Cascading Style Sheet) files for the web pages inside Netbeans IDE, you need to know one thing.

It does not pick up the .css files as referred in the files which has the link to it. Generally, all other IDEs and Application Servers should work that way. But when i had been doing a J2EE based web application, i found that aspect missing. When i tested, the pages were displayed as if the css files were not present at all.

Though i tried by placing the css file in a different location  by thinking that whethere the relative path given by me would have got some mistakes, there was no luck still. Then i got a doubt and referred the Help section of the IDE itself. You got to do a different work around for your css files to have effect.

Actually, the Netbeans IDE places (keeps its own references to) the css files in a separate location which is totally far away from your application’s root folder. You have to get that location and put it in the files whichever need the css links (in case of .html, .jsp files).

Steps to do that:

1. Select the particular .css file and Right click on it.

2. Click on either the ‘Copy XML Style’ or ‘Copy HTML Style’ based on the file types where you gonna link this .css file.It will copy the location of this .css file from the Netbean’s perspective into the Clipboard.

3. Now paste the copied text (actual reference to the .css file) in the appropriate place of the files needing this .css file.

In case of .html file, it would be in the ‘href’ attribute of ‘<link>’ element placed inside the ‘<head>’ element. In case of .xml files, place the reference after the XML prologue or header.

Really don’t know whether its purely based on the Netbeans IDE or the internally built-in Tomcat has some contribution towards this! Is this a bug in Netbeans? Yet to find out that 🙂

But somehow found this to get the css effects on pages with an overhead towards portability! If at all, i need to take the .war file and place it normal Tomcat itself, i may need to change the reference to the .css files referred everywhere right. Just to avoid that , i have made one common .jsp file where i have put this .css reference in <link> element and included this .jsp file in all the other .jsp files through include directive!


how to deal with java programs in EditPlus

This post may help you to deal with Java Programs in the EditPlus – a famous editor for many different type of files (for example, .java, .css, .html, .sql, .txt etc).

 One more similar editor is TextPad, which can directly deal with Java applications as its taking the Java Compiler by default from the installed location in the machine it is running.  Thats one advantage with that.

What exactly do i mean to say “dealing with Java applications”? Does it mean typing the source code? Absolutely NOT! That does not require any special settings and you can start typing as you would with any other file. I mean to say, “Compiling” and “Running” of Java applications.

In EditPlus, we cannot direclty deal with Java Applications and they need some sort of settings to do that. Lets see them one by one.

1. Options to set for Compilation (“javac”):

Go to “Tools” Menu -> and click on “Configure User Tools…” option.

 Click on the individual images to see the full-size screenshots if it does not display the image in full. 

Every image has the required description and explanation for the step.

Image1:  Clicking on “Configure User Tools…” Option in the “Tools” Menu

1_Tools Menu-ConfigureUserTools

It will open a new dialog box where in you can enter your details to configure for the tools.

Image2: The Initial Groups and Tools Window dialog box

2_Empty Groups and Tools Items Window

Image3: Clicking on “Add Tool” button in the Dialog box

3_click on AddTool

Image4: The Initial window on “Add Program”


Image5: Configuring “javac” for compilation – step 1


Image6: Configuring “javac” for compilation – step 2


Image7: Verifying the “javac” tool added in the “Tools” Menu


2. Options to set for Execution (“java”) :

Image8: Configuring “java” for execution

7_Configure java

Image9: Verifying the “java” tool added in the “Tools” Menu


Image10: Compiling a Java Program

9_Compile Java Program

Image11: Running (Executing) a Java Program by giving the command line arguments

10_Run Java Program with cmd line args

Image12: Output of running the Java Program with command line arguments

11_Run Java Program with cmd line args-output

Image13: Output of running the Java Program without any command line arguments

12_Run Java Program with no cmd line args-output

Hope the series of screenshots helped you configure and run a Java Program in EditPlus.

I have blogged this steps as i have seen this in one of the threads in JavaRanch. But still, i would suggest you to just proceed with Notepad and the normal Command Window if you are in the beginning stage because the ordinary plain text editor like Notepad will help you improve your language syntax by not having any support for syntax highlighting!

It would be so nice if you could please share your feedbacks and suggestions if any for the improvement of the material.

படம்  : கிரீடம்
இசை : ஜி.வி. பிரகாஷ் (வெயில் படத்தின் இசையமைப்பாளர்)
பாடியவர்கள் : சாதனா சர்கம்
பாடல் : நா.முத்துக்குமார்


அக்கம் பக்கம் யாருமில்லா பூலோகம் வேண்டும்
அந்திபகல் உன்னருகே நான் வாழ வேண்டும்
என் ஆசை எல்லாம் உன் நெருக்கத்திலே
என் ஆயுள்வரை உன் அணைப்பினிலே
வேறென்ன வேண்டும் உலகத்திலே
இந்த இன்பம் போதும் நெஞ்சினிலே
ஈரேழு ஜென்மம் வாழ்ந்துவிட்டேன் (அக்கம்பக்கம்)


நீ பேசும் வார்த்தைகள் சேகரித்து செய்வேன் அன்பே ஓர் அகராதி
நீ தூங்கும் நேரத்தில் தூங்காமல் பார்ப்பேன் தினம் உன் தலைகோதி
காதோரத்தில் எப்போதுமே உன் மூச்சுக்காற்றின் வெப்பம் சுமப்பேன்
கையோடு தான் கைகோர்த்து நான் உன் மார்புச்சூட்டில் முகம்புதைப்பேன்
வேறென்ன வேண்டும் உலகத்திலே இந்த இன்பம் போதும் நெஞ்சினிலே
ஈரேழு ஜென்மம் வாழ்ந்துவிட்டேன்
(அக்கம் பக்கம் யாருமில்லா)


நீயும் நானும் சேரும்முன்னே நிழல் ரெண்டும் ஒன்று கலக்கிறதே
நேரம் காலம் தெரியாமல் நிஜம் இன்று விண்ணில் மிதக்கிறதே
உன்னால் இன்று பெண்ணாகவே நான் பிறந்ததின் அர்த்தங்கள் அறிந்துகொண்டேன்
உன் தீண்டலில் என் தேகத்தில் புது ஜன்னல்கள் திறப்பதைத் தெரிந்துகொண்டேன்
வேறென்ன வேண்டும் உலகத்திலே இந்த இன்பம் போதும் நெஞ்சினிலே
ஈரேழு ஜென்மம் வாழ்ந்துவிட்டேன்

னானனனா னானனனா னானான னானா
லாலலலா லாலலலா லாலால லாலா

Know hitcount and statistics of your website!

Hello Buddies,

Have you ever come across a situation that you would like to know the hit counts and statistics of your website categorized based on several parameters?

I have just come across such a site which helps you to do that. The site is

How would i get to know the traffic statistics about a particular site straightaway?
Well, What you need to do is you need to append the URL you are interested in at the end of this string<YOUR_URL&gt;

   Say, for example this URL will give you the statistics of traffic about the site TSDN, from where i got this information especially in this thread.

 Where i should get the information about the Traffic details?

    It would be good if you go through the information (FAQ) provided in the website before actually proceeding with your website.

    You can get to know the complete information here.

 Hope you may find it useful.

opening the html file inside an archive

Have you tried opening a HTML file which is present inside an archive file say for example a .zip file in Windows OS?

In Windows XP, it allows you to just open and see the contents of a zip file directly without using an extractor (WinZip etc), as if it was a normal folder. In such case, you may get access to the files present in the zip file (archive).

When you open a HTML file inside the archive, and if in case the html file contains some images, the images will not be displayed in the opened HTML file. You may wonder why it does not display the images though the images being referred are present in an appropriate folder for images alone (say a directory named “images” which is the traditional way)!!

The reason is, though you have opened the HTML file from an archive directly, the opened HTML file is alone opened and NOT the files/images present in the other directories. That’s why the images are not properly displayed.


You need to extract the zip file using an extractor. Say, WinZip for an example. Once you extract, all the contents in a zip file will get extracted including images. Then when you open the HTML file, the opened HTML file will now have access to the images present in the appropriate folder (“images”) since that folder also is extracted and available.

Happened to help one of my colleagues when she asked me by saying the error. Thought of blogging it as well after explaining it to my colleague. 😉