Thank you very much for this hint,
it is exactly what I meanwhile have implemented as fallback.
Only disadvantage in comparison to an ognl expression is that in case of
change I have
to change action (code) and recompile ...
What do you mean with overly-complex in detail?
the approach trying to
--- 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
Thank you very much for the response!
I studied docs and noticed the drawbacks.
I could put aside a chaining approach if the following is possible:
can I use in struts.xml complex ognl statements?
...
{1}__show.action
...
now problem is that depending on {
Action chaining is probably the closest you'd get
out-of-the-box.
http://struts.apache.org/2.x/docs/chain-result.html
http://struts.apache.org/2.x/docs/action-chaining.html
Not a particularly good practice, however.
d.
--- lbastil <[EMAIL PROTECTED]> wrote:
>
> I know about the possibility to
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
8 matches
Mail list logo