• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

result type xml

 
peter leigh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to get the result of my action to be an xml file. I have the java classes producing a string with the xml file and then I pass this result to a jsp file which is:

<%@ taglib prefix="s" uri="/struts-tags" %>
<s roperty value="response" />

where response is the xml as a string. However, instead of the '<' and '>' characters I get html code '<' and '>'.

Could anyone please tell me how to get the result to stay as a string with '<' and '>' characters.

Cheers,
Peter Leigh
 
peter leigh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, maybe someone knows how to store the result into a String in the jsp file? Ive tried various combination but nothing has worked so far. Is there are correct way to do something like the following:

<%@ taglib prefix="s" uri="/struts-tags" %>
<%String s = %> <s roperty value="response" /> <%;%>

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic