File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Special characters changing to %something% Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Special characters changing to %something%" Watch "Special characters changing to %something%" New topic

Special characters changing to %something%

Manigandan Velraj

Joined: Nov 30, 2009
Posts: 14

I have a search form whose method is post. i keep the the search criteria in session. From the search result screen when the user clicks previous button, i take the criteria s from the session and populate it in the fields.

But when i search using a criteria with special character and click on previous button, the special characters are changed to %something% (eg. space is change to +, # is changed to %24% , etc).

I use UFT-8 character set. my action class is using struts2.

Please help me in getting back my original criteria s.

Thanks in advance.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Un-URL-encode it.
I agree. Here's the link:
subject: Special characters changing to %something%
jQuery in Action, 3rd edition