﻿<?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>IT博客-过网而居，点点滴滴-随笔分类-编程</title><link>http://www.cnitblog.com/isaac66520/category/4298.html</link><description>我的IT日记------冲刺流星 isaacct@163.com</description><language>zh-cn</language><lastBuildDate>Tue, 27 Sep 2011 20:03:11 GMT</lastBuildDate><pubDate>Tue, 27 Sep 2011 20:03:11 GMT</pubDate><ttl>60</ttl><item><title>C语言相关</title><link>http://www.cnitblog.com/isaac66520/archive/2006/12/20/20869.html</link><dc:creator>冲刺流星</dc:creator><author>冲刺流星</author><pubDate>Wed, 20 Dec 2006 12:51:00 GMT</pubDate><guid>http://www.cnitblog.com/isaac66520/archive/2006/12/20/20869.html</guid><wfw:comment>http://www.cnitblog.com/isaac66520/comments/20869.html</wfw:comment><comments>http://www.cnitblog.com/isaac66520/archive/2006/12/20/20869.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/isaac66520/comments/commentRss/20869.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/isaac66520/services/trackbacks/20869.html</trackback:ping><description><![CDATA[1。NUL是一个ASCII字符串结束的标记，而NULL是一个什么也不指向的指针<br /><img src ="http://www.cnitblog.com/isaac66520/aggbug/20869.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/isaac66520/" target="_blank">冲刺流星</a> 2006-12-20 20:51 <a href="http://www.cnitblog.com/isaac66520/archive/2006/12/20/20869.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>servlet学习</title><link>http://www.cnitblog.com/isaac66520/archive/2006/12/18/20735.html</link><dc:creator>冲刺流星</dc:creator><author>冲刺流星</author><pubDate>Mon, 18 Dec 2006 05:23:00 GMT</pubDate><guid>http://www.cnitblog.com/isaac66520/archive/2006/12/18/20735.html</guid><wfw:comment>http://www.cnitblog.com/isaac66520/comments/20735.html</wfw:comment><comments>http://www.cnitblog.com/isaac66520/archive/2006/12/18/20735.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/isaac66520/comments/commentRss/20735.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/isaac66520/services/trackbacks/20735.html</trackback:ping><description><![CDATA[
		<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
				<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
						<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
								<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt">
										<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
												<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">1。请求重定向和请求转发的区别<br />HttpServletResponse.sendRedirect</span>
												<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">方法对浏览器的请求直接作出响应，响应的结果就是告诉浏览器去重新发出对另外一个</span>
												<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">URL</span>
												<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">的访问请求，这个过程好比有个绰号叫“浏览器”的人写信找张三借钱，张三回信说没有钱，让“浏览器”去找李四借，并将李四现在的通信地址告诉给了“浏览器”。于是，“浏览器”又按张三提供通信地址给李四写信借钱，李四收到信后就把钱汇给了“浏览器”。可见，“浏览器”一共发出了两封信和收到了两次回复，“浏览器”也知道他借到的钱出自李四之手。</span>
												<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">RequestDispatcher</span>
												<span lang="EN-US" style="FONT-SIZE: 10.5pt; FONT-FAMILY: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">.forward</span>
												<span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt; mso-font-kerning: 1.0pt; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">方法在服务器端内部将请求转发给另外一个资源，浏览器只知道发出了请求并得到了响应结果，并不知道在服务器程序内部发生了转发行为。这个过程好比绰号叫“浏览器”的人写信找张三借钱，张三没有钱，于是张三找李四借了一些钱，甚至还可以加上自己的一些钱，然后再将这些钱汇给了“浏览器”。可见，“浏览器”只发出了一封信和收到了一次回复，他只知道从张三那里借到了钱，并不知道有一部分钱出自李四之手。<br />2。防止盗链<br />需要检查请求消息的Referer字段是否与本站匹配，一般即是用这样的方法</span>
										</span>
								</p>
						</span>
				</span>
		</span>
<img src ="http://www.cnitblog.com/isaac66520/aggbug/20735.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/isaac66520/" target="_blank">冲刺流星</a> 2006-12-18 13:23 <a href="http://www.cnitblog.com/isaac66520/archive/2006/12/18/20735.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JAVA的环境变量</title><link>http://www.cnitblog.com/isaac66520/archive/2006/11/27/19641.html</link><dc:creator>冲刺流星</dc:creator><author>冲刺流星</author><pubDate>Mon, 27 Nov 2006 08:26:00 GMT</pubDate><guid>http://www.cnitblog.com/isaac66520/archive/2006/11/27/19641.html</guid><wfw:comment>http://www.cnitblog.com/isaac66520/comments/19641.html</wfw:comment><comments>http://www.cnitblog.com/isaac66520/archive/2006/11/27/19641.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/isaac66520/comments/commentRss/19641.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/isaac66520/services/trackbacks/19641.html</trackback:ping><description><![CDATA[学了那么久的JAVA，竟然在这个问题上犯错误。。。<br />JAVA的环境变量classpath需要包括当前目录，然后就算是加了以后也没有用，还是会出现<br />Exception in thread "main" java.lang.classdeffound 的提示<br />原来是因为当前路径中出现了非法符号，把我搞昏了<img src ="http://www.cnitblog.com/isaac66520/aggbug/19641.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/isaac66520/" target="_blank">冲刺流星</a> 2006-11-27 16:26 <a href="http://www.cnitblog.com/isaac66520/archive/2006/11/27/19641.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>