RE: form initialization using session

2001-02-28 Thread Robert Taylor
Instead, I am experimenting with overriding the struts processActionForm() to notice when the form is created and call a form.create() method on my ActionForm subclass, passing the request/session in at that time. This seems to be working nicely - i still have to have all requests for the

form initialization using session

2001-02-27 Thread Simon Sadedin
Hi all, I am working on an application where form fields need to default to values that depend on the user's profile, which is stored in the session. Unfortunately, it seems like struts forms are created automatically without any hooks that allow access to the session to initialize these

Re: form initialization using session

2001-02-27 Thread Michael McCallister
The way this is typically handled is to use an Action to populate the bean. So instead of linking your user directly to the JSP page, you link them to an Action. This Action typically loads the bean and then returns the success mapping, which, in struts-config.xml, you've mapped to the JSP

RE: form initialization using session

2001-02-27 Thread Simon Sadedin
is created, on the instance created. Cheers, Simon. -Original Message- From: Michael McCallister [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: Re: form initialization using session The way this is typically handled is to use an Action