Main BLOGGER
Google
WWW THIS BLOG
Monday, August 21, 2006
 
First servlet and JSP
1. download and install Eclipse and Tomcat plugin
see http://www-128.ibm.com/developerworks/library/os-ectom/

2. create a Tomcat project

3. Write the Servlet code

4. create web.xml file
specify servlet and servlet-mapping section

5. start tomcat
from the icon

6. in the browser type in:
http://localhost:8080/firstServlet/hello


Also see
http://www.xwt.org/tutorial/eclipse/
http://jakarta.apache.org/cactus/integration/howto_tomcat.html

Trouble shoot for JSP
If tomcat is started as windows services, tomcat will complain it can not find tools.jar to compile jsp file. To solve this issue, simply copy the tools.jar file to TOMCAT_HOME/common/lib



<< Home

Powered by Blogger

Google
WWW THIS BLOG