Thanks. -----Original Message----- From: Peter Dolukhanov [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2003 8:31 AM To: [EMAIL PROTECTED] Subject: Re: passing parameters to a servlet
A servlet acts much in the same way as a JSP page i.e. http://servername/servlet?parameter=value¶meter2=value is the way to pass variables (or it can be done by POSTing a form). The servlet can retrieve it by using the HttpServletRequest.getParameter(String name) method.. Regards, Peter Dolukhanov -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] On Behalf Of Ceron, Jay Sent: 02 April 2003 14:16 To: [EMAIL PROTECTED] Subject: passing parameters to a servlet How do I pass a parameter to a servlet from an HTML or JSP page? Thanks Jay ======================================================================== === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com