You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sachin Chowdhary <cs...@pisoftek.com> on 2003/04/14 14:07:33 UTC
can we Populate data using ActionForm onload
I have created an ActionForm for a Pop-up in my application which is showing
data related to selected records(Selected in main page).Now in when i click
to open pop up iwant that my Popup will automatically Populate by the
corressponding data.
In Popup have used <html:text ..... > to access the ActionForm value Now on
load i populate ActionFrom then i have to give direct values
<html:text property="architectFeePerc"
value=<%
userPreferencesData.getUserPreferences().getArchitectFeePerc();%> >
Now is it possible that Instead of setting value for each field in page. I
just need to set the value in actionForm an it will automatically Populate
data in Page.
it sholud be possible because if we created ActionFrom onload of the page
then Controls should Collect data form ActionForm
I know that ActionFrom is Created Only when submit button is created and
used to carry data in Next From.I dont want to use a single large ActionForm
which will become large in my project.
Can any one suggest Me better Approach.
It will be very helpful for Me
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org