• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp to actionhadler

 
varun seth
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic