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" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <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"/> </struts> 5) set up your web.xml : <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <filter> <filter-name>struts</filter-name> <filter-class> org.apache.struts2.dispatcher.FilterDispatcher </filter-class> <init-param> <param-name>actionPackages</param-name> <param-value>com.thestreet.web.actions</param-value> </init-param> </filter> <filter-mapping> <filter-name>struts</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> 6) happy coding. hth, -a (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, xwork, (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: http://www.nabble.com/Configuring-Struts-with-eclipse-tf4069766.html#a11568684 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]