??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩电影一区二区,国产亚洲依依,日韩三级avhttp://www.aygfsteel.com/GavinMiao/category/49351.html我在仰望Qjava之上zh-cnThu, 22 Dec 2011 18:58:33 GMTThu, 22 Dec 2011 18:58:33 GMT60转蝲Qhttp响应码介l?/title><link>http://www.aygfsteel.com/GavinMiao/archive/2011/12/22/367012.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Thu, 22 Dec 2011 06:39:00 GMT</pubDate><guid>http://www.aygfsteel.com/GavinMiao/archive/2011/12/22/367012.html</guid><wfw:comment>http://www.aygfsteel.com/GavinMiao/comments/367012.html</wfw:comment><comments>http://www.aygfsteel.com/GavinMiao/archive/2011/12/22/367012.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/GavinMiao/comments/commentRss/367012.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/GavinMiao/services/trackbacks/367012.html</trackback:ping><description><![CDATA[<span id="wmqeeuq" class="Apple-style-span" style="color: #464646; font-family: simsun; background-color: #f8ecd8; "><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">文章来源Q?/strong></p></span><span id="wmqeeuq" class="Apple-style-span" style="color: #464646; font-family: simsun; background-color: #f8ecd8; "><strong style="font-weight: bold; "><div style="display: inline !important; "><a >http://blog.sina.com.cn/s/blog_46d4a7a6010006wm.html</a></div></strong></span><span id="wmqeeuq" class="Apple-style-span" style="color: #464646; font-family: simsun; background-color: #f8ecd8; "><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; "><br />HTTP 1.1状态代码及其含?/strong></p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">100 Continue</strong> 初始的请求已l接受,客户应当l箋发送请求的其余部分。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">101 Switching Protocols</strong> 服务器将遵从客户的请求{换到另外一U协议(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">200 OK</strong> 一切正常,对GET和POSTh的应{文档跟在后面?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">201 Created</strong> 服务器已l创Z文档QLocation头给Z它的URL?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">202 Accepted</strong> 已经接受hQ但处理未完成?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">203 Non-Authoritative Information</strong> 文档已经正常地返回,但一些应{头可能不正,因ؓ使用的是文档的拷贝(HTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">204 No Content</strong> 没有新文档,览器应该l显C原来的文档。如果用户定期地h面Q而Servlet可以定用户文档_斎ͼq个状态代码是很有用的?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">205 Reset Content</strong> 没有新的内容Q但览器应该重|它所昄的内宏V用来强制浏览器清除表单输入内容QHTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">206 Partial Content</strong> 客户发送了一个带有Range头的GEThQ服务器完成了它QHTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">300 Multiple Choices</strong> 客户h的文档可以在多个位置扑ֈQ这些位|已l在q回的文档内列出。如果服务器要提Z先选择Q则应该在Location应答头指明?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">301 Moved Permanently</strong> 客户h的文档在其他地方Q新的URL在Location头中l出Q浏览器应该自动地访问新的URL?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">302 Found</strong> cM?01Q但新的URL应该被视Z时性的替代Q而不是永久性的。注意,在HTTP1.0中对应的状态信息是“Moved Temporatily”?br />出现该状态代码时Q浏览器能够自动讉K新的URLQ因此它是一个很有用的状态代码?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">注意q个状态代码有时候可以和301替换使用。例如,如果览器错误地hhttp://host/~userQ缺了后面的斜杠)Q有的服务器q回301Q有的则q回302?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; ">严格地说Q我们只能假定只有当原来的请求是GET时浏览器才会自动重定向。请参见307?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">303 See Other</strong> cM?01/302Q不同之处在于,如果原来的请求是POSTQLocation头指定的重定向目标文档应该通过GET提取QHTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">304 Not Modified</strong> 客户端有~冲的文档ƈ发出了一个条件性的hQ一般是提供If-Modified-Since头表C客户只x指定日期更新的文档)。服务器告诉客户Q原来缓冲的文档q可以l用?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">305 Use Proxy</strong> 客户h的文档应该通过Location头所指明的代理服务器提取QHTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">307 Temporary Redirect</strong> ?02QFoundQ相同。许多浏览器会错误地响应302应答q行重定向,即原来的请求是POSTQ即使它实际上只能在POSTh的应{是303时才能重定向。由于这个原因,HTTP 1.1新增?07Q以便更加清除地区分几个状态代码:当出?03应答Ӟ览器可以跟随重定向的GET和POSThQ如果是307应答Q则览器只能跟随对GETh的重定向。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">400 Bad Request</strong> h出现语法错误?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">401 Unauthorized</strong> 客户试图未经授权讉K受密码保护的面。应{中会包含一个WWW-Authenticate_览器据此显C用户名?密码对话框,然后在填写合适的Authorization头后再次发出h?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">403 Forbidden</strong> 资源不可用。服务器理解客户的请求,但拒l处理它。通常׃服务器上文g或目录的权限讄D?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">404 Not Found</strong> 无法扑ֈ指定位置的资源。这也是一个常用的应答?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">405 Method Not Allowed</strong> hҎQGET、POST、HEAD、Delete、PUT、TRACE{)Ҏ定的资源不适用。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">406 Not Acceptable</strong> 指定的资源已l找刎ͼ但它的MIMEcd和客户在Accpet头中所指定的不兼容QHTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">407 Proxy Authentication Required</strong> cM?01Q表C客户必dl过代理服务器的授权。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">408 Request Timeout</strong> 在服务器许可的等待时间内Q客户一直没有发ZQ何请求。客户可以在以后重复同一h。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">409 Conflict</strong> 通常和PUTh有关。由于请求和资源的当前状态相冲突Q因此请求不能成功。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">410 Gone</strong> 所h的文档已l不再可用,而且服务器不知道应该重定向到哪一个地址。它?04的不同在于,q回407表示文档怹地离开了指定的位置Q?04表示׃未知的原因文档不可用。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">411 Length Required</strong> 服务器不能处理请求,除非客户发送一个Content-Length头。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">412 Precondition Failed</strong> h头中指定的一些前提条件失败(HTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">413 Request Entity Too Large</strong> 目标文档的大超q服务器当前愿意处理的大。如果服务器认ؓ自己能够E后再处理该hQ则应该提供一个Retry-After_HTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">414 Request URI Too Long</strong> URI太长QHTTP 1.1斎ͼ?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">416 Requested Range Not Satisfiable</strong> 服务器不能满_户在h中指定的Range头。(HTTP 1.1斎ͼ</p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">500 Internal Server Error</strong> 服务器遇C意料不到的情况,不能完成客户的请求?/p><p style="margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; list-style-type: none; list-style-position: initial; list-style-image: initial; word-wrap: normal; word-break: normal; line-height: 21px; "><strong style="font-weight: bold; ">501 Not Implemented</strong> ?/p></span><img src ="http://www.aygfsteel.com/GavinMiao/aggbug/367012.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-12-22 14:39 <a href="http://www.aygfsteel.com/GavinMiao/archive/2011/12/22/367012.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>tree和menu控ghttp://www.aygfsteel.com/GavinMiao/archive/2011/11/24/364732.htmlGavinMiaoGavinMiaoThu, 24 Nov 2011 07:22:00 GMThttp://www.aygfsteel.com/GavinMiao/archive/2011/11/24/364732.htmlhttp://www.aygfsteel.com/GavinMiao/comments/364732.htmlhttp://www.aygfsteel.com/GavinMiao/archive/2011/11/24/364732.html#Feedback0http://www.aygfsteel.com/GavinMiao/comments/commentRss/364732.htmlhttp://www.aygfsteel.com/GavinMiao/services/trackbacks/364732.htmldownload及demo面Q?a >http://webfx.eae.net/dhtml/xtree/index.html
api面Q?div style="display: inline-block; ">http://webfx.eae.net/dhtml/xtree/api.html 

