Posts

How to configure the struts2 web application - Step 1 - web.xml add filter dispatcher  <filter> <filter-name>struts2</filter- name> <filter-class> org.apache.struts2.dispatcher. FilterDispatcher </filter-class> </filter> <filter-mapping> <filter-name>struts2</filter- name> <url-pattern>/*</url-pattern> </filter-mapping> Step 2 - add 5 jar files which required in struts2.x commons-logging-1.1.jar freemarker-2.3.8.jar ognl-2.6.11.jar struts2-core-2.0.6.jar xwork-2.0.1.jar Step 3 - add resource folder in below of src folder. create struts.xml file in this resource folder. create ApplicationResource.properties file in this resource folder Step 4 - In struts.xml add  <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" " http://struts. apache.org/dtds/struts-2.0.dtd "...