You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Craig Laverty <cl...@clearframe.ca> on 2004/02/23 23:28:05 UTC
url pattern /do/* and modules
Hi,
I am looking for advice on how to get a struts application using the url-
pattern /do/* to work for multiple modules.
Using the simple-modules-example I was able to get the default .do to work,
but the Ted Husted way /do/* does not.
works
<forward name="goToMod1" contextRelative="true"
path="/mod1/showIndex.do"/>
doesn't
<forward name="goToMod1" contextRelative="true"
path="/do/mod1/showIndex"/>
This actually works, but it goes directly to a jsp and not through an action
mapping. I need it to go to an action mapping so I can setup my tiles.
<forward name="goToMod1_forward_calling_action"
path="/do/switchToMod1?prefix=/mod1&page=/index.jsp"/>
Thanks in advance,
Craig.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: url pattern /do/* and modules
Posted by "Kunal H. Parikh" <ku...@carsales.com.au>.
Can you discuss your ideas further ?
TIA,
Kunal
-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Craig Laverty
Sent: Tuesday, 24 February 2004 09:56
To: struts-user@jakarta.apache.org
Subject: Re: url pattern /do/* and modules
Hubert Rabago <jakartauser <at> yahoo.com> writes:
>
> From the Struts user guide:
> "WARNING - If you are using the new module support in Struts 1.1, you
should
> be aware that only extension mapping is supported."
>
> http://jakarta.apache.org/struts/userGuide/configuration.html
> Look for "5.4.2 Configure the Action Servlet Mapping" and check the
warnings
> at the bottom.
>
> - Hubert
Thank you for the quick response and pointing out that only extension
mapping
is supported for modules. Now that I know it won't work as is, I may spend
a
bit more time trying to trick it with my own SwitchAction.
Thanks Again,
Craig.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: url pattern /do/* and modules
Posted by Hubert Rabago <ja...@yahoo.com>.
No prob.
You may wanna take a look at the cool changes in Struts 1.2 as far as
switching modules are concerned. Check the bottom of the "What's new?" in
http://jakarta.apache.org/struts/userGuide/release-notes.html. I haven't
used it yet, but from what I understand you can specify a "module=/xyz" in
your <forward> to switch modules. It was one of the last things added.
hth,
Hubert
--- Craig Laverty <cl...@clearframe.ca> wrote:
> Hubert Rabago <jakartauser <at> yahoo.com> writes:
>
> >
> > From the Struts user guide:
> > "WARNING - If you are using the new module support in Struts 1.1, you
> should
> > be aware that only extension mapping is supported."
> >
> > http://jakarta.apache.org/struts/userGuide/configuration.html
> > Look for "5.4.2 Configure the Action Servlet Mapping" and check the
> warnings
> > at the bottom.
> >
> > - Hubert
>
> Thank you for the quick response and pointing out that only extension
> mapping
> is supported for modules. Now that I know it won't work as is, I may spend
> a
> bit more time trying to trick it with my own SwitchAction.
>
> Thanks Again,
>
> Craig.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: url pattern /do/* and modules
Posted by Craig Laverty <cl...@clearframe.ca>.
Hubert Rabago <jakartauser <at> yahoo.com> writes:
>
> From the Struts user guide:
> "WARNING - If you are using the new module support in Struts 1.1, you should
> be aware that only extension mapping is supported."
>
> http://jakarta.apache.org/struts/userGuide/configuration.html
> Look for "5.4.2 Configure the Action Servlet Mapping" and check the warnings
> at the bottom.
>
> - Hubert
Thank you for the quick response and pointing out that only extension mapping
is supported for modules. Now that I know it won't work as is, I may spend a
bit more time trying to trick it with my own SwitchAction.
Thanks Again,
Craig.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: url pattern /do/* and modules
Posted by Hubert Rabago <ja...@yahoo.com>.
>From the Struts user guide:
"WARNING - If you are using the new module support in Struts 1.1, you should
be aware that only extension mapping is supported."
http://jakarta.apache.org/struts/userGuide/configuration.html
Look for "5.4.2 Configure the Action Servlet Mapping" and check the warnings
at the bottom.
- Hubert
--- Craig Laverty <cl...@clearframe.ca> wrote:
> Hi,
>
> I am looking for advice on how to get a struts application using the url-
> pattern /do/* to work for multiple modules.
>
> Using the simple-modules-example I was able to get the default .do to work,
>
> but the Ted Husted way /do/* does not.
>
> works
>
> <forward name="goToMod1" contextRelative="true"
> path="/mod1/showIndex.do"/>
>
> doesn't
>
> <forward name="goToMod1" contextRelative="true"
> path="/do/mod1/showIndex"/>
>
>
> This actually works, but it goes directly to a jsp and not through an
> action
> mapping. I need it to go to an action mapping so I can setup my tiles.
>
> <forward name="goToMod1_forward_calling_action"
> path="/do/switchToMod1?prefix=/mod1&page=/index.jsp"/>
>
> Thanks in advance,
>
> Craig.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org