A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
jsp to actionhadler
varun seth
Greenhorn
Joined: Jul 08, 2006
Posts: 6
posted
Dec 12, 2006 06:55:00
0
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: 17225
1
I like...
posted
Dec 12, 2006 09:25:00
0
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:
jrebel
subject: jsp to actionhadler
Similar Threads
Getting error
passing disabled values to another page
The function of sRequest in JSP
RequestDispatcher - regarding
Session variables are not getting storred
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter