Sorry, I described my problem very briefly...
I try to process form sent by HTTP from browser in a JSP. I use JBoss 4.0.0,
WinXP, JDK 1.5. I've tried it also on Red Hat Fedora (same JBoss and JDK).
Form attributes:
<form action="registration.jsp" enctype="multipart/form-data" method="POST"
name="reg_form">
Form contains only simple text fields.
When the form is sent by GET, in registration.jsp I can access all form data.
When it's sent by POST, for example code like this:
| for (Enumeration e = request.getParameterNames(); e.hasMoreElements();) {
| out.println(e.nextElement() + "<br>");
| }
|
prints nothing.
But the data are in the body of the request:
------------0feyXs2Tu3d1qFRf8u7LEt
Content-Disposition: form-data; name="login"
abcdef
------------0feyXs2Tu3d1qFRf8u7LEt
Content-Disposition: form-data; name="password"
qwerty
------------0feyXs2Tu3d1qFRf8u7LEt
Content-Disposition: form-data; name="passwordVerify"
qwerty
------------0feyXs2Tu3d1qFRf8u7LEt
Content-Disposition: form-data; name="email"
[EMAIL PROTECTED]
.
.
.
------------0feyXs2Tu3d1qFRf8u7LEt--
What method except ServletInputStream parsing should I use to get the data ?
I've thought, that this is handled by classes implementing HttpServlesRequest
interface... In JEE 1.4 javadoc I haven't found any special classes for POST
data parsing. And in tutorials there is no special text about POST data
processing... What am I doing wrong?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875641#3875641
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875641
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user