Reputation: 934
I would like to add the struts framework to my eclipse helios j2ee version. Plese give me the guidance regarding this.
Thanks in advance.
Upvotes: 4
Views: 19926
Reputation: 1320
WEB_INF/lib
folder of your application:
Configure the Web application so that the Struts framework will handle all page requests by adding these lines to the web.xml
file:
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Create the struts.xml
configuration file.
Source (and further information): http://struts.apache.org/2.2.3/docs/create-struts-2-web-application-with-artifacts-in-web-inf-lib-and-use-ant-to-build-the-application.html
One more jar you need to add that is commons-lang3-x.x.jar
Upvotes: 5