﻿<?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>语源科技BlogJava-JavaLife</title><link>http://www.blogjava.net/dazern/</link><description>   天之道，利而不害；圣人之道，为而不争；信言不美，美言不信；善者不辩，辩者不善；知者不博，博者不知!
</description><language>zh-cn</language><lastBuildDate>Sun, 03 May 2026 04:31:43 GMT</lastBuildDate><pubDate>Sun, 03 May 2026 04:31:43 GMT</pubDate><ttl>60</ttl><item><title>eclipse3.1.2+tomcat5.5.15+lomboz3.1.2+wtp中碰到的问题解决方法！</title><link>http://www.blogjava.net/dazern/archive/2006/03/13/35123.html</link><dc:creator>JavaLife</dc:creator><author>JavaLife</author><pubDate>Mon, 13 Mar 2006 12:28:00 GMT</pubDate><guid>http://www.blogjava.net/dazern/archive/2006/03/13/35123.html</guid><wfw:comment>http://www.blogjava.net/dazern/comments/35123.html</wfw:comment><comments>http://www.blogjava.net/dazern/archive/2006/03/13/35123.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/dazern/comments/commentRss/35123.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dazern/services/trackbacks/35123.html</trackback:ping><description><![CDATA[<P><FONT color=#000000>&nbsp;&nbsp;&nbsp; 这几天一直在为毕业设计搭建开发环境，可是一个小小的问题确让我郁闷了好几天。<BR>&nbsp; 今天终于解决了，哈值得记录下来<IMG height=19 src="http://www.blogjava.net/Emoticons/72_72.gif" width=19 border=0>。<BR>&nbsp;&nbsp;<FONT style="BACKGROUND-COLOR: #ffffff">&nbsp; 问题描述如下：</FONT>&nbsp;&nbsp;&nbsp;&nbsp;<BR><BR>&nbsp;&nbsp;</FONT><FONT color=#000080>“我用的开发工具包是这个：lomboz-wtp-emf-gef-jem-eclipse-SDK-3.1.2-win32<BR>&nbsp;&nbsp;而我使用的TOMCAT是5.5.15版本的，JDK为jdk1.5.0_05。<BR>&nbsp; 使用的TOMCAT插件是：com.sysdeo.eclipse.tomcat_3.1.0<BR>&nbsp; 我可以肯定我用的这个集成包已经把J2EE开发环境而搭建起来了，各个环境变量也已经配置好。并且我能在ECLIPSE中建立Dynamic Web Project<BR>&nbsp; 例如，我建立了一个名为TestJSP的Dynamic Web Project 工程，并在该工程的WebContent目录中添加了一个名index.jsp文件，然后启动tomcat服务器，我自己建立的这个WEB工程应用，TOMCAT完全能正常执行（</FONT><A href="http://localhost:8080/TestJSP/index.jsp"><FONT color=#000080>http://localhost:8080/TestJSP/index.jsp</FONT></A><FONT color=#000080>),但是当我</FONT><A href="http://localhost:8080/"><FONT color=#000080>http://localhost:8080</FONT></A><FONT color=#000080>，使用这个连接访问TOMCAT的默认主页时却不能访问，并在浏览器显示如下<FONT color=#808080>错误信息：<BR><BR>HTTP Status 404 - /<BR>--------------------------------------------------------------------------------<BR>type Status report<BR>message /<BR>description The requested resource (/) is not available.<BR>--------------------------------------------------------------------------------<BR>Apache Tomcat/5.5.15<BR></FONT><BR>&nbsp;&nbsp;&nbsp; 上面的就是访问</FONT><A href="http://localhost:8080/"><FONT color=#000080>http://localhost:8080</FONT></A><FONT color=#000000><FONT color=#000080>时，出的错误信息。<BR>&nbsp;&nbsp;&nbsp;&nbsp; 对于如何启动TOMCAT服务器的，我想做点说明，这个服务器的启动我不是用com.sysdeo.eclipse.tomcat_3.1.0这个插件在ECLIPSE上生成的图标启动的，而是通过单击工程名的右键——&gt;run as ——&gt;run on server 启动的。<BR>&nbsp;&nbsp;&nbsp; &nbsp;到此，我想问题是不是出在这个服务器的启动方式上了！而且当我通过com.sysdeo.eclipse.tomcat_3.1.0这个插件在ECLIPSE上生成的图标启动时，则是可以进入TOMCAT默认主页的，但是我在这个主页中管理各个WEB应用时，在里面却看不到我自己建立的WEB工程应用：TestJSP.”<BR></FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp; 其实问题很简单，最主要的原因是因为我对这个版本的eclipse+lomboz+tomcat的工作方式与配置没有了解。<BR>&nbsp;&nbsp;&nbsp;&nbsp; 下面我讲解下具体的解决方法：<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. 当你在你的工程中添加了TOMCAT服务器后，会在eclipse状态栏的server选项下面看到这个：Tomcat v5.5 Server @ localhost（见下图）：<BR><IMG style="WIDTH: 687px; HEIGHT: 185px" height=195 alt="" hspace=0 src="http://www.javaworld.com.tw/jute/upload/2006/03/13/54099539.png" width=712 align=baseline border=0><BR><BR>2. 选中Tomcat v5.5 Server @ localhost 这个服务器，然后双击鼠标左键，会进入下图所示的界面：<BR>&nbsp;&nbsp; <IMG alt="" hspace=0 src="http://www.javaworld.com.tw/jute/upload/2006/03/12/60038479.png" align=baseline border=0><BR><BR>3. 当你看到这个界面后，你可以看到 Server&nbsp;下面有个Run modules directly from the workspace... 选项，<BR>&nbsp;&nbsp;&nbsp; 将它前面复选框上的钩去掉，然后重新启动服务器，再run on server执行你的WEB工程，并进入<BR>&nbsp;&nbsp;&nbsp; tomcat&nbsp; 默认主页：</FONT><A href="http://localhost:8080/TestJSP/index.jsp"><FONT color=#000000>http://localhost:8080</FONT></A><FONT color=#000000>。哈哈，是不是又看到你那可爱的tomcat猫咪拉！如果看到，<BR>&nbsp;&nbsp;&nbsp; 那这个问题就已经解决。<BR><BR>4，如果通过第3步中的方法，问题还是没有解决，还有另一种方式可以使用，就是手动将TOMCAT<BR>&nbsp;&nbsp;&nbsp; 的默认WEB应用添加到你的这个服务器中，方法如下：<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; 首先，请看下面这个图：点击上图左下角的 Modules 选项就可以进入下面这个图了。<BR>&nbsp;<IMG alt="" hspace=0 src="http://www.blogjava.net/images/blogjava_net/dazern/8399/r_moudles.JPG" align=baseline border=0><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; 当你看到如上这个图后，单击左边的Add Exteral Web Module...按钮，在里面添加你要加到这个服务器<BR>&nbsp;中的WEB工程目录。例如，我们要加入的是TOMCAT的默认主页（即ROOT工程），这时我们可以在弹出的对话框中的Document base项中，选择你的TOMCAT安装路径下的webapps目录（如我的安装路径是：D:\Java\Tomcat5.5\webapps）。<BR>&nbsp;&nbsp;&nbsp;&nbsp; 然后再在path项中，添入：/ROOT，单击确定。<BR>&nbsp;&nbsp;&nbsp;&nbsp; OK，到此我们要添加的TOMCAT默认主页，已经添加成功了，重新启动服务器，通过浏览器就可以看到可爱的猫咪了。<BR>&nbsp;&nbsp;&nbsp;&nbsp; 使用同样的方法，我们也可以将其他的TOMCAT自带WEB应用加入到服务器中，在此就不多说了。<BR><BR>5，最后还想做点补充说明，由于WTP已经自带了TOMCAT插件，因此为了避免冲突，大家最后不要再使用com.sysdeo.eclipse.tomcat_3.1.0插件。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 如果你的J2EE服务器的相关配置没有完成，就请先看看下面这两篇文章：<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; </FONT><A href="http://blog.csdn.net/dazern/archive/2006/01/08/573409.aspx" target=_blank><FONT color=#000000>http://blog.csdn.net/dazern/archive/2006/01/08/573409.aspx</FONT></A><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><A href="http://blog.csdn.net/dazern/archive/2006/01/08/573410.aspx" target=_blank><FONT color=#000000>http://blog.csdn.net/dazern/archive/2006/01/08/573410.aspx</FONT></A><FONT color=#000000>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; OK，就写到这吧，希望这篇文章能对那些碰到同样问题朋友有所帮助！</FONT></P><img src ="http://www.blogjava.net/dazern/aggbug/35123.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dazern/" target="_blank">JavaLife</a> 2006-03-13 20:28 <a href="http://www.blogjava.net/dazern/archive/2006/03/13/35123.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>lomboz-wtp-emf-gef-jem:名词解释！</title><link>http://www.blogjava.net/dazern/archive/2006/03/08/34349.html</link><dc:creator>JavaLife</dc:creator><author>JavaLife</author><pubDate>Wed, 08 Mar 2006 12:58:00 GMT</pubDate><guid>http://www.blogjava.net/dazern/archive/2006/03/08/34349.html</guid><wfw:comment>http://www.blogjava.net/dazern/comments/34349.html</wfw:comment><comments>http://www.blogjava.net/dazern/archive/2006/03/08/34349.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/dazern/comments/commentRss/34349.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dazern/services/trackbacks/34349.html</trackback:ping><description><![CDATA[<SPAN class=tpc_content><FONT size=2>1.WTP(Web Tools Project):<BR>&nbsp; Eclipse下的一个子项目,很多人觉得它比Lomboz用起来更舒服(不过我还没有用过,),是J2EE的开发平台<BR>有兴趣可以到WTP的home去看看：</FONT><A href="http://www.eclipse.org/webtools/" target=_blank><FONT color=#663366 size=2>http://www.eclipse.org/webtools/</FONT></A><FONT size=2> <BR>2.EMF(Eclipse Modeling Framework): <BR>这个Java框架具有代码生成的能力,这个框架中的关键概念是：元数据（meta-data），代码生成， 和默认的序列化。<BR>3.GEF（Graphical Editor Framework）:<BR>这个框架，它可以用来给用户提供图形化编辑模型的功能，从而提升用户体验，典型的应用如图形化的流程设计器、UML类图编辑器等等。<BR>4.jem 网上搜索吧,....... </FONT></SPAN><img src ="http://www.blogjava.net/dazern/aggbug/34349.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dazern/" target="_blank">JavaLife</a> 2006-03-08 20:58 <a href="http://www.blogjava.net/dazern/archive/2006/03/08/34349.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JAVA编程思想英文第四版推出！</title><link>http://www.blogjava.net/dazern/archive/2006/02/27/32650.html</link><dc:creator>JavaLife</dc:creator><author>JavaLife</author><pubDate>Mon, 27 Feb 2006 07:14:00 GMT</pubDate><guid>http://www.blogjava.net/dazern/archive/2006/02/27/32650.html</guid><wfw:comment>http://www.blogjava.net/dazern/comments/32650.html</wfw:comment><comments>http://www.blogjava.net/dazern/archive/2006/02/27/32650.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/dazern/comments/commentRss/32650.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dazern/services/trackbacks/32650.html</trackback:ping><description><![CDATA[<IMG style="FLOAT: left" height=136 alt="" src="http://www.blueclassic.net/upload/java4-front-500.jpg" width=113 align=left>Java编程思想第四版（Thinking in Java, 4th edition）<BR>Publisher: Prentice Hall PTR; 4 edition (February 15, 2006) <BR>ISBN: 0131872486<BR>&nbsp;&nbsp;&nbsp;&nbsp; 学Java的大概没有人没看过这本经典书籍,现在出到第四版，Amazon目前开始接受预定,国内还不知道什么时候会有胶印版本。<SPAN class=javascript id=text707032>大概的看了一下，感觉这一版改动的比较多，很多内容和示范代码都改写过，当然就是增加J2SE 5.0/6.0（beta）新功能及新特性！</SPAN>有兴趣的朋友可以关注一下<A href="http://www.bruceeckel.com/"><FONT color=#b36b00>Bruce Eckel</FONT></A> 的<A href="http://www.artima.com/weblogs/index.jsp?blogger=beckel"><FONT color=#b36b00>Blog</FONT></A>中写了一篇名为 <A href="http://www.artima.com/weblogs/viewpost.jsp?thread=112552"><FONT color=#b36b00>Where is Thinking in Java, 4th Edition?</FONT></A> 的文章向读者介绍了TIJ 4th的写作进展和感言。<BR><A href="http://mindview.net/Books/TIJ4" target=_blank><FONT color=#b36b00>Burce Erkel's mindview</FONT></A>上提供前7个章节的pdf格式<A href="http://www.pythoncriticalmass.com/TIJ4/BookSampleDownload.php" target=_blank><FONT color=#b36b00>样书下载</FONT></A>。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java编程思想是我学JAVA过程中最喜欢的一本，我已经买了中文第二版和英文第三版，<FONT color=#b36b00>Burce Erkel</FONT><FONT color=#000000>老师的书都很经典，相信第四版也依然如此，自然也就是我的必买书！<IMG height=20 src="http://www.blogjava.net/Emoticons/QQ/14.gif" width=20 border=0><BR>&nbsp;</FONT><img src ="http://www.blogjava.net/dazern/aggbug/32650.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dazern/" target="_blank">JavaLife</a> 2006-02-27 15:14 <a href="http://www.blogjava.net/dazern/archive/2006/02/27/32650.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MySQL5.0中文问题及JDBC数据库连接和JSP汉字编码问题解决方法总结</title><link>http://www.blogjava.net/dazern/archive/2006/02/26/32520.html</link><dc:creator>JavaLife</dc:creator><author>JavaLife</author><pubDate>Sun, 26 Feb 2006 12:41:00 GMT</pubDate><guid>http://www.blogjava.net/dazern/archive/2006/02/26/32520.html</guid><wfw:comment>http://www.blogjava.net/dazern/comments/32520.html</wfw:comment><comments>http://www.blogjava.net/dazern/archive/2006/02/26/32520.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dazern/comments/commentRss/32520.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dazern/services/trackbacks/32520.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; LINE-HEIGHT: 14pt; mso-line-height-rule: exactly; mso-layout-grid-align: none; mso-char-indent-count: 2.0"><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">解决这类问题的方法很多，今天在此简单的终结一下，把常碰到的问题解决方法记下来!</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"> <BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-list: Ignore">1，<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">MySQL5.0</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">中文问题解决方案如下：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>1</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">、在<SPAN lang=EN-US>dos</SPAN>环境下，用<SPAN lang=EN-US>mysql --default-character-set=gbk -u root -p </SPAN>这句话进入<SPAN lang=EN-US>mysql~~&nbsp;<BR></SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>2</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">、建数据库、表，如下：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>create database admin;&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>use admin;</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>CREATE TABLE admin (&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>admin_name char(20) NOT NULL,&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>admin_password char(20) NOT NULL&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>) TYPE=MyISAM,&nbsp;</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">default character set gbk; <BR><BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"><SPAN style="mso-list: Ignore">2，<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">JDBC</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">的设置问题：<SPAN lang=EN-US>(</SPAN>这里主要讲的是</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">mysql-connector-java-<CHSDATE w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.1.8</CHSDATE></SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana">这个</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">JDBC</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-ascii-font-family: Verdana">驱动程序而言</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana">)&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="mso-spacerun: yes">&nbsp;</SPAN></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">这只是一个压缩包，并不需要安装，只要将其解压，使用的是文件夹</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">mysql-connector-java-<CHSDATE w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.1.8</CHSDATE></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">里的文件：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">mysql-connector-java-3.1.8-bin.jar</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">．</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; &nbsp;</SPAN></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">需要配置环境变量的是</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">JDBC</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">驱动．在配置前先要把刚才说到的</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">mysql-connector-java-<CHSDATE w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.1.8</CHSDATE>-bin.jar</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">放到本地硬盘某处（我放的地方：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">E:\JAVA\MySQLJDBC</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">），然后根据你放的地方，配置</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">classpath</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">，我的配置是这样的：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"> <BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">.;E:\Java\j2se5.0\lib\tools.jar; <SPAN style="COLOR: red">E:\Java\j2se5.0\lib\mysql-connector-java-3.1.8-bin-g.jar; </SPAN><SPAN style="COLOR: green">E:\JAVA\MySQLJDBC\mysql-connector-java-3.1.8-bin.jar 
<P></P></SPAN></SPAN>
<P></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 14pt; TEXT-ALIGN: left; mso-line-height-rule: exactly; mso-pagination: widow-orphan" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">&nbsp;&nbsp;&nbsp; 配置这个的目的是让你的</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">java</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">应用程序找到连接</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">mysql</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">的驱动．</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">&nbsp;<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; &nbsp;</SPAN></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">配置完环境变量后还有很重要一步就是为</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">JSP</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">连接数据库配置驱动，这个其实很简单，就是把</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: blue; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">mysql-connector-java-<CHSDATE w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.1.8</CHSDATE>-bin.jar</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">拷到某些文件夹里就行了，我在网上看了很多资料问了很多人，各种说法都有，我综合了一下，为了保险，我都全做了，呵呵，反正就是拷一个</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">400K</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">的文件而已，现列出要把</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">mysql-connector-java-3.1.8-bin.jar</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">拷进去的文件夹，如下：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"> <BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">E:\Java\Tomcat5.0\common\lib <BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">E:\Java\Tomcat5.0\shared\lib&nbsp;<BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">一般情况下只要考到</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">Tomcat5.0</SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">上面的两个问题夹里面就可以解决问题了，如果需要，也可以将</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">mysql-connector-java-<CHSDATE w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.1.8</CHSDATE>-bin.jar</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">这个驱动文件拷贝到你的</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">WEB</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">站点的</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">…\WEB-INF\lib </SPAN><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">目录下面。</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"></P></SPAN>
<P></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; LINE-HEIGHT: 14pt; TEXT-ALIGN: left; mso-line-height-rule: exactly; tab-stops: list 18.0pt; mso-list: l0 level1 lfo1; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-fareast-font-family: Verdana"><SPAN style="mso-list: Ignore">3，<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">Eclipse</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">中数据库插件中操作数据库时的中文编码问题：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"> <BR></SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">当在</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">Eclipse</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">中装上来你所喜欢的数据库插件的时候，都会出现在你查询某一个数据库之后出现记录中的汉字乱码。解决方法很简单，</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">只要在你建立数据库连接的时候把</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">URL</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">设置成下面这个样子就可以了：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"> <BR></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; URL=</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: blue; mso-fareast-font-family: 楷体_GB2312"> jdbc:mysql://localhost:3306/?useUnicode=true&amp;characterEncoding=GBK</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt"></P></SPAN>
<P></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; LINE-HEIGHT: 14pt; TEXT-ALIGN: left; mso-line-height-rule: exactly; tab-stops: list 18.0pt; mso-list: l0 level1 lfo1; mso-pagination: widow-orphan" align=left><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: red; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"><SPAN style="mso-list: Ignore">4，<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">在</SPAN><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">JSP</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">网页编辑中</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">个人经验：</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">在经过很多的次调试之后，发现在装了</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">myeclipse</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">之后，有这么条小巧：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <BR></SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">①</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">在用</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">myeclipse</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">编写</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">HTML</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">文件时</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">charset=GBK</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">设置成这个样子，那么在浏览器中浏览时就不会出现乱码；</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> <BR></SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">②</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">而在用</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">myeclipse</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">编辑<SPAN lang=EN-US>JSP</SPAN>文件时，</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">&lt;%@ page contentType="text/html;charset=GB2312" %&gt;</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">设置成这样子，且这条语句必须是整个<SPAN lang=EN-US>JSP</SPAN>文件的第一条语句<SPAN lang=EN-US>,</SPAN>就可以避免<SPAN lang=EN-US>JSP</SPAN>文件在浏览器中显示时出现乱码；</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;</SPAN></SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN></SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">③</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">对于如果在<SPAN lang=EN-US>JSP</SPAN>网页中要从<SPAN lang=EN-US>HTML</SPAN>页面中接收数据，那么在<SPAN lang=EN-US>JSP</SPAN>中的接收语句的汉字编码应与数据来源的<SPAN lang=EN-US>HTML</SPAN>的汉字编码相同；例如</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">②</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">中的<SPAN lang=EN-US>HTML</SPAN>的汉字编码为</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">charset=GBK</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">，</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">那么在<SPAN lang=EN-US>JSP</SPAN>中的接收语句就应该这样设置：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">request.setCharacterEncoding("GBK");</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">如果还要将接受的数据插入到数据库中<SPAN lang=EN-US>(</SPAN>以插入<SPAN lang=EN-US>MySQL5.0</SPAN>数据库为例<SPAN lang=EN-US>)</SPAN>，那么在插入数据库时的汉字编码也应与<SPAN lang=EN-US>HTML</SPAN>文件中的汉字编码相同，我的设置如下：</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">con= DriverManager.getConnection("jdbc:mysql://localhost:3306/sample_db?user=dazern&amp;password=5201314&amp;useUnicode=true&amp;characterEncoding=GBK");</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">这样设置后数据库中的数据才不会乱码<SPAN lang=EN-US>. 
<P></P></SPAN></SPAN>
<P></P>
<P class=MsoNormal style="MARGIN: 0cm -21.5pt 0pt 27pt; TEXT-INDENT: -27pt; LINE-HEIGHT: 14pt; mso-line-height-rule: exactly; mso-layout-grid-align: none; mso-char-indent-count: -3.0; mso-para-margin-left: 27.0pt; mso-para-margin-top: 0cm; mso-para-margin-right: -2.05gd; mso-para-margin-bottom: .0001pt"><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp; 以上经验都是在</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #ff6600; FONT-FAMILY: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt">myeclipse<CHSDATE w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">3.8.3</CHSDATE>+Tomcat5.0.28</SPAN><SPAN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: Verdana; mso-bidi-font-family: Verdana; mso-font-kerning: 0pt; mso-ascii-font-family: Verdana">中测试过，没有错误！在此仅供大家借鉴，具体情况还得具体分析！</SPAN><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt"> </P></SPAN><img src ="http://www.blogjava.net/dazern/aggbug/32520.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dazern/" target="_blank">JavaLife</a> 2006-02-26 20:41 <a href="http://www.blogjava.net/dazern/archive/2006/02/26/32520.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java执行速度大幅提高</title><link>http://www.blogjava.net/dazern/archive/2006/02/20/31709.html</link><dc:creator>JavaLife</dc:creator><author>JavaLife</author><pubDate>Mon, 20 Feb 2006 13:31:00 GMT</pubDate><guid>http://www.blogjava.net/dazern/archive/2006/02/20/31709.html</guid><wfw:comment>http://www.blogjava.net/dazern/comments/31709.html</wfw:comment><comments>http://www.blogjava.net/dazern/archive/2006/02/20/31709.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dazern/comments/commentRss/31709.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dazern/services/trackbacks/31709.html</trackback:ping><description><![CDATA[<!--StartFragment -->&nbsp;&nbsp;&nbsp; Java语言恐怕是稳居网路应用程序语言的首选了，这都要归功于它高度的安全性以及跨平台的特性，几乎在目前所有的电脑平台上您都可以见得到 Java的芳踪。过去很可能会有不少人抱怨Java虽然有著相当不错的跨平台以及安全防护等特性，但是它的执行速度远远不及C++等各种传统惯用的程序语言。<BR>&nbsp;&nbsp;&nbsp;&nbsp; 不过这次Sun Microsystem 可是有备而来的，不仅在执行速度上有大幅度的改革，而且在内容上也有做了一些修改以及增强。<BR>&nbsp;&nbsp;&nbsp;&nbsp; 最新Java(TM) SE Development Kit 6 Beta，建立一个运行JAVA的环境。<img src ="http://www.blogjava.net/dazern/aggbug/31709.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dazern/" target="_blank">JavaLife</a> 2006-02-20 21:31 <a href="http://www.blogjava.net/dazern/archive/2006/02/20/31709.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Mozilla新产品：SeaMonkey</title><link>http://www.blogjava.net/dazern/archive/2006/02/20/31703.html</link><dc:creator>JavaLife</dc:creator><author>JavaLife</author><pubDate>Mon, 20 Feb 2006 13:09:00 GMT</pubDate><guid>http://www.blogjava.net/dazern/archive/2006/02/20/31703.html</guid><wfw:comment>http://www.blogjava.net/dazern/comments/31703.html</wfw:comment><comments>http://www.blogjava.net/dazern/archive/2006/02/20/31703.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/dazern/comments/commentRss/31703.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dazern/services/trackbacks/31703.html</trackback:ping><description><![CDATA[Mozilla在2月来临的时候，终于推出了其新的网络工具包<A href="http://www.mozilla.org/projects/seamonkey/"><FONT color=#b36b00>SeaMonkey</FONT></A>的正式版。SeaMonkey包含了多个上网所需要的常用工具，是<A href="http://www.mozilla.org/products/mozilla1.x/"><FONT color=#b36b00>Mozilla Suite系列</FONT></A>的升级产品。<BR><BR><IMG alt=Seamonkey src="http://www.mozilla.org/projects/seamonkey/images/project-seamonkey-screen.png"><BR>SeaMonkey工具包的组件包括：网页浏览、RSS阅读器、Email客户端、IRC客户端、HTML编辑工具等等。SeaMonkey吸取了Mozilla新产品如Firefox 1.5、Thunderbird 1.5等的特性，让这个软件包能更符合目前网络应用软件的潮流。<BR><BR>就我个人来说，SeaMonkey可能只是Mozilla原先几个产品新版本的重新组合。但是从市场角度来说，Firefox毕竟只是一个太干净的浏览器。很多人说Firefox不好，只是因为用它太麻烦，需要找各种各样的插件来实现功能。我认识很多这样的人，最后都转投了Opera或者是IE核心的Maxthon。现在Mozilla推出了SeaMonkey，正是填补了这样一个空缺。如果并不讨厌Firefox，那除了Opera，现在你就可以试试新的SeaMonkey。<img src ="http://www.blogjava.net/dazern/aggbug/31703.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dazern/" target="_blank">JavaLife</a> 2006-02-20 21:09 <a href="http://www.blogjava.net/dazern/archive/2006/02/20/31703.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java Platform,Standard Edition 6 Beta</title><link>http://www.blogjava.net/dazern/archive/2006/02/20/31702.html</link><dc:creator>JavaLife</dc:creator><author>JavaLife</author><pubDate>Mon, 20 Feb 2006 13:08:00 GMT</pubDate><guid>http://www.blogjava.net/dazern/archive/2006/02/20/31702.html</guid><wfw:comment>http://www.blogjava.net/dazern/comments/31702.html</wfw:comment><comments>http://www.blogjava.net/dazern/archive/2006/02/20/31702.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dazern/comments/commentRss/31702.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dazern/services/trackbacks/31702.html</trackback:ping><description><![CDATA[Sun Microsystems 发布了 Java Platform, Standard Edition 6 (Java SE 6)<BR>的Beta版本。也就是Mustang的Beta版本。"相信这个版本在功能及易用性上应该有不小的改进。"<BR>Sun发言人提到,通过扩展对脚本语言以及web service的支持，Java SE 6已经成为了下一代WEB<BR>2.0应用的平台，现在我们发布Beta版本，让广大开发者进行测试。” Jeff Jackson<BR>提到。“同时希望开发者们尽早测试，并将bug反馈给我们”。<BR>Java SE 6支持JAX-WS 2.0 和 JAXB 2.0，提供对程序进行监测和管理的工具，提供对DTrace的扩展支持。<BR>同时SUN提到：Java SE6对桌面程序的效率将有显著的提高，这无疑是非常让人期待的。"希望所谓的SE6的桌面程序不是在炒作而已，必尽桌面MS是老大。不过Mustang的新特性还是很值得我们期待的，等下载测试后再发表意见！下载(Java SE 6)Beta版在<A href="http://java.sun.com/javase/6/download.jsp" target=_self _base_target="_blank">here</A><BR><BR><SPAN style="FONT-WEIGHT: bold">New Security features and enhancements:</SPAN> <BR>1. Native platform GSS/Kerberos integration<BR>2. Java Authentication and Authorization Service (JAAS) login module that employs LDAP authentication<BR>3. New Smart Card I/O API <BR><SPAN style="FONT-WEIGHT: bold">Integrated Web Services: </SPAN><BR>1. &nbsp;&nbsp; New API for XML digital signature services for secure web services<BR>2. &nbsp;&nbsp; New Client and Core Java Architecture for XML-Web Services (JAX-WS) 2.0 APIs<BR>3. &nbsp;&nbsp; New support for Java Architecture for XML Binding (JAXB) 2.0 <BR>Enhanced Management &amp; Serviceability: <BR>1. Improved JMX Monitoring API<BR>2. Runtime Support for dTrace (Solaris 10 and future Solaris OS releases only)<BR>3. New custom deployment facilities <BR><SPAN style="FONT-WEIGHT: bold">Increased Developer Productivity:</SPAN> <BR>1. Improved memory usage analysis and leak detection<BR>2. Significant library improvements<BR>3. Improvements to the Java Platform Debug Architecture (JPDA) &amp; JVM Tool Interface <BR><SPAN style="FONT-WEIGHT: bold">Improved User Experience: </SPAN><BR>1. Look and feel updates to better match underlying platforms<BR>2. Improved desktop performance and integration<BR>3. Enhanced internationalization support<BR><img src ="http://www.blogjava.net/dazern/aggbug/31702.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dazern/" target="_blank">JavaLife</a> 2006-02-20 21:08 <a href="http://www.blogjava.net/dazern/archive/2006/02/20/31702.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>本站推荐的免费网络电话现在已经升级了，为了能让大家继续使用我更新了新版本的下在地址，欢迎大家继续使用！</title><link>http://www.blogjava.net/dazern/archive/2006/02/19/31456.html</link><dc:creator>JavaLife</dc:creator><author>JavaLife</author><pubDate>Sun, 19 Feb 2006 03:59:00 GMT</pubDate><guid>http://www.blogjava.net/dazern/archive/2006/02/19/31456.html</guid><wfw:comment>http://www.blogjava.net/dazern/comments/31456.html</wfw:comment><comments>http://www.blogjava.net/dazern/archive/2006/02/19/31456.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/dazern/comments/commentRss/31456.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dazern/services/trackbacks/31456.html</trackback:ping><description><![CDATA[<SPAN class=oblog_text>&nbsp; <IMG alt="" src="http://blog.csdn.net/images/blog_csdn_net/dazern/171164/o_91141685.jpg"> 
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 真正的网上免费电话（可拨打国际长途，座机电话，手机），到下面我提供的地址下载软件，安装后运行软件，点软件界面上方的“注册VIP号码”进行注册，并在介绍人VIP号栏填：91141685&nbsp;。</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; 注册时要求输入你的手机号码申请注册码，注册码是免费的大家可以放心，我已经试了不会收费。我今天免费打了一个小时，真的很好，话音质量特别好，可以和普通电话媲美。以前也用过象E话通这个免费网络电话软件，但免费时间很短，很不爽！今天感觉还可以，可以免费通话35分钟；建议大家去试试，反正是免费，能打就打。呵呵……<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;中国铁通委托上海枫叶网络科技有限公司试运行免费网络电话redvip，注册就送5元话费， 拨打国内一律0.15元/分钟，可拨打35分钟。<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;软件下载地址:</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;1:&nbsp; 如果您确定您的电脑已经安装了微软.NET框架文件,请单击这里<BR>&nbsp;&nbsp;<A href="http://www.redvip.net/upload/RedVIP.EXE">http://www.redvip.net/upload/RedVIP.EXE</A>&nbsp;下载RedVIP软件电话程序； </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;2: &nbsp;如果您不确定您的电脑是否有安装微软.NET框架文件,请单击这里下载包含微软.NET框架文件的RedVIP软件电话程序。</P>
<P><A href="http://update.redmaplenet.com/RedVIP.exe" target=_blank>http://update.redmaplenet.com/RedVIP.exe</A>&nbsp;&nbsp;下载后选择执行setup.exe文件直接安装&nbsp;。<BR></P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在没有安装微软.NET框架文件的情况下首先还是要下在第2个文件进行安装，在安装完后软件会自动升级为最新版本。<BR><BR>&nbsp;&nbsp; 它的特点: 1、一次打通 2、每次通话时间无限制 3、可以发短信 4、可以设置呼叫转移5、对拨叫用户关机，无信号，号码错误都有提示，和普通电话一样。 </P></SPAN><img src ="http://www.blogjava.net/dazern/aggbug/31456.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dazern/" target="_blank">JavaLife</a> 2006-02-19 11:59 <a href="http://www.blogjava.net/dazern/archive/2006/02/19/31456.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>