the autopopulation mechanism of struts will look for properties of beans whihch are 
same as the parameters u have sent..so do u have this condition met?

And in case of session scope form, the auto population will be caled only first 
time...thats the whole point of using session scope..i mena to preserve the data..

-----Original Message-----
From: gaffer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 12:55 AM
To: [EMAIL PROTECTED]
Subject: Does Struts automatically populate an actionForm in session
scope??


Good Afternoon,

Any insight would be most appreciated as I can't seem to get an
actionForm to automatically populate in session scope. 

I am assuming that Struts manages beans regardless of scope.

Proper conditions for setting and getting an actionForm in session scope
are ?????

actionForm scope in struts-config is set to "session"
actionForm implements java.io.Serializable
empty constructor for actionForm
request.getSession() for accessing parameters

If the actionForm is in scope, I should see the sessionid appended to
the uri in the form?

I have added a System.out.println to a couple of setters in the bean to
see when it is getting populated, but nothing happens when the form is
submitted.

Many thanks for your valuable time.
Al



-- 
gaffer <[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]

Reply via email to