CODEFETCH™
            Examples
Cache of jstlsample/web/cimportvar.jsp from
http://books.elsevier.com/companions/0126567557/software/jstlsample.zip
Source code below from:
JSTL : Practical Guide for JSP Programmers (The Practical Guides)
By Sue Spielman
Published 22 August, 2003
Average rating

      Powells     Alibris


<%@ include file="/globals.jsp" %>

<c:import var="commonHeader" url="/header.jsp" scope="session" >
   <c:param name="title" value="Import action using var and varReader" />
</c:import>
<c:out value="${commonHeader}" escapeXml="false" />

<c:import url="/authors.xml" varReader="reader">
  <x:parse xml="${reader}" var="doc"/>
</c:import>
The author's name is: <x:out select="$doc/authors/author/name"/>
<br>
<x:out select="$doc/authors/author/books/book"/> is a book by this author.

<c:import url="/footer.jsp" />