*
The moose likes JSP and the fly likes How to store extracted xml values in a database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to store extracted xml values in a database?" Watch "How to store extracted xml values in a database?" New topic
Author

How to store extracted xml values in a database?

Palani Kumar
Greenhorn

Joined: May 28, 2008
Posts: 13
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

Joined: Dec 11, 2004
Posts: 13410

"Davinci Code",
Please check your private messages regarding an important administrative matter.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Kumar",
Please check your private messages, again.
-Ben
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to store extracted xml values in a database?
 
Similar Threads
Help aggregating Atom feeds using JSTL
RSS / JSTL Problem
How to save values in a database in JSTL?
JSP and XML
JSTL-XML problem