struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: Dynamic forwardings...
Date Sun, 26 Aug 2001 18:56:11 GMT
For a forward, you just put in an encoded query string for the path:

     <forward name="itemAdd"
          path="/do/item/Add?code=whatever"/>

For an action mapping, you can use the parameter property 

            <action 
                path="/do/item/Add"
		...
                parameter="add">
            </action>

and have the action check for the code there

String code = mapping.getParameter();


David Corbin wrote:
> 
> I've got a an action "add", which requires a an argument "code".
> One (at least) of the possible forwards needs to specify this "code" on the
> forward URL.
> 
> How can I do that?
> 
> Thanks
> David Corbin

Mime
View raw message