struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <George.Dinwid...@wellsfargo.com>
Subject RE: modules and url
Date Fri, 03 Feb 2006 20:22:13 GMT
see http://struts.apache.org/struts-action/userGuide/configuration.html#5_4_2_Configure_the_ActionServlet_Mapping

"WARNING - If you are using the new module support since Struts 1.1, you should be aware that
only extension mapping is supported."

> -----Original Message-----
> From: Raúl Eduardo Plata [mailto:raul.plata@i2b.cl] 
> Sent: Friday, February 03, 2006 3:10 PM
> To: user@struts.apache.org
> Subject: modules and url
> 
> 
> Hi, i am using two modules on my web.xml
> 
>     <servlet-name>action</servlet-name>
>     
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>     <init-param>
>       <param-name>config</param-name>
>       <param-value>/WEB-INF/struts-config.xml</param-value>
>     </init-param>
>     <init-param>
>       <param-name>config/test</param-name>
>       <param-value>/WEB-INF/struts-test.xml</param-value>
>     </init-param>
> 
> But my mapping instead of use *.do is using /do/*
> 
>     <servlet-mapping>
>     <servlet-name>action</servlet-name>
>     <url-pattern>/do/*</url-pattern>
>   </servlet-mapping>
> 
> 
> How can i call an action in module test?
> 
> using the default .do mapping i can do it with:
> url : http://localhost:8081/context/test/mytest.do
> action: 
> http://localhost:8081/context/switch.do?> prefix=/test&page=/mytest.do
> 
> but using "my mandatory" /do/* is not working with
> url : http://localhost:8081/context/test/do/mytest
> action: 
> http://localhost:8081/context/do/switch?> prefix=/test&page=/do/mytest
> 
> Please help
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message