On Wed, 2003-04-02 at 14:48, [EMAIL PROTECTED] wrote: > > Actually what I meant was how the initial values get loaded. For example > in the struts-config file you can do the following: > > <form-bean name="testForm" dynamic="true" type > ="org.apache.struts.validator.DynaValidatorForm"> > <form-property name="flag1" type="java.lang.String" initial="test2"/> > <form-property name="flag2" type="java.lang.String" initial="test1"/> > <form-property name="flag3" type="java.lang.String" initial="test3"/> > </form-bean> > > I want to specify another place where I can assign the initial values for > the properties in the form-bean. Preferrably a database.
...same way you would with a POJO, in your action. > > Ken > > > > > > > > James Mitchell > > <[EMAIL PROTECTED] To: Struts Users Mailing List > <[EMAIL PROTECTED]> > .org> cc: > > 04/02/2003 02:37 Subject: Re: Default Values from a > Database > PM > > > > Please respond to > > "Struts Users > > Mailing List" > > > > > > > > > > On Wed, 2003-04-02 at 14:25, [EMAIL PROTECTED] wrote: > > I've got the requirement to populate default values in the JSP page's > form > > attributes from a database. I thought I heard a while back that several > > people were working on doing this already. Just seeing if anyone has > > extended Struts to already provide this functionality?? > > How you load your form bean is totally up to you. Struts cannot help > you with this. > > > > > Thanks > > > > Ken > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > -- > James Mitchell > Software Developer/Struts Evangelist > http://www.open-tools.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- James Mitchell Software Developer/Struts Evangelist http://www.open-tools.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

