How to show Xml String values inside browser



I have a XML String that fetch from database.so i want to display it on the browser.to display it i use Jsp pages.but i cant not see XML out put on the browser.i didn't get any error just get an empty page.but when i see page source in jsp it have loaded XML string.please give me any tips to how to achieve this in Jsp.below is my code.





<%@ page import="TestResultReport" %>

<html>
<head>
</head>

<div>
<pre>
<%
TestResultReport t = new TestResultReport();

response.setContentType("text/xml");
out.print(t.getExecutionLogFTE(request.getParameter("uid")));

%>
</pre>
</div>

</html>



No comments:

Post a Comment