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.
Regards, Rajasekhar Cherukuri "R.Vijayaraghavan" <[EMAIL PROTECTED]> 10/22/2005 11:53 AM 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 8:36 AM > To: Struts Users Mailing List > Subject: Re: query string parameters problem > > > > Hi, > You should use > request.getParameter("name") > request.getParameter("age") It does not work. > to get the values from the request. I don't think the values set > through through query string will be set to ActionForm automatically. In > this case you should explicitly call the setter methods of the ActionForm > and then set the new ActionForm object to session with the same name that > was used in the action element attribute "attribute" in struts-config.xml. No, the values are set even while passing the values through the query string. Why should not this work. The URL with the query string will call teh appropriate ActionForm, set the values that it gets from the Http GET request. The problem I face is that when I submit the html page, the name and age do not get added to the query string(and thats fine, it should not). The description goes via the Http POST request, ActionForm sets the value of description, comes to the Action. Its here that I am not able to get the values of name and age. regards, vijay. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ForwardSourceID:NT00006736 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