David Erickson wrote:
Hi I have a situation like this: User clicks on /viewUser.do?id=4 action, which loads the specific user with id4 to be viewed. On that page is a form, the form is submitted, if some part of the xml validation fails I need to return back to /viewUser.do?id=4. It would be ideal if the information from the form could be retained. I can set my input forward to be: input="/viewUser.do" but somehow I need to access that and add the parameter id=4 to it after the xml validation takes place, but before the new page is requested. Is there any possible way to do this?
The parameter is stored into the request when it is first submitted, so provided you haven't told Struts to redirect to the input page (it'll use a forward by default) the parameter -- and any others submitted from your form -- should still be in the request. So, you shouldn't need to do anything yourself to have the data available when the input page is redisplayed.
What is the behaviour you're seeing? Describing in more detail what you're seeing and what you were expecting to see, along with posting the relevant parts of the config files, should help someone to spot what's wrong.
L. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]