﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-rox-随笔分类-JSTL</title><link>http://www.blogjava.net/rox/category/16941.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 28 Feb 2007 03:39:55 GMT</lastBuildDate><pubDate>Wed, 28 Feb 2007 03:39:55 GMT</pubDate><ttl>60</ttl><item><title>JSTL XML x:if</title><link>http://www.blogjava.net/rox/archive/2006/11/07/79535.html</link><dc:creator>rox</dc:creator><author>rox</author><pubDate>Tue, 07 Nov 2006 02:27:00 GMT</pubDate><guid>http://www.blogjava.net/rox/archive/2006/11/07/79535.html</guid><wfw:comment>http://www.blogjava.net/rox/comments/79535.html</wfw:comment><comments>http://www.blogjava.net/rox/archive/2006/11/07/79535.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/rox/comments/commentRss/79535.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/rox/services/trackbacks/79535.html</trackback:ping><description><![CDATA[
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<span style="COLOR: #008080">1</span>
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">c:import </span>
				<span style="COLOR: #ff0000">url</span>
				<span style="COLOR: #0000ff">="/site/All.html"</span>
				<span style="COLOR: #ff0000"> var</span>
				<span style="COLOR: #0000ff">="url"</span>
				<span style="COLOR: #ff0000"> </span>
				<span style="COLOR: #0000ff">/&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">2</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">c:if </span>
				<span style="COLOR: #ff0000">test</span>
				<span style="COLOR: #0000ff">="${ not empty url }"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">3</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">x:parse </span>
				<span style="COLOR: #ff0000">var</span>
				<span style="COLOR: #0000ff">="doc"</span>
				<span style="COLOR: #ff0000"> xml</span>
				<span style="COLOR: #0000ff">="${url}"</span>
				<span style="COLOR: #ff0000"> </span>
				<span style="COLOR: #0000ff">/&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">4</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">x:forEach </span>
				<span style="COLOR: #ff0000">select</span>
				<span style="COLOR: #0000ff">="$doc/sites/site"</span>
				<span style="COLOR: #ff0000"> var</span>
				<span style="COLOR: #0000ff">="s"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">5</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">x:if </span>
				<span style="COLOR: #ff0000">select</span>
				<span style="COLOR: #0000ff">="$s/@id = '0'"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">6</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />            </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">x:out </span>
				<span style="COLOR: #ff0000">select</span>
				<span style="COLOR: #0000ff">="$s/@id"</span>
				<span style="COLOR: #0000ff">/&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">7</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />        </span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">x:if</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">8</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">x:forEach</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">9</span>
				<span style="COLOR: #000000">
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">c:if</span>
				<span style="COLOR: #0000ff">&gt;</span>
		</div>
		<br />
		<br />
		<font color="#0000ff">参考URL：<br /></font>
		<br />
		<a href="http://java.sun.com/developer/technicalArticles/javaserverpages/faster/">http://java.sun.com/developer/technicalArticles/javaserverpages/faster/</a>
		<br />
		<br />
		<a href="http://www.mokabyte.it/2002/12/jstl-3.htm">http://www.mokabyte.it/2002/12/jstl-3.htm</a>
<img src ="http://www.blogjava.net/rox/aggbug/79535.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/rox/" target="_blank">rox</a> 2006-11-07 10:27 <a href="http://www.blogjava.net/rox/archive/2006/11/07/79535.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>