Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Dave Newton
Musachy Barroso wrote: That would make sense, I think redirectAction assumes that the location is the actionName by default, so adding parameters to it wouldn't work. Yeah, I had forgotten I was using "redirectAction" :/ Dave --

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Musachy Barroso
That would make sense, I think redirectAction assumes that the location is the actionName by default, so adding parameters to it wouldn't work. musachy On Sun, Feb 15, 2009 at 7:08 PM, Dave Newton wrote: > Allen Lee wrote: >> >> Weird, it worked for me when I threw the URL in the location parame

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Dave Newton
Allen Lee wrote: Weird, it worked for me when I threw the URL in the location parameter, i.e., @Result(name="success", type="redirect", location="view?resourceId=${resource.id}") What version are you using? It didn't work for me, but I was using redirectAction. Dave --

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Allen Lee
Weird, it worked for me when I threw the URL in the location parameter, i.e., @Result(name="success", type="redirect", location="view?resourceId=${resource.id}") On Sat, Feb 14, 2009 at 7:28 PM, Dave Newton wrote: > Musachy Barroso wrote: >> >> you can put the whole " view?resourceId=${resource.

Re: conventions @Result params support OGNL exprs

2009-02-15 Thread Musachy Barroso
Hum, I will have to check it out, now I am not sure. It migh be worth it adding a note to the wiki. musachy On Sat, Feb 14, 2009 at 9:28 PM, Dave Newton wrote: > Musachy Barroso wrote: >> >> you can put the whole " view?resourceId=${resource.id}" in the params. > > Just to clarify (as I ran into

Re: conventions @Result params support OGNL exprs

2009-02-14 Thread Dave Newton
Musachy Barroso wrote: you can put the whole " view?resourceId=${resource.id}" in the params. Just to clarify (as I ran into this converting a small app to Convention)... It doesn't seem possible to put the whole URL into the "location" parameter, instead I had to: @Result(name="...",

Re: conventions @Result params support OGNL exprs

2009-01-29 Thread Musachy Barroso
you can put the whole " view?resourceId=${resource.id}" in the params. On Thu, Jan 29, 2009 at 8:57 PM, Allen Lee wrote: > Hi there, > > After saving a persistent resource I'd like to redirect after the post > to a view page that views the resource. I'm trying to do something > along the lines o