参考文章:
http://apps.hi.baidu.com/share/detail/45745962
大量开源menu控gQ?a >http://www.open-open.com/ajax/Menu.htm
easyui Menu及ext tree{;



GavinMiao 2011-11-24 15:22 发表评论
]]>
fmt:message与fmtQfmt:setBundlehttp://www.aygfsteel.com/GavinMiao/archive/2011/09/28/359690.htmlGavinMiaoGavinMiaoWed, 28 Sep 2011 06:08:00 GMThttp://www.aygfsteel.com/GavinMiao/archive/2011/09/28/359690.htmlhttp://www.aygfsteel.com/GavinMiao/comments/359690.htmlhttp://www.aygfsteel.com/GavinMiao/archive/2011/09/28/359690.html#Feedback0http://www.aygfsteel.com/GavinMiao/comments/commentRss/359690.htmlhttp://www.aygfsteel.com/GavinMiao/services/trackbacks/359690.html

参考文章:

http://cainwise.iteye.com/blog/369836

 
<fmt:message
> 
标签属性和说明 Q?/span>

 

 

属?/span>
描述
key
资源配置文g?/span>?/span>指定
bundle
若?/span> <fmt:setBundle> 保存了资源配|文Ӟ该属性就可以从保存的资源?/span>|文件中q行查找
var
显CZ息保存ؓ一个变?/span>
scope
变量的作用范?/span>

 

