If you are using struts 1.2.7 or later, you can use the ActionRedirect class to dynamically add parameters to the forward. In your case, something like:
public ActionForward execute(ActionMapping mapping, ActionForm form1, HttpServletRequest request, HttpServletResponse response) throws Exception { QueryParamsForm form = (QueryParamsForm)form1; String name = (String) request.getParameter("name"); String age = (String) request.getParameter("age"); String description = (String) PropertyUtils.getSimpleProperty(form,"description"); ActionRedirect forward = new ActionRedirect(mapping.findForward("nextPage")); forward.setRedirect(false); forward.addParameter("name", name); forward.addParameter("age", age); return forward; } Aymeric On 10/22/05, R.Vijayaraghavan <[EMAIL PROTECTED]> wrote: > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Saturday, October 22, 2005 12:25 PM > > To: Struts Users Mailing List > > Subject: RE: query string parameters problem > > > > > > > > The scope of the ActionForm is session means that the last submitted > > ActionForm will remain in the session till the session ends. In you case, > > even though the ActionForm is getting populated with the values for the > > first time, those are getting overridden by the second request and the > > second request is not taking the values of name and age in the query > > string (As the querystring URL is getting overridden by "/submit.do"). > > True. It does not re-instantiate the bean but it calls the reset() method on > submitting the form. So the only way it can be done is to use the hidden > fields ?? > > regards, > vijay. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]