Is it possible to return a xml object from a jsp using java code?
here is my code:
<html>
<head><title>Pa ge Title</title></head>
<body>
<table width="100%">
<tr>
<td>
<!-- here is where i return a xml object -->
<%
String testOne = request.getPara meter("HeyYou") ;
response.setCon tentType("appli cation/xml");
response.setHea der("Cache-Control", "no-cache");
response.getWri ter().write("<t estValue>"+test One+"</testValue>");
%>
<!-- Ends here -->
</td>
</tr>
</table>
</body>
</html>
When i do like this, in the jsp page where i receive this object, i'm getting a null value for this xml object.
Pls anyone help me with this
- jagadesh
here is my code:
<html>
<head><title>Pa ge Title</title></head>
<body>
<table width="100%">
<tr>
<td>
<!-- here is where i return a xml object -->
<%
String testOne = request.getPara meter("HeyYou") ;
response.setCon tentType("appli cation/xml");
response.setHea der("Cache-Control", "no-cache");
response.getWri ter().write("<t estValue>"+test One+"</testValue>");
%>
<!-- Ends here -->
</td>
</tr>
</table>
</body>
</html>
When i do like this, in the jsp page where i receive this object, i'm getting a null value for this xml object.
Pls anyone help me with this
- jagadesh
Comment