This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to store extracted xml values in a database?

 
Palani Kumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I created one program using JSTL which extract details from xml... Now i want to store that extracted values in a database.. How can i store that extracted values in a database..? Is there any option to store values in a variable...?Here is my code...

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
<html>
<head>
<title>Airport</title>
</head>
<body>
<c:import var="students" url="http://service.openkapow.com/palanikumar/airportbarbados.rest" />
<x:parse var="doc" xml="${students}" />
<table border="1">
<tr>
<th>AirportName</th>
<th>Location</th>
<th>Airport Overview</th>
<th>ByBus</th>
<th>ByTaxi</th>
<th>ByTrain</th>
<th>PhoneNum</th>
<th>Website</th>

<x:forEach var="result" select="$doc/result">
<xut select="$result/AirportName" />
<xut select="$result/Location" />
<xut select="$result/ByBus" />
<xut select="$result/ByTaxi" />
<xut select="$result/ByTrain" />
<xut select="$result/PhoneNum" />
<xut select="$result/Website" />
</x:forEach>
</body>
</html>
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Davinci Code",
Please check your private messages regarding an important administrative matter.
-Ben
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic