This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes Managing special characters of the url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "Managing special characters of the url" Watch "Managing special characters of the url" New topic

Managing special characters of the url

Atul Oberoi

Joined: Oct 14, 2005
Posts: 19
I have a HTML which has GET method. User selects some parameters and that is passed to a java class in the form of tags in order to take that as a string and form an XML document and return to the user. The problem am facing is whenever i submit the request the url has all those tags which actually browser doesn't supports. Because of this am unable to get that url in my java class. Can anyone tell me any technic to make things right. The method has to be GET only. Is there any Java Script or any other technique to encode these kind of characters in the url string.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Use the encodeURI() or esacpe function in Javascript to encode the URL.

Have you checked out Aspose?
subject: Managing special characters of the url
It's not a secret anymore!