--
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/-s2--forward-to-another-action--tf4712685.html#a13488289
Sent from the Struts - User mailing list archive at
--- lbastil <[EMAIL PROTECTED]> wrote:
> can I use in struts.xml complex ognl statements?
Well... yes, but there's no reason to in this usecase.
>
>
> {1}__show.action
>
Expose a "target" property in your action and do the
lookup there; the destination of your redirect-action
would th
Is the same possible with a "forward" instead of
>> redirect?
>>
>> Thank you very much in advance,
>> basti
>> --
>> View this message in context:
>>
> http://www.nabble.com/-s2--forward-to-another-action--tf4712685.html#a13470792
>> Sent f
t the possibility to redirect to another
> action by result type
> "redirect-action"
>
> But this does a redirect (HTTP 302).
>
> Is the same possible with a "forward" instead of
> redirect?
>
> Thank you very much in advance,
> basti
> --
&
//www.nabble.com/-s2--forward-to-another-action--tf4712685.html#a13470792
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks but It wouldn't work because I call some old code that use
request.getParameter() and not ActionContext.
finally, all I wan't is just a standard "forward"...
Mike
cilquirm a écrit :
why can't you add parameters in chain?
In your action, can't you :
1) implement ParameterAware
2)
>Why not just configure the target action in your action mapping as normal?
Does it work for you ? Not for me : 404 Not Found.
And this is, I suppose, because Struts2 use filter instead of servlet.
I also tried by addin FORWARD as I saw
somewhere but still no luck.
But maybe is it with my apps
why can't you add parameters in chain?
In your action, can't you :
1) implement ParameterAware
2) set a parameter value in the map that's passed in
3) chain to your action
4) have the value be set in your chained action, via the params interceptor
-a
Laurie Harper wrote:
>
> Mike Barou
Mike Baroukh wrote:
I can't figure how to do this.
Can somebody help me
I wan't to forward an action to another with something like
requestDispatcher("/action.do?param1=value1").forward(req, res);
- I can't use redirect because I wan't to use the same request scope.
- I can't use chain be
9 matches
Mail list logo