aspose file tools
The moose likes Servlets and the fly likes Help--Reading POST data using ServletInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Help--Reading POST data using ServletInputStream" Watch "Help--Reading POST data using ServletInputStream" New topic
Author

Help--Reading POST data using ServletInputStream

k chillar
Greenhorn

Joined: Oct 12, 2003
Posts: 2
Hi , i am trying to read data posted to a servlet using
request.getInputStream();
The problem is the data is coming with special
characters ( + for space etc ).
Can anyone suggest a solution that already exists!
the only way I can think of is read character by character and replace special characters. Is this reliable ?
Thanks for any help
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Is there a particular reason you need to read (and i assume parse) the POST info as a stream?

Won't a nicely packaged 'request' object do ?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Help--Reading POST data using ServletInputStream
 
Similar Threads
Problem in handling special characters using FOP generating pdf
convert to plain text
data characters that can break the html
reading xml file
Different character sets on Unix/Windows? Whats happening?