hi there,

i'm fairly new to struts and it seems like i do have a more conceptual
problem which should be easy to solve...

i have a form including a dropdown list, fetching the entries from a
database.
i like to use DynaForms and validation.

in order to display the dropdown values, i

- link to an action which fetches the data, saves it in request scope
and forwards to my jsp rendering the form (using html:collections to get
the data from the bean)

- let this form call another action to process the input

when validation succeeds, everything works. when validation fails, the
form (+ error messages) should be displayed again. 
because my dropdown values were stored in request scope, they cannot be
obtained again and an error occurs ("cannot find bean").

the form data from the select is stored as a simple int value in my
DynaValidatorForm (representing the id in the underlying database
table).

my workaround is to put the dropdown entries into session scope, but i
cannot believe that this is best practice...

can anybody give my a hint?

2nd question: what is the difference between casting my form from the
action's execute method to DynaValidatorForm and casting to
DynaActionForm? both works in my case (i have defined a
DynaValidatorForm in my struts-config).

thanks,
Ralf


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

Reply via email to