You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bachan s <ba...@yahoo.com> on 2002/10/24 01:45:32 UTC
Problem with modules
Hi ,
I am trying to work with sub application(modules) in Struts 1.1 .
I have made the following entry in my web.xml
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/conf/struts-default.xml</param-value>
</init-param>
<init-param>
<param-name>config/mod</param-name>
<param-value>/WEB-INF/conf/struts-mod.xml</param-value>
</init-param>
<init-param>
and also mode the following entry for switch action in my struts-default.xml
<action path="/switch" type="org.apache.struts.actions.SwitchAction"/>
Now when I try to access
using the URL
http://127.0.0.1:8080/struts-example/switch.do?prefix=mod&page=index.do
I am getting the following error
Invalid sub-application prefix module1 was specified
Could anyone let me know where I am making the mistake .
Thanks !
Bachan
---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
Re: Problem with modules
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Wed, 23 Oct 2002, bachan s wrote:
>
> http://127.0.0.1:8080/struts-example/switch.do?prefix=mod&page=index.do
>
Change this to:
http://127.0.0.1:8080/struts-example/switch.do?prefix=/mod&page=index.do
(i.e. the module prefix includes the preceeding slash, just like
module-relative and context-relative paths do).
>
> Bachan
>
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problem with modules
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Wed, 23 Oct 2002, bachan s wrote:
>
> http://127.0.0.1:8080/struts-example/switch.do?prefix=mod&page=index.do
>
Change this to:
http://127.0.0.1:8080/struts-example/switch.do?prefix=/mod&page=index.do
(i.e. the module prefix includes the preceeding slash, just like
module-relative and context-relative paths do).
>
> Bachan
>
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>