Print this page

 

Download Tomcat from here.  On Windows, expand to c:\tomcat.

Download the Eclipse IDE for Java EE Developers from here. On Windows, expand to c:\eclipse. 

Copy the following JAR files from c:\tomcat\lib to <java directory>\jre\lib/ext:

servlet-api.jar
jsp-api.jar
el-api.jar
tomcat-dbcp.jar

Start Eclipse and do the following:

File, New -> Project
Select "Dynamic Web Project" under Web.
On the following screen, press "New Runtime..."  and then select the appropriate version of Tomcat.

If JSTP tags are required:

  • Download from here 
  • Add standard.jar and jstl.jar to WEB-INF/lib for the project.
  • Copy the c.tld of the jstl package to WEB-INF for the project.
  • Add the following lines to the WEB-INF/web.xml file for the project:
<jsp-config>
<taglib>
 <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
 <taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
</jsp-config>

To use MySQL, copy mysql-connector-java-5.1.13-bin.jar to tomcat\lib.