After installing the tomcat server,put the apache-tomcat folder into C:\ drive.Then go to Start menu->Control Panel->System->Advanced tab->Environment Variables-> and set the Environmental Variable:
1) CATALINA_HOME = C:\apache-tomcat-5.0;
2) Put the servlet-api.jar into lib folder of apache tomcat folder and set the classpath:
Create a folder 'application' into C:\apache-tomcat-5.0\webapps.You can specify any name to the folder but it should be meaningful.
After that create a jsp file 'hello.jsp' and put it into the 'application' folder.
Start the tomcat from C:\apache-tomcat-6.0.16\bin and double click the startup.bat. Then open the browser and type the following url:http://localhost:8080/application/hello.jsp
For more information,please visit the following links:http://www.roseindia.net/jsp/