<fmt:bundle> ?/span> <fmt:setBundle> 标签属性和说明 Q?/span>

 

 

属?/span>
描述
basename
资源配置文g的指定,只需要指定文件名而无L展名Q二l标{օ有的属?/span>
var
 <fmt:setBundle> 独有的属性,用于保存资源配置文gZ个变?/span>
scope
 变量的作用范?/span>

 

eg1Q?br />
  1. <body>  
  2.   <%request.setAttribute("language","zh_CN"); %>//q里可以从客L选择的语a那里获取  
  3.     <fmt:setLocale value="${language}"/>//q里是设|显C页面的语言  
  4.     <fmt:setBundle basename="message" var="messages"/>//q里是获取到国际化文?/span>  
  5.         <fmt:bundle basename="message">  
  6.             <fmt:message key="com.name"/>//获取keyW一U方?/span>  
  7.             <br>  
  8.             <fmt:message key="com.name" bundle="${messages}"></fmt:message>//获取keyW二U方?/span>  
  9.         </fmt:bundle>  
  10.   </body>  


















GavinMiao 2011-09-28 14:08 发表评论
]]>
eXtremeComponentsȝQ{载)http://www.aygfsteel.com/GavinMiao/archive/2011/09/16/358766.htmlGavinMiaoGavinMiaoFri, 16 Sep 2011 02:23:00 GMThttp://www.aygfsteel.com/GavinMiao/archive/2011/09/16/358766.htmlhttp://www.aygfsteel.com/GavinMiao/comments/358766.htmlhttp://www.aygfsteel.com/GavinMiao/archive/2011/09/16/358766.html#Feedback0http://www.aygfsteel.com/GavinMiao/comments/commentRss/358766.htmlhttp://www.aygfsteel.com/GavinMiao/services/trackbacks/358766.html阅读全文

