Hi,

I've been using struts for a while now (by my standards).

I prefer for all of my forwards to redirect - for two reasons:

1)      Because it keeps the browser's location bar up-to-date;

2)      To stop one action (accidentally) processing request parameters
intended for a previous action.  

For example, I tend to use a "cancel" parameter, in my forms or pages, to
indicate (to the action) that the user wishes to go back up a level.  If I
did not redirect, then this "cancel" parameter would still be there when the
request reaches this upper level action (causing it too to go back up a
level... and so on.).

This all worked fine, until I reached this dilemma:

I have an Action class called ControlAction which handles all actions
related to control (of a hypothetical software agent).
It handles the following actions (extension mapping is /app/*):

/app/control    (top-level action that displays a page from which user can
choose a sub-action)
/app/control/viewResources      (sub-action which displays another page and
returns to above action when user hits "cancel")
... more sub-actions

But all of these actions require a request parameter, "agentName", to be
present.  This is a problem because when the 
/app/control/viewResources action forwards to /app/control - this parameter
is lost in the redirection.  

So is there any way to append a parameter to the ActionForward object?  In a
similar way to the tag <html:rewrite forward="nameOfForward" paramId="id"
paramValue="value"/>

Any help is much appreciated. 

Cheers.

Lindsay

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to