I'm trying to get an application running using both Struts1 and Struts2. Reason being it's being migrated but there is a lot of Struts1 which we want to do bit by bit not big bang... I know this can be done
Anyhow I cannot get my S2 filter to pick up my URL and no errors are being given when I access a *.action URL ! All S1 pages still work fine. My web XML contains the S2 config...
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
and the S1 servlet
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
I've also set up a simple TestStruts2Action class extending Action that literally just had a syso in it to prove it reached the action. XMLconfig'
<package name="main" extends="struts-default">
<action name="testStruts2" class="com.myclass.TestStruts2Action">
<result name="success">test/testStruts2.jsp</result>
</action>
</package>
All I get is the applications 404 page when hitting the URL /MyApp/testStruts2.action
My JSP is literally just a HelloWorld example and held under test/testStruts2.jsp
Any ideas ? With no errors during start or logged when I hit the URLs I'm at a loss as to what to try next...
Attempted adding namespaces