<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://liuxinxiu.com:80/s//</link>
<title><![CDATA[JSTL 与 JSP 或者 Java 相互传递变量的代码]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[PHP/Java/Go]]></category>
<pubDate>Mon, 08 Jun 2015 03:20:09 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/s//</guid> 
<description>
<![CDATA[ 
	<p><strong>&nbsp;两种方式</strong></p><div>&nbsp;</div><div>&lt;c:set var=&quot;s1&quot; value=&quot;This is One&quot; scope=&quot;request&quot; /&gt;</div><div>out.print(request.getAttribute(&quot;s1&quot;) ;</div><div>&nbsp;</div><div>&lt;c:set var=&quot;s2&quot; value=&quot;This is Two&quot;/&gt;</div><div>out.print(pageContext.getAttribute(&quot;s2&quot;));</div><div>&nbsp;</div><div>----------------------------------------------------</div><div><strong>JSTL 变量由 JSP 读取</strong></div><div>&nbsp;</div><div>&lt;c:set var=&quot;JspValue1&quot; value=&quot;Java Language One&quot; scope=&quot;request&quot; /&gt;&nbsp;</div><div>&lt;c:set var=&quot;JspValue2&quot; value=&quot;Java Language Two&quot;/&gt;</div><div>&lt;%</div><div>String JspValue3 = request.getAttribute(&quot;JspValue1&quot;).toString();</div><div>String JspValue4 = pageContext.getAttribute(&quot;JspValue2&quot;).toString();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>out.print(JspValue3);</div><div>out.print(JspValue4);</div><div>%&gt;</div><div>&nbsp;</div><div>----------------------------------------------------</div><div>&nbsp;</div><div><strong>JSP 变量由 JSTL 读取</strong></div><div>String strContextPath = request.getContextPath();</div><div>&nbsp;pageContext.setAttribute(&quot;ContextPath&quot;, strContextPath);</div><div>..</div><div>&lt;c:out value=&quot;$&#123;ContextPath&#125;&quot;&gt;&lt;/out&gt;</div>
]]>
</description>
</item><item>
<link>http://liuxinxiu.com:80/s//#blogcomment</link>
<title><![CDATA[[评论] JSTL 与 JSP 或者 Java 相互传递变量的代码]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/s//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>