This is what I have in struts-config.xml:

   <form-beans>
       <form-bean
           name="reportForm"
           type="org.apache.struts.validator.DynaValidatorActionForm">
           <form-property name="reportList" type="java.lang.String[]"/>
       </form-bean>
   </form-beans>

-Ben Anderson

From: <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject: RE: form bean
Date: Fri, 20 Jun 2003 16:47:37 +0300

Hi,
> <html:text property="values[0]"/>
> <html:text property="values[1]"/>

that is already done. but after i display the parameter, there will be an
input text field for entering the value.
and those values should go to an action that processes them..

since parameter names are variable, i cannot define a proper form bean
for them.
i have looked quickly some docs...looks like maybe DynaActionForm..
do u know how to use it? i cannot find enough docs for that..

regars
        marco


> > ... > > Kind of like dealing with a table with variable # of rows. > --m > > > [EMAIL PROTECTED] wrote: > > hi all, > > i have a situation in which i have to display a form which > > has 'dynamic parameters', meaning that for each request, > since i have > > to retrieve parameters for the entered function from a > function repository, > > i may have different parameters for the form. > > > > so, i cannot associate any ActionForm to the Action class > that is processing > > the request.. > > > > Here are the steps, for clarity: > > 1 - user enters the name of a function in an input form > > 2 - a form bean will be populated with the parameters > retrieved for specific function > > 3- user has to enter a value for those parameters > > > > step 3 is the problem. the formbean used in 2 contains a > java.util.List of all parameters retrieved, but > > it contains only the names. > > so, in step 3 user has to enter a value for those > parameters.. and since parameters vary from function > > to function, i cannot write a proper form bean. > > > > anyone has some idea on how to solve the situation? > > i can always put a 'dummy' action form that will not be > used..but it does not seem to me a proper > > solution... > > > > regards > > marco > > > > > > > --------------------------------------------------------------------- > > 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] > >

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


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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



Reply via email to