Alex wrote: > I have DynaValidatorForm that is request scoped. > I have <html:form> tag on the client side (jsp) > that is referring to that form. > if I have values that are sitting in DB, > that I retrieve thru my BOs and need to assign them > to the fields of that form (existing values), how > do I do it in the most efficient (less coding) way > possible?
First, in a Struts project, never directly visit a URL that ends in .jsp. Always go through the Struts Action Controller, by visiting URL's that end in (usually) .do. Then your problem is neatly solved, in the 'setup' action, you read from the DB, populate the form, and forward to the JSP. Struts will automatically populate the HTML form with the values in the Form bean. The form has a target of a 'process' type Action. I consolidate these Actions into one with LookupDispatchAction, and have different methods within that for 'create', 'read', 'update', etc. -- Wendy Smoak Applications Systems Analyst, Sr. Public Affairs, Information Resources Management Arizona State University, Tempe AZ