ASF Bugzilla – Attachment 17479 Details for
Bug 38346
InputBuffer breaks request.readLine()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test JSP
test_post.jsp (text/plain), 1001 bytes, created by
Rainer Jung
on 2006-01-21 21:37:38 UTC
(
hide
)
Description:
Test JSP
Filename:
MIME Type:
Creator:
Rainer Jung
Created:
2006-01-21 21:37:38 UTC
Size:
1001 bytes
patch
obsolete
><%@ page session="false"%><% >Boolean ok=true; >double lines=0; >double bytes=0; >String line; >String res="OK"; >String ct=request.getContentType(); >int cl=request.getContentLength(); >String enc=request.getCharacterEncoding(); >java.io.BufferedReader reader=request.getReader(); >if ( reader==null) { > res="ERROR: getReader() returned null"; >} else { > while (ok) { > try { > line=reader.readLine(); > if ( line != null ) { > bytes+=line.length()+1; > lines++; > } else { > ok=false; > } > } catch (Exception e) { > System.out.println("Exception in readLine(): " + e.getMessage()); > e.printStackTrace(); > ok=false; > res="ERROR: Exception in readLine(): " + e.toString(); > } > } >} >String stat="Read " + lines + " lines, " + bytes + " bytes"; >%> ><html> ><body> ><h1>Headers<h1> >Content-Type: <%=ct%><br> >Content-Length: <%=cl%><br> >Encoding: <%=enc%><br> ><h1>Result<h1> ><%=res%><br> ><%=stat%> ></body> ></html>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 38346
:
17478
| 17479 |
17480