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">
<x:out select="$result/AirportName" />
<x:out select="$result/Location" />
<x:out select="$result/ByBus" />
<x:out select="$result/ByTaxi" />
<x:out select="$result/ByTrain" />
<x:out select="$result/PhoneNum" />
<x:out select="$result/Website" />
</x:forEach>
</body>
</html>