[jboss-user] [Beginner's Corner] - JBoss 4.2.3 escaping issue

pr0z_kh do-not-reply at jboss.com
Tue Jul 30 08:11:11 EDT 2013

pr0z_kh [https://community.jboss.org/people/pr0z_kh] created the discussion

"JBoss 4.2.3 escaping issue"

To view the discussion, visit: https://community.jboss.org/message/830479#830479

I need to send xml via cookies. So I have the following code:

Cookie cookie = new Cookie("cookieName", "");
cookie.setValue("xml=<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>");

As you can see, double quotes were escaped. Then I've tried to get this string on my jsp:

<c:out value="Value: ${cookie.cookieName.value }" />

And I've got this:

xml=<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>

My slashes were escaped somehow. When I'm trying to test this application on Tomcat 6 or JBoss 5.1.0, everything is fine. Does anyone have any suggestions?
Thanks, Yury.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130730/a790d9cf/attachment.html 

More information about the jboss-user mailing list