You could build an ActionForward with a query string from inside the
Action, but a better approach would be to use Request properties instead
of a query string. All the Struts custom tags are designed to look into
the Request context for beans or properties stored there. Sending a
query string to a JSP is really a "model 1" concept, and Struts is
designed to encourage "model 2" designs. 

The best place to post questions like this is the User list. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


> "Lu, Jennifer" wrote:
> 
> Hi, there:
> 
> I have some questions about the action class. For the perform(...)
> method, it returns the mapping.findForward("success"), and the real
> page it forwards to is the one traced from the config file. But what
> if you want to pass some querystring to the page that forwarded to.
> You can not put the querystring in the config file, since the value is
> dynamic. You know the value in the action class, but I just do not
> know how to pass it through the mapping.findForward. Any ideas would
> be greatly appreciated.
> 
> Jen

Reply via email to