• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display the value of Xstream variable in jsp in XML format.  RSS feed

 
anil namburi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Iam getting variable of type XStream(Which contains data in the form of XML) from servlet. But while displaying the value of varaible in JSP it is not displaying the value in XML format.
Could you please help me how to display the value of variable in same format(XML format) in JSP.

Thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be sure to escape any angle bracket characters (<c:out> does this automatically), and put the construct between <pre> tags.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!