wood burning stoves
The moose likes Servlets and the fly likes request.getReader() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "request.getReader()" Watch "request.getReader()" New topic


Keith Lockey
Ranch Hand

Joined: Oct 05, 2001
Posts: 48
I am trying to debug some code that is not mine. In the servlet, doPost method, the code reads BufferedReader reader = request.getReader(). If I load it from a form, i get an error:
"Invalid at the top level of the document. Error processing resource 'http://localhost:8080/paws/FeedXsarDataToCapstoneServ'. Line 1, Position 1"

I don't want the url in the top level of the document for a post, how do i do this?
[ February 19, 2004: Message edited by: Keith Lockey ]

Thanks,<br />Keith
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13025
That sounds like a very application specific error - where do you see it, in the HTML response on the browser?
It is sorta covered in the JavaRanch Style Guide.
subject: request.getReader()
It's not a secret anymore!