In struts I have some form beans defined in struts-config.xml e.g.

       <form-bean
               name="ProgressForm"
               type="org.apache.struts.validator.DynaValidatorForm">
           <form-property
                   name="currentWeight"
                   type="java.lang.String"/>
           <form-property
                   name="bloodPressure"
                   type="java.lang.String"/>
etc

I don't really want them in struts-config because I want to

a) Read the form fields from the database
b) Dynamically generate the html via the JSP
c) Dynamically map and save the form in my MappingDispatchAction
ActionForward

The only issue is in the ActionForward I have a bunch of

       String fieldValue =
PropertyUtils.getSimpleProperty(actionForm, fieldName);

and I think that getSimpleProperty depends on the bean definition in
struts config and I know struts populates the form automatically for
you as well

but any way I can get the form bean out of the struts config file to
be read from the database real time ?
-- 
View this message in context: 
http://www.nabble.com/how-to-generate-the-form-bean-definition-real-time-tp20501828p20501828.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to