﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>亲亲宝宝 &#187; jsp</title>
	<atom:link href="http://www.wenhq.com/tag/jsp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wenhq.com</link>
	<description>记录宝宝成长文章和软件开发经验笔记</description>
	<lastBuildDate>Mon, 09 Jan 2012 00:52:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jsp生成静态页面</title>
		<link>http://www.wenhq.com/article/view_445.html</link>
		<comments>http://www.wenhq.com/article/view_445.html#comments</comments>
		<pubDate>Fri, 23 Apr 2010 17:53:25 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[网站]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>网站静态化是小型网站提速的最简单实用的方法.本文的代码是使用jsp生成静态页面.
public class toHtml extends HttpServlet
{
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
{
String url=&quot;&quot;;
String name=&quot;&quot;;
ServletCon...<a href='http://www.wenhq.com/article/view_445.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_445.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>request的方法详解</title>
		<link>http://www.wenhq.com/article/view_442.html</link>
		<comments>http://www.wenhq.com/article/view_442.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 12:23:59 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>jsp内置对象request,客户端的请求信息被封装在request对象中，通过它才能了解到客户的需求，然后做出响应。它是HttpServletRequest类的实例。
1&nbsp;&nbsp; object getAttribute(String name) 返回指定属性的属性值
2&nbsp;&nbsp; Enumeration getAttributeNames() 返回所有可用属性名的枚举
3&nbsp;&nbsp; String getC...<a href='http://www.wenhq.com/article/view_442.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_442.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsp下载文件代码-解决中文文件名的乱码办法</title>
		<link>http://www.wenhq.com/article/view_382.html</link>
		<comments>http://www.wenhq.com/article/view_382.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 09:02:06 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[网站开发]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; jsp下载中文的介绍有很多,但是很多都不能彻底解决中文名的乱码问题,有的在ie中正常,在火狐中乱码,下面的代码京测试在两种浏览器中都 能正常显示中文文件名.


&nbsp;

&lt;%@page&nbsp;contentType=&quot;text/html;charset=UTF-8&quot;&nbsp;%&gt;
&lt;%@page&nbsp;import=&quot;java.u...<a href='http://www.wenhq.com/article/view_382.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_382.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSTL常用循环和条件语句</title>
		<link>http://www.wenhq.com/article/view_378.html</link>
		<comments>http://www.wenhq.com/article/view_378.html#comments</comments>
		<pubDate>Mon, 12 Oct 2009 16:27:12 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[jstl]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[  ]]></description>
			<content:encoded><![CDATA[<p>最简单的输出:

循环语句:
  
  ${item.ipcname}
 

循环的高级特性,用c:forEach 中vaStatus的属性可以获得迭代的自身状态，如：

 此次迭代的索引
 已经迭代的数量
 是否是第一个迭代对象
  是否是最后一个迭代对象
bgcolor=&#8221;#ccffff&#8221; 指定不同行的背景颜色


条件一:
selected
条件二(else):

      pizza...<a href='http://www.wenhq.com/article/view_378.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_378.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsp中include乱码的三种解决方案</title>
		<link>http://www.wenhq.com/article/view_376.html</link>
		<comments>http://www.wenhq.com/article/view_376.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 13:07:32 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[网站开发]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>问题描述：&lt;%@ include file=&quot;/footer.html&quot; %&gt; 的中文乱码问题
第一种情况可以修改被include的文件：
1.当jsp include动态文件时（jsp文件）可以在被include的jsp文件头部加上代码：
&nbsp;&nbsp; &lt;%@ page language=&quot;java&quot; contentType=&quot;text/html; charset=UTF-8&quot;&nbsp; page...<a href='http://www.wenhq.com/article/view_376.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_376.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tomcat报错java.net.BindException: Address already in use</title>
		<link>http://www.wenhq.com/article/view_374.html</link>
		<comments>http://www.wenhq.com/article/view_374.html#comments</comments>
		<pubDate>Fri, 25 Sep 2009 17:40:28 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>  tomcat报错java.net.BindException: Address already in use,只是不能访问tomcat了，稍等一会就正常了。
  大概原因是短时间内new socket操作很多,而socket.close()操作并不能立即释放绑定的端口,而是把端口设置为TIME_WAIT状态,过段时间(默认 240s)才释放,(用netstat -na可以看到),最后系统资源耗尽(windows上是耗尽了...<a href='http://www.wenhq.com/article/view_374.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_374.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>web.xml中filter-mapping的dispatcher的不同类型</title>
		<link>http://www.wenhq.com/article/view_372.html</link>
		<comments>http://www.wenhq.com/article/view_372.html#comments</comments>
		<pubDate>Mon, 21 Sep 2009 13:04:54 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2.4版本的servlet规范在部属描述符中新增加了一个&lt;dispatcher&gt;元素，这个元素有四个可能的值：即 REQUEST,FORWARD,INCLUDE和ERROR，可以在一个&lt;filter-mapping&gt;元素中加入任意数目 的&lt;dispatcher&gt;，使得filter将会作用于直接从客户端过来的request，通过forward过来的...<a href='http://www.wenhq.com/article/view_372.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_372.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSTL中不能获取list集合的属性</title>
		<link>http://www.wenhq.com/article/view_370.html</link>
		<comments>http://www.wenhq.com/article/view_370.html#comments</comments>
		<pubDate>Tue, 15 Sep 2009 13:14:37 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[jstl]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>jsp中el表达式，一般对象的属性 .都可以获取，如果该对象为集合时，会发生错误：
  javax.servlet.ServletException: The &#8220;.&#8221; operator was supplied with an index value of type &#8220;java.lang.String&#8221; to be applied to a List or array, but that value cannot be converted to an integer.
  ...<a href='http://www.wenhq.com/article/view_370.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_370.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsp中转发(forward)、包含(include)及转向(redirect)的区别与联系</title>
		<link>http://www.wenhq.com/article/view_363.html</link>
		<comments>http://www.wenhq.com/article/view_363.html#comments</comments>
		<pubDate>Tue, 18 Aug 2009 08:39:30 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[    forward,include,redirect是jsp中web页面(jsp或servelt)的三种不同的路由关系，三个貌似相同，其实还是有许多差别的，而了解这些细微的差别，在web开发中是很重要的。]]></description>
			<content:encoded><![CDATA[<p>说明：
一、forward、include由javax.servlet.RequestDispatcher来封装,由包容器container提供RequestDispatcher接口的实现，其中声明如下：
void forward(ServletRequest req,ServletResponse res)
void include(ServeltRequest req,ServletResponse res)
可以通过两种方式得到RequestDispatcher:
1、ServletContext.ge...<a href='http://www.wenhq.com/article/view_363.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_363.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Request.ServerVariables获取环境变量</title>
		<link>http://www.wenhq.com/article/view_17.html</link>
		<comments>http://www.wenhq.com/article/view_17.html#comments</comments>
		<pubDate>Tue, 24 Apr 2007 09:33:20 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[网站]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jsp]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ ]]></description>
			<content:encoded><![CDATA[<p>Request.ServerVariables(&#8220;Url&#8221;)
返回服务器地址
Request.ServerVariables(&#8220;Path_Info&#8221;)
客户端提供的路径信息
Request.ServerVariables(&#8220;Appl_Physical_Path&#8221;)
与应用程序元数据库路径相应的物理路径
Request.ServerVariables(&#8220;Path_Translated&#8221;)
通过由虚拟至物理的映...<a href='http://www.wenhq.com/article/view_17.html' rel="nofollow">阅读全文</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wenhq.com/article/view_17.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

