In this post, I will discuss setting up the environment and importing the struts-blank.war to get started with Struts 2 development in Eclipse WTP using Tomcat 5.5 for deployment.
1. Download EclipseWTP all-in-one zipped package from [http://www.eclipse.org]. Make sure Eclipse uses Java 5 or later. Otherwise the J2EE perspective is not enabled.
2. Download Tomcat plugin for Eclipse from [http://www.eclipsetotale.com/tomcatPlugin.html]. The plugin enables to control the Tomcat instance from within eclipse. It also redirects the tomcat debug information to eclipse console. It is very useful for debug purposes and the plugin works pretty well.
Copy/Paste the files into plugin directory of Eclipse installation.
3. Download struts-blank.war from [http://struts.apache.org/index.html]. This war will be imported into eclipse as a project and should be used as a starting point for other struts projects.
January 29, 2008 at 11:10 am
Then what? I meant after step #3? Instruction was not clear.????
March 30, 2008 at 5:49 am
thaks for this. But I want to get complete step on manual setup eclipse for develop web application.
August 14, 2008 at 2:12 am
thank you so so so so much this was SO helpful to me! how generous of you to share your knowledge!
CHeeers,
Gabriel
September 24, 2008 at 7:25 am
Very Simple
1. Open Eclipse
2. New Project –> Plz select Dynamic Web Project. n select server accordngly
3. In web-inf/lib Folder Copy These jars from the Struts2
struts2- Core
Freemarker
Oro
Xwork
ognl
4.create Your struts.xml under src folder
5. Add struts2 filter in web.xml
6.write your actions and jsp and execute