Struts2 Integration with Cactus
-------------------------------

                 Key: CACTUS-264
                 URL: https://issues.apache.org/jira/browse/CACTUS-264
             Project: Cactus
          Issue Type: Improvement
          Components: Framework
    Affects Versions: 1.7.2
         Environment: Struts 2.1.6, Cactus 13.1.7.2
            Reporter: R Singh


Hi,
Please tell me if cactus supports testing of Struts2 application. If yes, then 
how to configure the mapping of struts2 filter inside web.xml as it parses all 
the url.for eg.
<filter>
                <filter-name>struts</filter-name>
                
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
        </filter>

        <filter-mapping>
                <filter-name>struts</filter-name>
                <url-pattern>/*</url-pattern>
        </filter-mapping>
So in this case it searches the ServletRedirector mapping in Struts.xml 
configuration file due to which all test fails saying:
org.apache.cactus.internal.client.ParsingException: Not a valid response [404 
There is no Action mapped for namespace / and action name ServletRedirector.]. 
If I change the url-mapping to *.action, one of the Struts tag(datetimepicker) 
stops working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscr...@jakarta.apache.org
For additional commands, e-mail: cactus-dev-h...@jakarta.apache.org

Reply via email to