GavinMiao 2011-09-16 10:23 发表评论
]]>
jsp相对路径和绝对\?/title><link>http://www.aygfsteel.com/GavinMiao/archive/2011/08/22/357009.html</link><dc:creator>GavinMiao</dc:creator><author>GavinMiao</author><pubDate>Sun, 21 Aug 2011 18:29:00 GMT</pubDate><guid>http://www.aygfsteel.com/GavinMiao/archive/2011/08/22/357009.html</guid><wfw:comment>http://www.aygfsteel.com/GavinMiao/comments/357009.html</wfw:comment><comments>http://www.aygfsteel.com/GavinMiao/archive/2011/08/22/357009.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/GavinMiao/comments/commentRss/357009.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/GavinMiao/services/trackbacks/357009.html</trackback:ping><description><![CDATA[<div><div><span style="font-size: 12pt; ">一?br />1?lt;base>标签的作用:</span><span id="wmqeeuq" class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 18px; font-size: 12pt; ">为页面上的所有链接规定默认地址或默认目标?br /></span><span style="font-size: 12pt; ">2?lt;base>标签的两个属性,targetQ?/span><span id="wmqeeuq" class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; line-height: normal; font-size: 12pt; ">在何处打开面中所有的链接Q?/span><span id="wmqeeuq" class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; line-height: normal; font-size: 12pt; ">href:</span><span id="wmqeeuq" class="Apple-style-span" style="border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: 12px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; line-height: normal; "><span id="wmqeeuq" class="Apple-style-span" style="font-family: verdana, 'courier new'; line-height: 21px; border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12pt; ">规定面中所有相寚w接的基准 URL?/span><br /></span>3、例子:<br />1Q?br /><%</div><div>String path = request.getContextPath();</div><div>String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";</div><div>%><br /><div><base href="<%=basePath%>"><br /><br />jsp面昄Q?br />basePathQ?br />http://localhost:8080/testProject/<br />2Q?br /><div><% String realPath = application.getRealPath("/"); %><br /><br /><div>jsp面昄Q?br />realPathQ?br /><div>D:\tomcat\webapps\testProject\<br />3Q?br /><div style="display: inline-block; "><div>${request.contextPath}<br /><div>jsp面昄Q?br />contextPathQ?/div>/testProject<br />4)<br />如果h是http://localhost:8080/testProject/page/test.jsp;<br /><br /><div><%=request.getRequestURI() %><br /><div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">jsp面昄Q?br />requestURIQ?/div><div>/testProject/page/test.jsp</div></div></div>二?br />1、文件分隔符QunixpȝQ?#8220;/”,windowspȝQ?#8220;\”;<br /><div>System.getProperty("file.separator")</div>2、\径分隔符QunixpȝQ?#8220;:”QwindowspȝQ?#8220;;”Q?br /><div>System.getProperty("path.separator");<br />三?/div><div>1. <%=Thread.currentThread().getContextClassLoader().getResource("") %><br /><div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">jsp面昄Q?/div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div>file:/D:/tomcat/webapps/testProject/WEB-INF/classes/</div></div></div></div><br /><div>参考文章来源:<a >http://starlight00.blog.163.com/blog/static/465183200992111154321/</a></div></div></div></div></div></div></div></div></div><img src ="http://www.aygfsteel.com/GavinMiao/aggbug/357009.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/GavinMiao/" target="_blank">GavinMiao</a> 2011-08-22 02:29 <a href="http://www.aygfsteel.com/GavinMiao/archive/2011/08/22/357009.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jsp scriptlethttp://www.aygfsteel.com/GavinMiao/archive/2011/08/10/356268.htmlGavinMiaoGavinMiaoWed, 10 Aug 2011 11:05:00 GMThttp://www.aygfsteel.com/GavinMiao/archive/2011/08/10/356268.htmlhttp://www.aygfsteel.com/GavinMiao/comments/356268.htmlhttp://www.aygfsteel.com/GavinMiao/archive/2011/08/10/356268.html#Feedback0http://www.aygfsteel.com/GavinMiao/comments/commentRss/356268.htmlhttp://www.aygfsteel.com/GavinMiao/services/trackbacks/356268.html <%%>Qscriptlet
<%!%>Q声?br /><%=%>Q表辑ּ
yourJspName_jsp.java对应 yourname.jsp
l验证,<%! code %>无论写在yourname.jsp的Q何位|,code都处在yourJspName_jsp.java的成员声明中Q?/font>
l验证, <% code %>无论写在yourname.jsp的Q何位|,code都处在yourJspName_jsp.java的_jspService成员Ҏ中;
l验证,<%=statement%>无论写在yourname.jsp的Q何位|,statement都处在yourJspName_jsp.java的_jspService成员Ҏ中的out.write(statement)中;
注意Q?br />1.
?<%!   %> 定义的变量,成ؓq个cȝ变量Q?/span>?<%!   %> 定义的方法也是如此,成ؓq个cȝҎ?br />2.<%...%> 中定义的变量其实是方?  _jspService()   的内部变? 即类的局部变量?/span>


GavinMiao 2011-08-10 19:05 发表评论
]]>
վ֩ģ壺 | | | Դ| | ɽ| Զ| | | ɽ| »Ȱ| | | ɳ| Ϸ| | ǭ| | | | | | Dz| ξ| | | | Ԫ| | | | | | ڶ| | | | ܱ| | ī| |