aspose file tools*
The moose likes JSP and the fly likes jsp to actionhadler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp to actionhadler" Watch "jsp to actionhadler" New topic
Author

jsp to actionhadler

varun seth
Greenhorn

Joined: Jul 08, 2006
Posts: 6
i am sending the unicode value to the actionhandler, but i am not able to change it to string again using encode and decode. sample code is

Charset chars=Charset.forName("UTF-8");
SOP(chars.encode(chars.decode((String)request.getParameter("XYZ"))));
SOP(chars.decode(chars.encode((String)request.getParameter("XYZ"))));

where "XYZ" is the hidden variable in jsp page, which having the Unicode value of the string generated on jsp page itself.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

Varun, please do not crosspost. You posted this exact same question in the JavaRanch forum.

The JavaRanch forum is not for Java questions, but comments and questions about this site only.

You have done this before, please stop.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp to actionhadler