Eclipse WTP / Struts 2 / Tomcat 5.5 Setup

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.

Advertisement

4 Responses to “Eclipse WTP / Struts 2 / Tomcat 5.5 Setup”

  1. Rick Hung Says:

    Then what? I meant after step #3? Instruction was not clear.????

  2. grish Says:

    thaks for this. But I want to get complete step on manual setup eclipse for develop web application.

  3. gabriel struts Says:

    thank you so so so so much this was SO helpful to me! how generous of you to share your knowledge!

    CHeeers,
    Gabriel

  4. Nagaraj Says:

    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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.