You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by "R Singh (JIRA)" <ca...@jakarta.apache.org> on 2009/06/10 10:23:07 UTC
[jira] Created: (CACTUS-264) Struts2 Integration with Cactus
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-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org