java - How to populate the values of XML in JSP? -


I'm new to Java development. I have to populate XML fields in a JSP page.

I did not do JDBC, in fact I have written a microscope cover in C.

This query performs and returns the table value as XML.

How to populate XML fields in JSP?

How to read XML files using JDBC ResultSet?

Lt ;? Xml version = "1.0" encoding = "UTF-8" & gt; & Lt; Test & gt; & Lt; TableRow & gt; & Lt; Name & gt; Krishna & lt; / Name & gt; & Lt; Age & gt; 30 & lt; / Age & gt; & Lt; / TableRow & gt; & Lt; TableRow & gt; & Lt; Name & gt; Kumar & lt; / Name & gt; & Lt; Age & gt; 40 & lt; / Age & gt; & Lt; / TableRow & gt; & Lt; TableRow & gt; & Lt; Name & gt; Kumar & lt; / Name & gt; & Lt; Age & gt; 40 & lt; / Age & gt; & Lt; / TableRow & gt; & Lt; / Test & gt;

You must use one to handle XML

It is likely that your C-wrap is preparing XML which is not in a format that will explain to you so that you have to make changes using XSLT.

Use a JSP, JSTL tag in relation to the presentation in the field. If you want you want JSP for Xpl, you can use content-type Need to set text / html :

  & lt;% @ page contentType = "text / xml"%>  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -