Yes, calling an Action is the way to do this.
The struts-example shows how this is done.

Scott

> -----Original Message-----
> From: Chris Means [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 9:23 AM
> To:   [EMAIL PROTECTED]
> Subject:      How do I init a Form bean via business logic?
> 
> Hi,
> 
> If Form beans are supposed to be "distant" from the model, that means I
> probably shouldn't use the reset method of a form bean to populate it with
> data (other than blanks/defaults etc..).
> 
> So how do I set a form bean's properties prior to the form ever being
> displayed?
> 
> One suggestion has been to force a call to the forms' Action and check for
> a
> "submit" property on the form...if it's not there, then initialize it,
> otherwise, you're dealing with a submitted form.
> 
> Is this the best approach available?
> 
> Thanks.
> 
> -Chris
> 
> 
> --
> 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