Thursday, 29 August 2013

XML to text in a JSP

XML to text in a JSP

I need to display the content of an XML file as text, but I don't know how
to simply do that.
The user upload his file and I need to display the content on the page,
but the XML is interpreted.
I've tried this two solutions but it doesn't seem to work:
<iframe id="file" width="800px" height="600px" src="<c:url
value="${fichier}"/>" ></iframe>
and
<pre>
<c:import url="${fichier}"></c:import>
</pre>
Any idea?

No comments:

Post a Comment