my dog learned polymorphism*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "request.getReader()" Watch "request.getReader()" New topic
Author

request.getReader()

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
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
That sounds like a very application specific error - where do you see it, in the HTML response on the browser?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: request.getReader()
 
Similar Threads
Getting IO exception with doPost is executed
split big DOM xml file ??
text/html & text/plain
HttpServletRequest getReader() - encoding problem
a question on understand a java snippet