You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2004/10/01 03:50:06 UTC
DO NOT REPLY [Bug 31494] -
the HttpServletRequest object in VelocityServlet.doPost() does not contain POSTed parameters
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31494>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31494
the HttpServletRequest object in VelocityServlet.doPost() does not contain POSTed parameters
shinobu.kawai@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From shinobu.kawai@gmail.com 2004-10-01 01:50 -------
If you look in the Java Servlet Specification, under "SRV.4.1.1 When
Parameters Are Available", you will see:
<excerpt>
The following are the conditions that must be met before post form data
will be populated to the parameter set:
1. The request is an HTTP or HTTPS request.
2. The HTTP method is POST.
3. The content type is application/x-www-form-urlencoded.
4. The servlet has made an initial call of any of the getParameter
family of methods on the request object.
</excerpt>
Item #3 says, that if you set any other enctype, they will not be
available via the getParameter methods.
You can find solutions at http://www.magelang.com/faq/view.jsp?EID=1045507
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org