ServletInputStream
Hi,
Iam posting the following HTML form to a JSP "ReadForm.jsp".
<form action="ReadForm.jsp" method="post" enctype="multipart/form-data">
<input type=text name='uname'><br>
<input type=password name='pword'><br>
<input type=hidden name='pagename' value="WPS/ReadForm"><br>
<input type=file>
<input type=submit><br>
</form>
From the ReadForm.jsp Iam trying to read the servletinputstream
ServletInputStream sis = request.getInputStream();
int noofBytes = sis.available();
"noofBytes" availabe is returning me as 0.
But request.getContentLength() is returning me "268" bytes.
I want to read the servletinputstream ..
How should i do that?
Thanks,
PLR.Kannan
|