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/09/30 20:33:21 UTC
DO NOT REPLY [Bug 31494] New: -
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
Summary: the HttpServletRequest object in
VelocityServlet.doPost() does not contain POSTed
parameters
Product: Velocity
Version: 1.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: Other
Component: Source
AssignedTo: velocity-dev@jakarta.apache.org
ReportedBy: ivo@benetech.org
The HttpServletRequest object in VelocityServlet.doPost() does not contain
POSTed parameters if the form was submitted specifying an encoding type.
if the .html form has:
<form method="post" action="http://127.0.0.1">
...a bunch of <input> tags...
</form>
then in org.apache.velocity.servlet.VelocityServlet.doPost() you can do
request.getParameterNames() and all parameter names are retrieved, but if the
.html form has:
<form method="post" action="http://127.0.0.1" enctype="multipart/form-data">
...a bunch of <input> tags...
</form>
then in org.apache.velocity.servlet.VelocityServlet.doPost() a call to
request.getParameterNames() returns null.
The problem happens much earlier really but this is the symptom I experience.
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org