It's relatively easy.

You want the WTP  ( unless you're using some customized version like
MyEclipse, at which point, I can't help ).

a) Create a Dynamic Web Project.
b) Set up your Server Runtime (1) (2)
c) Drop your jars into WebResources/WEB-INF/lib  (3)(4)
4) write up your struts.xml :

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 2.0//EN"  "";>
        <constant name="struts.devMode" value="true"/>
        <constant name="struts.enable.SlashesInActionNames" value="true"/>
        <constant name="struts.mapper.alwaysSelectFullNamespace" value="false"/>
        <constant name="struts.ui.theme" value="xhtml"/>
        <constant name="struts.objectFactory" value="guice"/>
        <constant name="struts.action.extension" value="action,ajaxaction"/>
        <include file="struts-default.xml"/>

5) set up your web.xml :

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"




6) happy coding.


(1) if you're using Eclipse Europa 3.3, you can use the J2EE preview to run
an embedded version of jetty so you don't even need an external runtime.
(2) certain servers, like glassfish and geronimo, can actually be installed
directly from this setup screen.
(3) at the very least you'll need the struts2-core, ognl, commons-logging,
(4) fwiw, I like to use the codebehind plugin ( or at your leisure, use the
smarturls plugin )

umeshawasthi wrote:
> HI All,
> Can any body tell me how can i configure Struts in Eclipse i am using
> Eclipse 3.2.2 .How can i start a struts project in the Eclipse.Any help
> will be much appriciated.
> thanks
> --umesh :(

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to