> Have 2 actions: > > -PopulateFormAction > -ProcessFormAction > > When the user clicks to edit the Monitor, invoke, PopulateFormAction. > When the user submits invalid data (invoke ProcessFormAction), > the request should forward back to the input defined in the > struts-config file. All the form data still resides in the request > and should therefore be rendered again (without hitting the database).
I don't think this will work. The first action retrieves a Monitor from the database and puts it into the request. The JSP will then set the values for each of the form components using the Monitor object in the request: <html:text property="name" size="20" value="<%=monitor.getName()%>"/> The user then submits the form. The Sturts Validator will validate the form input. If there is a validation error Struts will redisplay the JSP. But at this point there won't be a Monitor object in the request. And even if there was, the JSP should be displaying the values from the Form bean and not from the Monitor object. To use the From object to populate the form, I have to remove the value assignment: <html:text property="name" size="20"/> But then the question is how do I copy my Monitor object into the Form? I succeeded in doing this with BeanUtils but when I enable the validation my app gets stuck in an endless loop and the tiles in my page get repeated over and over. I'm trying to track it down but I need to install the Struts source first. Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

