wood burning stoves 2.0*
The moose likes Struts and the fly likes result type xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "result type xml" Watch "result type xml" New topic
Author

result type xml

peter leigh
Greenhorn

Joined: Jun 01, 2008
Posts: 5
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

Joined: Jun 01, 2008
Posts: 5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: result type xml