File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "result type xml" Watch "result type xml" New topic

result type xml

peter leigh

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

Peter Leigh
peter leigh

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" /> <%;%>

I agree. Here's the link:
subject: result type xml
Similar Threads
XML-RPC Problem
HELP ME��� XML RPC doubt
my code gives the wrong hash value
org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement
how to implement XML-RPC