The scope of the ActionForm is session means that the last submitted 
ActionForm will remain in the session till the session ends. In you case, 
even though the ActionForm is getting populated with the values for the 
first time, those are getting overridden by the second request and the 
second request is not taking the values of name and age in the query 
string (As the querystring URL is getting overridden by "/submit.do").

Regards,
Rajasekhar Cherukuri




"R.Vijayaraghavan" <[EMAIL PROTECTED]> 
10/22/2005 12:14 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
"Struts Users Mailing List" <user@struts.apache.org>
cc

Subject
RE: query string parameters problem







> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Saturday, October 22, 2005 12:08 PM
> To: Struts Users Mailing List
> Subject: RE: query string parameters problem
>
>
>
> Are you able to see the 'age' and 'name' attributes in the address bar
> after submitting the form ? If not, the action="/submit.do" in your
> <html:form> is overwriting the URL you wanted to post. IN this case you
> can use the hidden variables for age and name and set the required 
values
> in the Javascript.

Yes it overwrites the address bar with just /submit.do. But why should the
name and age attributes be null when the ActionForm is in session scope.
Shouldn't the values be re-used.

>
> Regards,
> Rajasekhar Cherukuri
>

regards,
vijay.



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


ForwardSourceID:NT0000674A 


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Reply via email to