you will need to replace the special characters from the XML before you can actually show it in jsp. e.g. replacing "<" and ">" with "<" , ">" etc.
Latif Khan
Greenhorn
Joined: Feb 08, 2012
Posts: 19
posted
0
it is displaying
<root>
<sub>value</sub>
<sub>value</sub>
<sub>value</sub>
</root>
i want to display as
+root
value(if i click on + )
value(if i click on + )
Before writing anyJSP code, figure out what HTML code will display the data as you intend. Then, and only then, write the JSP markup (remember, no Java code in a JSP!) to generate that HTML.