This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 17249
    
    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
 
Similar Threads
The function of sRequest in JSP
RequestDispatcher - regarding
Getting error
Session variables are not getting storred
passing disabled values to another page