you can put the whole " view?resourceId=${resource.id}" in the params.

On Thu, Jan 29, 2009 at 8:57 PM, Allen Lee <allen....@asu.edu> 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 of:
>
> @Action(value="save",
>            results={
>            @Result(name="success", type="redirect", location="view",
> params={"resourceId", ??? }),
>            @Result(name="input", location="edit.ftl")
>            })
> public String execute() {...}
>
> I'm not quite sure what to put in ??? - in my old struts.xml I would
> just use an OGNL expression to set up a view?resourceId=${resource.id}
> but it doesn't seem I can just slap "${resource.id}" like I used to be
> able to.  Is there a different way to accomplish this or do I need a
> different ognl syntax?
>
> Thanks in advance!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to