From: "R.Vijayaraghavan" <[EMAIL PROTECTED]>

The action is set to /submit.do. Since I am only sending the description
in
the http request, only the setDescription() method should be called and it
happens so. The problem is when I try to access the age and name variables
from the ActionForm in the Action class, I get null. Why so? I am not
setting age and name after submitting the form, they are already set. The
form is in session scope, so shouldn't it be re-used.

It should work the way you want (session scoped forms retain their values.)

Post the relevant parts of struts-config (the form bean and action)
and the part of the Action code where you're trying to access the form
properties, and see if someone can spot a problem. Also describe the flow of your app.

My guess is that you're dealing with two different form beans, but I need to
see the config file.

--
Wendy Smoak



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

Reply via email to