We had the same problem. We solved it in this way:

Link to an action instead of jsp page, do your initialization, and forward
to jsp. For example insertUserForm.do?dispatch=initial


-----Original Message-----
From: Bas Passon [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 19, 2002 12:55 PM
To: Struts Users Mailing List
Subject: Initialization of DynaValidatorForm

Hi,

Does anyone know how to retrieve a dyna form bean before the request to
the corresponding action is made. I would like to set some initial values
for the form. I noticed it can be done from the struts-config.xml, but
that option is not flexible enough since the initial values depend on the
requests a user made already.

Anyone got a solution for this problem which uses dyna form beans, or is
the only option to create custom formbeans?

Many Thanx,

Bas Passon

-----------------------
Bas Passon
First8 - http://www.first8.nl
Email: [EMAIL PROTECTED]
Phone: +31 (0)24 348 38 77
Fax:   +31 (0)24 348 35 71


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

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

Reply via email to