File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes problem while getting Input Stream, which contains ? mark in it. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem while getting Input Stream, which contains ? mark in it." Watch "problem while getting Input Stream, which contains ? mark in it." New topic
Author

problem while getting Input Stream, which contains ? mark in it.

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi All,

I have a servlet which will read the content from the input stream, and the stream contains a url with parameter in it and the url(in stream) contain ?(question) marks.

its not getting the content properly, it receives all the data after the ?mark.

please help me,

Thanks In Advance,
Bennet
dileep keely
Ranch Hand

Joined: Jun 28, 2010
Posts: 98
Can you show/provide the URL in question and the sample code what you have tried to fetch ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

The data in your URL must be properly URL-encoded. See java.net.URLEncoder.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Thank you very much.

Sorry for the later reply.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem while getting Input Stream, which contains ? mark in it.