Steps for Servlet ----------------1. Save the servlet file in the following path d:\program files\apache group\tomcat 4.1\webapps\examples\web-inf\classes\.java 2. In the cmd prompt type the following cd program files\Apache group\tomcat 4.1\webapps\examples\web-inf\classes set path=%path%;d:\jdk1.3\bin; set classpath=%classpath%;d:\program files\apache group\tomcat 4.1\common\lib\servlet.jar 3. To compile the servlet file javac .java Start tomcat --> start -- programs-- tomcat 4.1 -- start tomcat 4. To execute the servlet file open the browser -- type the following path in the address bar http:\\localhost:8080\examples\servlet\ Steps for JSP ------------1. Save the jsp program in the following path d:\program files\apache group\tomcat 4.1\webapps\examples\jsp\.jsp 2. To execute open the browser -http:\\localhost:8080\examples\jsp\.jsp