0
我想显示的输出显示表到XML函数的输出中的PSQL。我在终端以及pgadmin3中获得了输出。如何使用JSP
我已经创建了一个Java函数来执行上面的查询,该函数将resultset返回到JSP页面。
ResultSet rs1=common2.tabletoxml("person_data1");
while (rs1.next())
{
out.print(rs1.getString(1));// when i tried this i got all data but not in xml form so I tried this
out.print(rs1.getSQLXML(1));//got object name
}
我应该怎么做才能在JSP页面中获取XML值?我试过valueOf()
,但它没有奏效。