You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eddie Bush <ek...@swbell.net> on 2002/09/14 19:28:58 UTC
[sub-app] o.a.s.a.SwitchAction - broke?
I was trying to build a redirect action that would shoot me from one
module to another - SwitchAction seemed like a good candidate. Here's
what I did:
- Built an action of type SwitchAction
- Created a link (just <a href=...>) to the action -- which provided
*request parameters* for prefix and page (page was actually an action,
but they were both valid)
- Delpoyed
- Clicked the link
The action complains about requiring the *request parameters* prefix and
page. Does it mean request *attributes*?
Could someone give me a brief explaination (tell me where to STFW
perhaps?)? I ... haven't found anything terribly instructive yet ...
At least, I haven't managed to get a working implementation.
Thanks!
Eddie
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [sub-app] o.a.s.a.SwitchAction - broke? (Solved)
Posted by Eddie Bush <ek...@swbell.net>.
Nevermind ...
It *is* page -- not path. I'll see if I can dig into the source and
provide a patch. That's annoying as H E double-hockey-sticks.
Regards,
Eddie
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [sub-app] o.a.s.a.SwitchAction - broke?
Posted by Eddie Bush <ek...@swbell.net>.
Ok, dangit -- I'm going to pass on this til I get some enlightenment ...
please enlighten me! Here's my config/attempt:
---> Action (this is in the default sub-app)
<action path="/gotoModulePage"
type="org.apache.struts.actions.SwitchAction"/>
---> Attempted URL
http://localhost:8081/gotoModulePage.do?prefix=/help&path=/index.do
---> Survey says ... *drum roll*
Apache Tomcat/4.0.4 - HTTP Status 400 - Switch requires both 'prefix'
and 'path' request parameters
------------------------------------------------------------------------
*type* Status report
*message* _Switch requires both 'prefix' and 'path' request parameters_
*description* _The request sent by the client was syntactically
incorrect (Switch requires both 'prefix' and 'path' request parameters)._
Any insight would be most appreciated.
Thanks!
Eddie
Eddie Bush wrote:
> Did I say page? I meant path ...
>
> Eddie Bush wrote:
>
>> I was trying to build a redirect action that would shoot me from one
>> module to another - SwitchAction seemed like a good candidate.
>> Here's what I did:
>> - Built an action of type SwitchAction
>> - Created a link (just <a href=...>) to the action -- which
>> provided *request parameters* for prefix and page (page was actually
>> an action, but they were both valid)
>> - Delpoyed
>> - Clicked the link
>>
>> The action complains about requiring the *request parameters* prefix
>> and page. Does it mean request *attributes*?
>>
>> Could someone give me a brief explaination (tell me where to STFW
>> perhaps?)? I ... haven't found anything terribly instructive yet ...
>> At least, I haven't managed to get a working implementation.
>>
>> Thanks!
>>
>> Eddie
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [sub-app] o.a.s.a.SwitchAction - broke?
Posted by Eddie Bush <ek...@swbell.net>.
Did I say page? I meant path ...
Eddie Bush wrote:
> I was trying to build a redirect action that would shoot me from one
> module to another - SwitchAction seemed like a good candidate. Here's
> what I did:
> - Built an action of type SwitchAction
> - Created a link (just <a href=...>) to the action -- which
> provided *request parameters* for prefix and page (page was actually
> an action, but they were both valid)
> - Delpoyed
> - Clicked the link
>
> The action complains about requiring the *request parameters* prefix
> and page. Does it mean request *attributes*?
>
> Could someone give me a brief explaination (tell me where to STFW
> perhaps?)? I ... haven't found anything terribly instructive yet ...
> At least, I haven't managed to get a working implementation.
>
> Thanks!
>
> Eddie
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>