Wednesday, June 20, 2007

Eclipse Tomcat IDE Configuration

Development Environment
  • JSP
  • Servlet
  • Database (MySQL/or any)
  1. Download Eclipse from www.eclipse.org version eclipse-sdk--win32.zip and extract to your desired folder.
  2. Download Tomcat from www.tomcat.apache.org and extract to your desired folder any binary version.
  3. Download sysdeo eclipse tomcat launcher plugin version tomcatPlugin.zip and extract it to eclipse plugin directory.
File Structure in Eclipse
  1. /project - All JSP fles
  2. /project/WEB-INF - Configuration directory containing deployment and descriptors
  3. /project/WEB-INF/classes - Servlet object directory
  4. /project/WEB-INF/src - Source directory for servlet
  5. /project/WEB-INF/lib - library and jar file for the project
  6. /project/work - Working directory containing pre-compiled JSP files
And at last we have to create a web.xml file in WEB-INF folder, the file is about your class file specified directories...

No comments: