Servlet's request parameters
Niall Gallagher <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have a question regarding the reasons for using the getParameter method to retrieve both query parameters and HTML form parameters. I have developed (and am currently revising) a Servlet like engine for Java, called Simple http://simpleweb.sourceforge.net/. I was wondering what the exact semantics of the HttpServletRequest.getParameter method were. For example is it String formData = // get form data String queryString = // get query string String params = formData + "&" + queryString; // complete This can be nessecary if there are duplicate parameters, is it typical to use the HttpUtils object and the HttpServletRequest.getQueryString method to clarify whether the parameter came from the request URI or the HTML form? Thanks Niall ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html