You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Daniel <da...@top-it.com.br> on 2004/02/20 20:27:44 UTC
How populate a form
How can I populate a form fields (bean/jsp) inside the action, this action is a someQueryAction and forward for a edit record page with all form fields values with results values of database query.
obrigado
Daniel S.
Re: How populate a form
Posted by Rahul Mohan <ra...@pune.tcs.co.in>.
Hi Daniel...
what i had done in my application was create the childform's actionform
instance in the action class...run the query...populate the bean and then
put it as a request attribute to prevent the RequestProcessor from creating
a new form bean object.
Hope this will work for ur app too...
regards,
rahul
----- Original Message -----
From: "Daniel" <da...@top-it.com.br>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Saturday, February 21, 2004 12:57 AM
Subject: How populate a form
How can I populate a form fields (bean/jsp) inside the action, this action
is a someQueryAction and forward for a edit record page with all form fields
values with results values of database query.
obrigado
Daniel S.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org