Hi, There is nothing like request.setParameter(). When ever you submit a form (say JSP), all the controls in the form like textbox, checkbox, textarea etc..will be submitted to the Action or Servelt with the names given to them and these values can be retrieved through request.getParameter("name"). Here the "name" is the name given to each control in JSP. On the other hand request.setAttribute() is some thing through which the user can explicitly store the required information. For example, if you use request.setAttribute("MY_ATT", new Interger(4)) in either Action or Servlet, then you can retrieve the value in JSP through request.getAttribute("MY_ATT").
Regards, Rajasekhar Cherukuri "Ankit Pancholi" <[EMAIL PROTECTED]> 10/27/2005 03:04 PM Please respond to "Struts Users Mailing List" <user@struts.apache.org> To "Struts Users Mailing List" <user@struts.apache.org> cc Subject difference between setAtttibute and setPatameter Hi guys I wanted to know wat is the difference between request.setAttribute and request.setParameter. Rather there seems to be nothing called request.setParameter wen there is request.getParameter. Is the only way to pass values from action to jsp is request.setAttribute and then request.getAttribute in jsp??? Thanks Ankit Its amazing wat u can achieve if u don't care who gets the credit **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** ForwardSourceID:NT00006B4E 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