Wednesday, November 12, 2008

Step By Step Deploying struts in Eclipse

Requirements:

  • Tomcat preferable zipped or tar version.
  • Eclipse IDE
  • Eclipse tomcat plug-in.
  • Struts binary.

Configurations step by step:

  • Extract tomcat to directory.

Eclipse configurations:

  • Extract tomcat plugin to current directory.
  • Paste the extracted contents (com.sysdeo….. Folder) to {eclipse-home}/plugin folder.
  • Start eclipse (Verify the tomcat start, stop and restart buttons are appearing in toolbar).
  • Click on Window -> preferences -> tomcat.

i) Select right version of tomcat.

ii) Browse upto tomcat home directory.

iii) Hit ok button.

  • Click File -> New -> project -> java -> tomcat project, click & continue.

















  • Enter project name as firststruts hit next button, then on next screen press finish button.

  • Then control will come back to eclipse, expand the directory in eclipse project explorer, you will see the following directory structure.









  • Click on project name and then click Project -> properties -> build path.
  • Click on source, select existing source folder and remove them.











  • Now, click on Add folder and select check src folder and press ok.











  • You can see the change in project directory structure.











  • Now directory structure is complete, you can add all struts helper jar into WEB-INF/lib.
  • And all required tld files to WEB-INF dir.
  • Bingo, You are done with initial setup.