You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alexandre Rojkov <al...@mobileq.com> on 2001/02/16 02:35:27 UTC
bug?
Hi all
I have a servlet which does following in doPost method:
String bufferFormData = request.getReader().readLine();
the servlet hangs in the readLine
following code gives me only one character from the request content:
int nLen = req.getContentLength();
if(nLen > 0)
{
byte b[] = new byte[nLen];
int nCount = 0;
for(int i = 0; i < nLen; i++)
{
int nChar = req.getReader().read();
if(nChar == -1)
break;
b[i] = (byte)nChar;
nCount++;
}
}
Both versions work on IPlanet
Any ideas?
Thanks
Alex