<?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.zhlwish.com/tag/jsp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zhlwish.com</link>
	<description>Where there is a will there is a way.</description>
	<lastBuildDate>Fri, 13 Jan 2012 08:13:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Spring 3 MVC 教程集合</title>
		<link>http://www.zhlwish.com/2010/12/02/spring3mvc/</link>
		<comments>http://www.zhlwish.com/2010/12/02/spring3mvc/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 13:21:18 +0000</pubDate>
		<dc:creator>周亮</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[spring3]]></category>
		<category><![CDATA[web后台]]></category>

		<guid isPermaLink="false">http://www.zhlwish.com/?p=263</guid>
		<description><![CDATA[Spring MVC 3相对于之前的版本变化相当大，本系列文章是一个入门，非常详细，有图！ Part 1: Introduction to Spring 3.0 MVC framework Part 2: Create Hello World Application in Spring 3.0 MVC Part 3: Handling Forms in Spring 3.0 MVC Part 4: Spring 3 MVC Tiles Plugin Tutorial with Example in &#8230; <a href="http://www.zhlwish.com/2010/12/02/spring3mvc/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.zhlwish.com/2010/12/02/spring3mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一些国人开发的好用JS控件</title>
		<link>http://www.zhlwish.com/2010/01/13/js_html_control/</link>
		<comments>http://www.zhlwish.com/2010/01/13/js_html_control/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 15:42:31 +0000</pubDate>
		<dc:creator>周亮</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jsp]]></category>

		<guid isPermaLink="false">http://www.zhlwish.com/?p=146</guid>
		<description><![CDATA[以前都是用国外开发的像FCKEditor（已经更名为CKEditor）、Flexigrid等，很多英文文档看得头大，而且代码不一定写得很好，比如Flexigrid，我找到了至少2处bug，开发中很多时间都花费在看那上千行的js脚本上了。这里介绍几款国人开发的js控件，非常好用 My97日期控件:http://www.my97.net/dp 好处：可以选择时间，可以显示周，自定义格式，有多种皮肤可供选择，选择老年份非常方便： KindEditor: http://www.kindsoft.net 一款可见即所得编辑器，用起来非常简单，相比CKEditor和TinyMCE要简单很多，特别是TinyMCE一大堆插件，一看头就晕了，项目开发期紧张，哪有那么多时间去看这些个插件是干嘛的哟。 支持两种皮肤，其中一种就是TinyMCE的皮肤，呵呵。 基于JQuery的Inline Editor插件：http://www.wbfsaworkstation.com.cn 实在是不好意思，我不知道inline这个词怎么用中文来表达，我想每个开发人员应该心里明白是啥意思吧。支持单选按钮、多选列表、文本域、软键盘等，还有评分插件以及日历插件（日历插件基于My97） 如果遇到好的，会继续推荐，呵呵&#8230;]]></description>
		<wfw:commentRss>http://www.zhlwish.com/2010/01/13/js_html_control/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JSP &amp; Servlet讲座PPT</title>
		<link>http://www.zhlwish.com/2009/12/22/jsp_servlet_ppt/</link>
		<comments>http://www.zhlwish.com/2009/12/22/jsp_servlet_ppt/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 14:02:08 +0000</pubDate>
		<dc:creator>周亮</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[servlet]]></category>

		<guid isPermaLink="false">http://www.zhlwish.com/?p=134</guid>
		<description><![CDATA[如果听了讲座的小盆友请给个评价吧，如果没听的话给ppt一个评价吧，谢谢。]]></description>
		<wfw:commentRss>http://www.zhlwish.com/2009/12/22/jsp_servlet_ppt/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>JSP中Session、Cookie的使用与“记住我的登录状态”示例程序</title>
		<link>http://www.zhlwish.com/2009/12/05/jsp_session_cookie_remember_me/</link>
		<comments>http://www.zhlwish.com/2009/12/05/jsp_session_cookie_remember_me/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 17:30:11 +0000</pubDate>
		<dc:creator>周亮</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[web后台]]></category>

		<guid isPermaLink="false">http://www.zhlwish.com/?p=116</guid>
		<description><![CDATA[本文为原创文章，转载请注明来源http://www.zhlwish.com 在《session、cookie与“记住我的登录状态”的功能的实现》一文中详细讲解了Cookie和Session的原理以及“记住我的登录状态”功能的实现原理，本文以Servlet、JSP技术为例讲解Servlet中Cookie和Session的使用以及以此为基础的“记住我的登录状态”功能的实现方式，最后附上例子程序的源代码。 EL表达式 本文的样例源代码中用到了JSP EL表达式，JSP1.0中EL表达式是作为JSTL的一部分，即只能在JSTL标签中使用。JSP2.0中EL表达式可以在文本模板中使用，即可以直接在JSP页面中使用，本文的样例源代码使用${pageContext.request.contextPath}在JSP页面中获取当前Web应用的路径(context path)，关于EL表达式的使用请参见《JSTL入门：表达式语言》，关于Web应用的路径请参见《Servlet、JSP中获取Web应用路径(context path)的方法》 Servlet中的Session javax.servlet.http.HttpSession是Servlet API中定义的一个接口，其中比较重要的方法有： 将一个对象实例存放在Session中： 1 public void setAttribute&#40;String name, Object value&#41;; 通过名称获取Session中的对象实例： 1 public Object getAttribute&#40;String name&#41;; Session对象可以用过HttpServletRequest对象获取，一般在Servlet中通过request.getSession();获取一个Session对象。 Web服务器每接收到一个新的请求，服务器就会新建一个Session对象，一般会将当前用户帐号存放于Session中，当然你可以放更多的对象，这样会增加服务器的负担。Session会在一定时间后由Servlet容器销毁，这个时间可以在Web应用的web.xml里面进行设置。 Servlet中的Cookie javax.servlet.http.Cookie是一个类，有一个构造函数public Cookie(String name, String value)，一般用下面的方式创建一个Cookie对象： 1 2 3 4 5 String cookieName = &#8230; <a href="http://www.zhlwish.com/2009/12/05/jsp_session_cookie_remember_me/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.zhlwish.com/2009/12/05/jsp_session_cookie_remember_me/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Servlet、JSP中获取Web应用路径(context path)的方法</title>
		<link>http://www.zhlwish.com/2009/12/04/servlet_jsp_context_path/</link>
		<comments>http://www.zhlwish.com/2009/12/04/servlet_jsp_context_path/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 06:36:17 +0000</pubDate>
		<dc:creator>周亮</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[JSF]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[web后台]]></category>

		<guid isPermaLink="false">http://www.zhlwish.com/?p=112</guid>
		<description><![CDATA[在Servlet中可以直接使用request.getContextPath()获取当前web应用的路径(context path) 在JSP 2.0页面中可以使用el表达式${pageContext.request.contextPath} 如果是JSF页面，因为JSF默认使用#作为el表达式的起始符，所以应该写成#{pageContext.request.contextPath} 因为JSP2.0之前的版本不支持文本模板中的el表达式，故可以使用嵌入java代码来实现，和Servlet中一样 如果在JSP2.0之前的版本中使用了JSTL标签（el表达式的概念是JSTL 1.0推出来的），所以仍然可以配合JSTL的标签使用el表达式输出当前Web应用路径(context path)]]></description>
		<wfw:commentRss>http://www.zhlwish.com/2009/12/04/servlet_jsp_context_path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JSP中获取表单中多选列表(Multiple Select)提交的值</title>
		<link>http://www.zhlwish.com/2009/11/26/jsp_multiple_select/</link>
		<comments>http://www.zhlwish.com/2009/11/26/jsp_multiple_select/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 16:56:19 +0000</pubDate>
		<dc:creator>周亮</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[servlet]]></category>

		<guid isPermaLink="false">http://www.zhlwish.com/?p=93</guid>
		<description><![CDATA[在select标签中添加multiple=”multiple”属性，可以使下拉列表（drop down list）变成多选列表（multiple select list），但是在jsp与servlet中使用获取表单值常用的request.getParameter(“value”)获取到的只是多选列表中的第一个选中值，经过查询资料，原来HttpServletRequest还有一个方法getParameterValues(String key)，其返回值为String类型的数组，里面存放的正是多选列表中的选中的值。 也就是说，jsp和servlet中对于表单中的多选控件提交的值都是通过此getParameterValues方法来获取的，比如checkbox list（复选框列表）等，示例代码如下： &#60;form action=”index.jsp” method=”POST”&#62;     &#60;select name=”value” multiple=”multiple”&#62;         &#60;option value=”val1&#8243;&#62;Value 1&#60;/option&#62;         &#60;option value=”val2&#8243;&#62;Value 2&#60;/option&#62;         &#60;option value=”val3&#8243;&#62;Value 3&#60;/option&#62;         &#60;option value=”val4&#8243;&#62;Value 4&#60;/option&#62;         &#60;option value=”val5&#8243;&#62;Value 5&#60;/option&#62;      &#60;/select&#62;      &#60;input type=”submit” &#8230; <a href="http://www.zhlwish.com/2009/11/26/jsp_multiple_select/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.zhlwish.com/2009/11/26/jsp_multiple_select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

