![]() | Source code below from: JSTL in Action By Shawn Bayern Published July, 2002 Average rating
Powells
Alibris
|
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %> <c:import var="xml" url="${param.rssUrl}"/> <x:parse var="rss" xml="${xml}" /> <ul> <x:forEach select="$rss//*[name()='item']"> <li> <a href="<x:out select="./*[name()='link']"/>"> <x:out select="./*[name()='title']" /> </a> </li> </x:forEach> </ul>