﻿<?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-似水流年</title><link>http://www.blogjava.net/huhu/</link><description>Huhu'Blog</description><language>zh-cn</language><lastBuildDate>Sun, 12 Apr 2026 06:09:54 GMT</lastBuildDate><pubDate>Sun, 12 Apr 2026 06:09:54 GMT</pubDate><ttl>60</ttl><item><title>Javascript回车换行</title><link>http://www.blogjava.net/huhu/archive/2006/04/04/39133.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Tue, 04 Apr 2006 05:24:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2006/04/04/39133.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/39133.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2006/04/04/39133.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/39133.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/39133.html</trackback:ping><description><![CDATA[
		<p>&lt;html&gt;<br />&lt;head&gt;<br />&lt;title&gt;Untitled Document&lt;/title&gt;<br />&lt;meta http-equiv="Content-Type" content="text/html; charset=big5"&gt;<br />&lt;/head&gt; </p>
		<p>&lt;body&gt;<br /> &lt;SCRIPT language="javascript"&gt;<br /> function next()<br />   {<br />   if(event.keyCode==13)event.keyCode=9;<br />  }<br /> &lt;/SCRIPT&gt;<br />&lt;form name="form1" method="post" action=""&gt;<br />&lt;input onkeydown="next()" name="text1"&gt;<br />&lt;input onkeydown="next()" name="text2"&gt;<br />&lt;input onkeydown="next()" name="text3"&gt;<br />&lt;input onkeydown="next()" name="text5"&gt;<br />&lt;input onkeydown="if(event.keyCode==13)event.keyCode=9" name="text4"&gt;<br />  &lt;input type="submit" name="Submit" value="Submit"&gt;<br />  &lt;input type="reset" name="Submit2" value="Reset"&gt;<br />&lt;/form&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /></p>
<img src ="http://www.blogjava.net/huhu/aggbug/39133.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2006-04-04 13:24 <a href="http://www.blogjava.net/huhu/archive/2006/04/04/39133.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>@hibernate Tag Reference</title><link>http://www.blogjava.net/huhu/archive/2005/11/15/19862.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Tue, 15 Nov 2005 06:03:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/11/15/19862.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/19862.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/11/15/19862.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/19862.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/19862.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 以下是摘自http://xdoclet.sourceforge.net/xdoclet/tags/hibernate-tags.html的内容@hibernate Tag ReferenceTags for declaration of Hibernate descriptor fileApplies to: All classes, at class level and on get...&nbsp;&nbsp;<a href='http://www.blogjava.net/huhu/archive/2005/11/15/19862.html'>阅读全文</a><img src ="http://www.blogjava.net/huhu/aggbug/19862.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-11-15 14:03 <a href="http://www.blogjava.net/huhu/archive/2005/11/15/19862.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>appfuse QuickStart</title><link>http://www.blogjava.net/huhu/archive/2005/11/15/19823.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Tue, 15 Nov 2005 03:20:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/11/15/19823.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/19823.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/11/15/19823.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/19823.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/19823.html</trackback:ping><description><![CDATA[<P>一.安装<BR>&nbsp;&nbsp; 1.安装jdk1.5，E:\server\jdk1.5<BR>&nbsp;&nbsp; 2.安装mysql 4.0,E:\server\mysql<BR>&nbsp;&nbsp; 3.安装Ant 1.6,E:\apache-ant-1.6.2<BR>&nbsp;&nbsp; 4.安装tomcat5.5，E:\tomcat5</P>
<P>二.系统路径的设置：</P>
<P>&nbsp;&nbsp; 1、JAVA_HOME = E:\server\jdk1.5<BR>&nbsp;&nbsp; 2、MYSQL_HOME = E:\server\mysql<BR>&nbsp;&nbsp; 3、ANT_HOME = E:\apache-ant-1.6.2<BR>&nbsp;&nbsp; 4、CATALINA_HOME = E:\tomcat5<BR>&nbsp;&nbsp; 5、path,%JAVA_HOME%\bin;%ANT_HOME%\bin;%CATALINA_HOME%\bin;%MYSQL_HOME%\bin</P>
<P>三.安装appfuse-1.8.2，E:\jbproject\appfuse<BR>&nbsp;&nbsp; 1.将..\appfuse\lib\junit3.8.1\junit.jar拷贝到%ANT_HOME%/lib目录下<BR>&nbsp;&nbsp; 2.根据需要修改build.properties以下部分<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database.jar=${postgresql.jar}<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database.type=postgresql<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database.host=localhost<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database URL for creating other databases (doesn't work with pgsql)<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database.admin.url=jdbc:${database.type}://${database.host}/template1<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database.admin.username=postgres<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database.admin.password=postgres</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; #hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database.driver_class=org.postgresql.Driver<BR>&nbsp;&nbsp;&nbsp;&nbsp; #database.url=jdbc:${database.type}://${database.host}/${database.name}</P>
<P>&nbsp;&nbsp; 我只修改了database.admin.password=我的mysql密码<BR>&nbsp;&nbsp; 3.安装的可选项，<BR>&nbsp;&nbsp;&nbsp;&nbsp; 如果你希望使用 iBATIS 作为持久化framework, 查看extras/ibatis目录下的 README.txt 文件或者运行 ant install-ibatis。 <BR>&nbsp;&nbsp;&nbsp;&nbsp; 如果你希望使用 Spring 作为web framework, 查看 extras/spring 目录下的 README.txt 文件或者运行 ant install-springmvc。 <BR>&nbsp;&nbsp;&nbsp;&nbsp; 如果你希望使用 WebWork 作为web framework, 查看extras/webwork 目录下的 README.txt 文件或者运行 ant install-webwork。 <BR>&nbsp;&nbsp;&nbsp;&nbsp; 如果你希望使用 JSF 作为web framework, 查看 extras/jsf 目录下的 README.txt 文件或者运行 ant install-jsf。 <BR>&nbsp;&nbsp;&nbsp;&nbsp; 如果你希望使用 Tapestry 作为web framework, 查看 extras/tapestry 目录下的 README.txt 文件或者运行 ant install-tapestry。 </P>
<P>&nbsp;&nbsp; <BR>四.新建项目<BR>&nbsp;&nbsp; 1. 在控制台，E:\jbproject\appfuse&gt;ant new 按照提示输入application名称（myapp），database名称（mydb），package名称（com.jinn）.<BR>&nbsp;&nbsp; 2. 如果package名称不是org.appfuse，拷贝appfuse下的ApplicationResources_zh_CN.properties和ApplicationResources_zh.properties到对应的路径下myapp下。(注意如果你的package名称不是org.appfuse(或不是以org开头？没有做过测试),会提示你输入the first part of your new package,先别忙着<BR>输入，看看myapp，跟appfuse一样，我要你着重看看myapp\web\WEB-INF\classes下的ApplicationResources_zh_CN.properties或ApplicationResources_zh.properties<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 跟appfuse下是一样的。输入the first part of your new package，例如com，再看看myapp\web\WEB-INF\classes下的ApplicationResources_zh_CN.properties或ApplicationResources_zh.properties<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 它的内容变了。原来appfuse在执行rename package的过程中把相关的properties内容做了处理。这会造成页面显示乱码。<BR>&nbsp;&nbsp; 3. 运行E:\jbproject\myapp&gt;ant setup ，BUILD SUCCESSFUL，在浏览器输入<A href="http://localhost:8080/myapp">http://localhost:8080/myapp</A>。一切正常，此时打开查看${CATALINA_HOME}\webapps\myapp\WEB-INF\classes\ApplicationResources_zh_CN.properties,已被编码转换。<BR>&nbsp;&nbsp; 4. 关闭tomcat，运行E:\jbproject\myapp&gt;ant test-all,出错，" failed with message "Wrong document title found! Expected "AppFuse<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~ ???è?????" but got "AppFuse ~ ???è?????"，显然还是资源文件编码的问题，注意控制台有段提示"test with locale 'zh'",将myapp\web\WEB-INF\classes&gt;ApplicationResources_zh.properties更名为ApplicationResources_zh.properties.bak<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 运行E:\jbproject\myapp\web\WEB-INF\classes&gt;native2ascii -encoding gbk ApplicationResources_zh.properties ApplicationResources_zh.properties<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 再次运行E:\jbproject\myapp&gt;ant test-all BUILD SUCCESSFUL</P>
<P>参考文章：<A href="http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseQuickStart_zh">http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseQuickStart_zh</A><BR>&nbsp;</P><img src ="http://www.blogjava.net/huhu/aggbug/19823.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-11-15 11:20 <a href="http://www.blogjava.net/huhu/archive/2005/11/15/19823.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>AppFuse Ant任务</title><link>http://www.blogjava.net/huhu/archive/2005/11/11/19286.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Fri, 11 Nov 2005 06:14:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/11/11/19286.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/19286.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/11/11/19286.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/19286.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/19286.html</trackback:ping><description><![CDATA[<SPAN style="FONT-SIZE: 10pt">&nbsp;
<P class=MsoNormal style="MARGIN: 0cm 0cm 11.25pt; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-outline-level: 1" align=left><B><SPAN lang=EN-US style="FONT-SIZE: 21pt; COLOR: #999999; FONT-FAMILY: Verdana; mso-bidi-font-family: Arial; mso-font-kerning: 18.0pt">AppFuse</SPAN></B><B><SPAN style="FONT-SIZE: 21pt; COLOR: #999999; FONT-FAMILY: 宋体; mso-bidi-font-family: Arial; mso-font-kerning: 18.0pt; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">的</SPAN></B><B><SPAN lang=EN-US style="FONT-SIZE: 21pt; COLOR: #999999; FONT-FAMILY: Verdana; mso-bidi-font-family: Arial; mso-font-kerning: 18.0pt">Ant</SPAN></B><B><SPAN style="FONT-SIZE: 21pt; COLOR: #999999; FONT-FAMILY: 宋体; mso-bidi-font-family: Arial; mso-font-kerning: 18.0pt; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">任务</SPAN></B><B><SPAN lang=EN-US style="FONT-SIZE: 21pt; COLOR: #999999; FONT-FAMILY: Verdana; mso-bidi-font-family: Arial; mso-font-kerning: 18.0pt"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></B></P>
<P><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: #333333; FONT-FAMILY: Verdana; mso-bidi-font-family: 宋体; mso-fareast-font-family: 宋体; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">This page contains a listing of the most common Ant targets in <A href="file://192.168.0.200/software/AppFuse/docs/wiki.html#Link_AppFuse#Link_AppFuse"><B><SPAN style="COLOR: red">AppFuse</SPAN></B></A> that I use in my daily development. For a complete list of tasks, type "ant -projecthelp" at the command line. <BR>
<TABLE class=MsoNormalTable style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" vAlign=top width=91>
<H6><FONT size=3><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">任务</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></FONT></H6></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" vAlign=top>
<H6><FONT size=3><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">描述</SPAN><SPAN lang=EN-US><o:p></o:p></SPAN></FONT></H6></TD></TR>
<TR style="HEIGHT: 15.45pt; mso-yfti-irow: 1">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 15.45pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">setup<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 15.45pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">建立</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">database, </FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">配置</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">deploys expanded war<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 2">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">clean<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Removes build artifacts<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 3">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">compile<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">编译所有的文件</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 4">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">deploy<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">编译、然后部署到</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 5">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">deploy-web<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">部署</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">JSP</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和静态</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Web</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">内容到</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 6">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">install<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使用</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Manager</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">程序安装</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Web</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">程序</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">. <BR clear=all></FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对于向远程服务器上部署程序很适合</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 7">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">list<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">列出</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经安装、部署好的应用</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 8">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">refresh<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Undeploys, cleans, </FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">然后重新部署</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">. <o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 9">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">reload<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">重新装载所有程序</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 10">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">remove<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">删除</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">部署好的程序</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 11">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">setup-db<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">创建数据库，并插入范例需要的数据</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 12">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">setup-tomcat<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">复制</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">JDBC</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">驱动和</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">context.xml</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">到</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">相应目录下</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 13">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">test-all<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">运行所有用于测试</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">dao, service</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">web</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的测试用例</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 14">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">test-dao<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">测试</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">dao</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">模块</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 15">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">test-service<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">测试</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">service</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">模块</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="HEIGHT: 18.35pt; mso-yfti-irow: 16">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 18.35pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">test-web<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 18.35pt; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">使用</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Mocks</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">测试</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Action/Controller (</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">不需要容器</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">)<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 17">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">test-jsp<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中运行</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Canoo WebTest (</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">启动</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">/</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">停止</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat, </FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">执行前</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">应该被停止</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">)<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 18">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">test-canoo<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">当</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Tomcat</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经运行时，执行</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">Canoo WebTest<o:p></o:p></FONT></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 19">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">test-reports<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">产生测试报告</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR>
<TR style="mso-yfti-irow: 20; mso-yfti-lastrow: yes">
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.4pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=91>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><B><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">undeploy<o:p></o:p></FONT></SPAN></B></P></TD>
<TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: #ece9d8; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman"> $CATALINA_HOME/webapps</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中删除</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><FONT face="Times New Roman">war</FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-font-kerning: 18.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文件和相应的目录</SPAN><SPAN lang=EN-US style="mso-font-kerning: 18.0pt"><o:p></o:p></SPAN></P></TD></TR></TBODY></TABLE></SPAN></P></SPAN><img src ="http://www.blogjava.net/huhu/aggbug/19286.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-11-11 14:14 <a href="http://www.blogjava.net/huhu/archive/2005/11/11/19286.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>struts1.2数据源配置</title><link>http://www.blogjava.net/huhu/archive/2005/10/13/15426.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Thu, 13 Oct 2005 08:24:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/10/13/15426.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/15426.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/10/13/15426.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/15426.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/15426.html</trackback:ping><description><![CDATA[<P><FONT color=#008000><STRONG>三个需要的程序包：</STRONG></FONT></P>
<P><FONT color=#808080>commons-dbcp-1.2.1.jar</FONT></P><FONT color=#808080>
<P><FONT color=#000000><A href="http://apache.linuxforum.net/dist/jakarta/commons/dbcp/binaries/">http://apache.linuxforum.net/dist/jakarta/commons/dbcp/binaries/</A> </FONT></P><FONT color=#000000></FONT>
<P>struts-legacy.jar</P>
<P><FONT color=#000000><A href="http://apache.linuxforum.net/dist/jakarta/struts/struts-legacy/">http://apache.linuxforum.net/dist/jakarta/struts/struts-legacy/</A> </FONT></P><FONT color=#000000></FONT>
<P>commons-pool-1.2.jar</P>
<P></FONT><FONT color=#000000><A href="http://apache.linuxforum.net/dist/jakarta/commons/pool/binaries/">http://apache.linuxforum.net/dist/jakarta/commons/pool/binaries/</A> <BR><BR>strut-config.xml<BR><BR><BR>&nbsp; &lt;data-sources&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;data-source key="mysqlWebDB" type="org.apache.commons.dbcp.BasicDataSource"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="description" value="Mysql DataSource For zyweb" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="driverClassName" value="org.gjt.mm.mysql.Driver" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="url" value="jdbc:mysql://localhost:3306/zyweb?useUnicode=true&amp;amp;characterEncoding=GBK" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="username" value="root" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="password" value="zyadmin" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="maxActive" value="10" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="maxWait" value="5000"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="defaultAutoCommit" value="false" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;set-property property="defaultReadOnly" value="false"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/data-source&gt;<BR>&nbsp; &lt;/data-sources&gt;</FONT></P><img src ="http://www.blogjava.net/huhu/aggbug/15426.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-10-13 16:24 <a href="http://www.blogjava.net/huhu/archive/2005/10/13/15426.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Java 中对文件的读写操作之比较</title><link>http://www.blogjava.net/huhu/archive/2005/06/23/6606.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Thu, 23 Jun 2005 09:46:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/06/23/6606.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/6606.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/06/23/6606.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/6606.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/6606.html</trackback:ping><description><![CDATA[<SPAN class=unnamed3>Java 中对文件的读写操作之比较<BR>一．在 JDK 1.0 中，通常是用 InputStream &amp; OutputStream 这两个基类来进行读写操作的。<BR>InputStream 中的 FileInputStream 类似一个文件句柄，通过它来对文件进行操作，类似的，在 <BR>OutputStream 中我们有 FileOutputStream 这个对象。<BR><BR>用FileInputStream 来读取数据的常用方法是：<BR>FileInputStream fstream = new FileInputStream(args[0]);<BR>DataInputStream in = new DataInputStream(fstream);<BR>用 in.readLine() 来得到数据，然后用 in.close() 关闭输入流。<BR>完整代码见 Example 1。<BR><BR>用FileOutputStream 来写入数据的常用方法是：<BR>FileOutputStream out out = new FileOutputStream("myfile.txt");&nbsp;&nbsp;&nbsp;&nbsp;<BR>PrintStream p = new PrintStream( out );<BR>用 p.println() 来写入数据，然后用 p.close() 关闭输入。<BR>完整代码见 Example 2。<BR><BR><BR>二．在 JDK 1.1中，支持两个新的对象 Reader &amp; Writer, 它们只能用来对文本文件进行操作，而 <BR>JDK1.1中的 InputStream &amp; OutputStream 可以对文本文件或二进制文件进行操作。<BR><BR>用FileReader 来读取文件的常用方法是：<BR>FileReader fr = new FileReader("mydata.txt");<BR>BufferedReader br = new BufferedReader(fr); <BR>用 br.readLing() 来读出数据，然后用br.close() 关闭缓存，用fr.close() 关闭文件。<BR>完整代码见 Example 3。 <BR><BR>用 FileWriter 来写入文件的常用方法是：<BR>FileWriter fw = new FileWriter("mydata.txt");<BR>PrintWriter out = new PrintWriter(fw);&nbsp;&nbsp;<BR>在用out.print 或 out.println 来往文件中写入数据，out.print 和 out.println的唯一区别是后者写<BR>入数据或会自动开一新行。写完后要记得 用out.close() 关闭输出，用fw.close() 关闭文件。&nbsp;&nbsp;&nbsp;<BR>完整代码见 Example 4。<BR><BR>-------------------------------------------------------------- following is the source code of examples------------------------------------------------------<BR><BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">Example&nbsp;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">:<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;FileInputDemo<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;Demonstrates&nbsp;FileInputStream&nbsp;and&nbsp;DataInputStream</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">import&nbsp;java.io.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_119_875_Open_Image onclick="this.style.display='none'; Codehighlighter1_119_875_Open_Text.style.display='none'; Codehighlighter1_119_875_Closed_Image.style.display='inline'; Codehighlighter1_119_875_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_119_875_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_119_875_Closed_Text.style.display='none'; Codehighlighter1_119_875_Open_Image.style.display='inline'; Codehighlighter1_119_875_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000">&nbsp;FileInputDemo&nbsp;</SPAN><SPAN id=Codehighlighter1_119_875_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_119_875_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG id=Codehighlighter1_162_873_Open_Image onclick="this.style.display='none'; Codehighlighter1_162_873_Open_Text.style.display='none'; Codehighlighter1_162_873_Closed_Image.style.display='inline'; Codehighlighter1_162_873_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_162_873_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_162_873_Closed_Text.style.display='none'; Codehighlighter1_162_873_Open_Image.style.display='inline'; Codehighlighter1_162_873_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;main(String&nbsp;args[])&nbsp;</SPAN><SPAN id=Codehighlighter1_162_873_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_162_873_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;args.length&nbsp;is&nbsp;equivalent&nbsp;to&nbsp;argc&nbsp;in&nbsp;C</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_236_812_Open_Image onclick="this.style.display='none'; Codehighlighter1_236_812_Open_Text.style.display='none'; Codehighlighter1_236_812_Closed_Image.style.display='inline'; Codehighlighter1_236_812_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_236_812_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_236_812_Closed_Text.style.display='none'; Codehighlighter1_236_812_Open_Image.style.display='inline'; Codehighlighter1_236_812_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">if</SPAN><SPAN style="COLOR: #000000">&nbsp;(args.length&nbsp;</SPAN><SPAN style="COLOR: #000000">==</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">1</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN id=Codehighlighter1_236_812_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_236_812_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG id=Codehighlighter1_248_728_Open_Image onclick="this.style.display='none'; Codehighlighter1_248_728_Open_Text.style.display='none'; Codehighlighter1_248_728_Closed_Image.style.display='inline'; Codehighlighter1_248_728_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_248_728_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_248_728_Closed_Text.style.display='none'; Codehighlighter1_248_728_Open_Image.style.display='inline'; Codehighlighter1_248_728_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_248_728_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_248_728_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;Open&nbsp;the&nbsp;file&nbsp;that&nbsp;is&nbsp;the&nbsp;first&nbsp;command&nbsp;line&nbsp;parameter</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FileInputStream&nbsp;fstream&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;FileInputStream(args[</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">]);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;Convert&nbsp;our&nbsp;input&nbsp;stream&nbsp;to&nbsp;a&nbsp;DataInputStream</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DataInputStream&nbsp;</SPAN><SPAN style="COLOR: #0000ff">in</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;DataInputStream(fstream);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;Continue&nbsp;to&nbsp;read&nbsp;lines&nbsp;while&nbsp;there&nbsp;are&nbsp;still&nbsp;some&nbsp;left&nbsp;to&nbsp;read</SPAN><SPAN style="COLOR: #008000"><BR><IMG id=Codehighlighter1_605_700_Open_Image onclick="this.style.display='none'; Codehighlighter1_605_700_Open_Text.style.display='none'; Codehighlighter1_605_700_Closed_Image.style.display='inline'; Codehighlighter1_605_700_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_605_700_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_605_700_Closed_Text.style.display='none'; Codehighlighter1_605_700_Open_Image.style.display='inline'; Codehighlighter1_605_700_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000">&nbsp;(</SPAN><SPAN style="COLOR: #0000ff">in</SPAN><SPAN style="COLOR: #000000">.available()&nbsp;</SPAN><SPAN style="COLOR: #000000">!=</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN id=Codehighlighter1_605_700_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_605_700_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;Print&nbsp;file&nbsp;line&nbsp;to&nbsp;screen</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println&nbsp;(</SPAN><SPAN style="COLOR: #0000ff">in</SPAN><SPAN style="COLOR: #000000">.readLine());<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">in</SPAN><SPAN style="COLOR: #000000">.close();<BR><IMG id=Codehighlighter1_750_806_Open_Image onclick="this.style.display='none'; Codehighlighter1_750_806_Open_Text.style.display='none'; Codehighlighter1_750_806_Closed_Image.style.display='inline'; Codehighlighter1_750_806_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_750_806_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_750_806_Closed_Text.style.display='none'; Codehighlighter1_750_806_Open_Image.style.display='inline'; Codehighlighter1_750_806_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000">&nbsp;(Exception&nbsp;e)&nbsp;</SPAN><SPAN id=Codehighlighter1_750_806_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_750_806_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.err.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">File&nbsp;input&nbsp;error</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">else</SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Invalid&nbsp;parameters</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>Example 2:<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;FileOutputDemo<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;Demonstration&nbsp;of&nbsp;FileOutputStream&nbsp;and&nbsp;PrintStream&nbsp;classes</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">import&nbsp;java.io.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000">&nbsp;FileOutputDemo&nbsp;<BR><IMG id=Codehighlighter1_120_617_Open_Image onclick="this.style.display='none'; Codehighlighter1_120_617_Open_Text.style.display='none'; Codehighlighter1_120_617_Closed_Image.style.display='inline'; Codehighlighter1_120_617_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_120_617_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_120_617_Closed_Text.style.display='none'; Codehighlighter1_120_617_Open_Image.style.display='inline'; Codehighlighter1_120_617_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN id=Codehighlighter1_120_617_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_120_617_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_168_615_Open_Image onclick="this.style.display='none'; Codehighlighter1_168_615_Open_Text.style.display='none'; Codehighlighter1_168_615_Closed_Image.style.display='inline'; Codehighlighter1_168_615_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_168_615_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_168_615_Closed_Text.style.display='none'; Codehighlighter1_168_615_Open_Image.style.display='inline'; Codehighlighter1_168_615_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;main(String&nbsp;args[])&nbsp;&nbsp;</SPAN><SPAN id=Codehighlighter1_168_615_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_168_615_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;FileOutputStream&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;declare&nbsp;a&nbsp;file&nbsp;output&nbsp;object</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;PrintStream&nbsp;p;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;declare&nbsp;a&nbsp;print&nbsp;stream&nbsp;object</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000"><BR><IMG id=Codehighlighter1_297_531_Open_Image onclick="this.style.display='none'; Codehighlighter1_297_531_Open_Text.style.display='none'; Codehighlighter1_297_531_Closed_Image.style.display='inline'; Codehighlighter1_297_531_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_297_531_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_297_531_Closed_Text.style.display='none'; Codehighlighter1_297_531_Open_Image.style.display='inline'; Codehighlighter1_297_531_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_297_531_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_297_531_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;connected&nbsp;to&nbsp;"myfile.txt"</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;FileOutputStream(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">myfile.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;Connect&nbsp;print&nbsp;stream&nbsp;to&nbsp;the&nbsp;output&nbsp;stream</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;PrintStream(&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">&nbsp;);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p.println&nbsp;(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">This&nbsp;is&nbsp;written&nbsp;to&nbsp;a&nbsp;file</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;p.close();<BR><IMG id=Codehighlighter1_553_611_Open_Image onclick="this.style.display='none'; Codehighlighter1_553_611_Open_Text.style.display='none'; Codehighlighter1_553_611_Closed_Image.style.display='inline'; Codehighlighter1_553_611_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_553_611_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_553_611_Closed_Text.style.display='none'; Codehighlighter1_553_611_Open_Image.style.display='inline'; Codehighlighter1_553_611_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000">&nbsp;(Exception&nbsp;e)&nbsp;</SPAN><SPAN id=Codehighlighter1_553_611_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_553_611_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.err.println&nbsp;(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Error&nbsp;writing&nbsp;to&nbsp;file</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>Example 3:<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;FileReadTest.java<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;User&nbsp;FileReader&nbsp;in&nbsp;JDK1.1&nbsp;to&nbsp;read&nbsp;a&nbsp;file&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">import&nbsp;java.io.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_104_729_Open_Image onclick="this.style.display='none'; Codehighlighter1_104_729_Open_Text.style.display='none'; Codehighlighter1_104_729_Closed_Image.style.display='inline'; Codehighlighter1_104_729_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_104_729_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_104_729_Closed_Text.style.display='none'; Codehighlighter1_104_729_Open_Image.style.display='inline'; Codehighlighter1_104_729_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000">&nbsp;FileReadTest&nbsp;</SPAN><SPAN id=Codehighlighter1_104_729_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_104_729_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_154_217_Open_Image onclick="this.style.display='none'; Codehighlighter1_154_217_Open_Text.style.display='none'; Codehighlighter1_154_217_Closed_Image.style.display='inline'; Codehighlighter1_154_217_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_154_217_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_154_217_Closed_Text.style.display='none'; Codehighlighter1_154_217_Open_Image.style.display='inline'; Codehighlighter1_154_217_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;main&nbsp;(String[]&nbsp;args)&nbsp;</SPAN><SPAN id=Codehighlighter1_154_217_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_154_217_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;FileReadTest&nbsp;t&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;FileReadTest();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;t.readMyFile();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_245_723_Open_Image onclick="this.style.display='none'; Codehighlighter1_245_723_Open_Text.style.display='none'; Codehighlighter1_245_723_Closed_Image.style.display='inline'; Codehighlighter1_245_723_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_245_723_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_245_723_Closed_Text.style.display='none'; Codehighlighter1_245_723_Open_Image.style.display='inline'; Codehighlighter1_245_723_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;readMyFile()&nbsp;</SPAN><SPAN id=Codehighlighter1_245_723_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_245_723_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;record&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">int</SPAN><SPAN style="COLOR: #000000">&nbsp;recCount&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">0</SPAN><SPAN style="COLOR: #000000">;&nbsp;<BR><IMG id=Codehighlighter1_305_594_Open_Image onclick="this.style.display='none'; Codehighlighter1_305_594_Open_Text.style.display='none'; Codehighlighter1_305_594_Closed_Image.style.display='inline'; Codehighlighter1_305_594_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_305_594_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_305_594_Closed_Text.style.display='none'; Codehighlighter1_305_594_Open_Image.style.display='inline'; Codehighlighter1_305_594_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_305_594_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_305_594_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>FileReader&nbsp;fr&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;FileReader(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">mydata.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BufferedReader&nbsp;br&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;BufferedReader(fr);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;record&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;String();<BR><IMG id=Codehighlighter1_483_562_Open_Image onclick="this.style.display='none'; Codehighlighter1_483_562_Open_Text.style.display='none'; Codehighlighter1_483_562_Closed_Image.style.display='inline'; Codehighlighter1_483_562_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_483_562_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_483_562_Closed_Text.style.display='none'; Codehighlighter1_483_562_Open_Image.style.display='inline'; Codehighlighter1_483_562_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">while</SPAN><SPAN style="COLOR: #000000">&nbsp;((record&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;br.readLine())&nbsp;</SPAN><SPAN style="COLOR: #000000">!=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">null</SPAN><SPAN style="COLOR: #000000">)&nbsp;</SPAN><SPAN id=Codehighlighter1_483_562_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_483_562_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;recCount</SPAN><SPAN style="COLOR: #000000">++</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(recCount&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">:&nbsp;</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">+</SPAN><SPAN style="COLOR: #000000">&nbsp;record);&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>br.close();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>fr.close();&nbsp;<BR><IMG id=Codehighlighter1_618_721_Open_Image onclick="this.style.display='none'; Codehighlighter1_618_721_Open_Text.style.display='none'; Codehighlighter1_618_721_Closed_Image.style.display='inline'; Codehighlighter1_618_721_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_618_721_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_618_721_Closed_Text.style.display='none'; Codehighlighter1_618_721_Open_Image.style.display='inline'; Codehighlighter1_618_721_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000">&nbsp;(IOException&nbsp;e)&nbsp;</SPAN><SPAN id=Codehighlighter1_618_721_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_618_721_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Uh&nbsp;oh,&nbsp;got&nbsp;an&nbsp;IOException&nbsp;error!</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV><BR>Example 4:<BR>
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;FileWriteTest.java<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #008000">//</SPAN><SPAN style="COLOR: #008000">&nbsp;User&nbsp;FileWriter&nbsp;in&nbsp;JDK1.1&nbsp;to&nbsp;writer&nbsp;a&nbsp;file&nbsp;</SPAN><SPAN style="COLOR: #008000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #000000">import&nbsp;java.io.</SPAN><SPAN style="COLOR: #000000">*</SPAN><SPAN style="COLOR: #000000">;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><BR><IMG id=Codehighlighter1_108_575_Open_Image onclick="this.style.display='none'; Codehighlighter1_108_575_Open_Text.style.display='none'; Codehighlighter1_108_575_Closed_Image.style.display='inline'; Codehighlighter1_108_575_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_108_575_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_108_575_Closed_Text.style.display='none'; Codehighlighter1_108_575_Open_Image.style.display='inline'; Codehighlighter1_108_575_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">class</SPAN><SPAN style="COLOR: #000000">&nbsp;FileWriteTest&nbsp;</SPAN><SPAN id=Codehighlighter1_108_575_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_108_575_Open_Text><SPAN style="COLOR: #000000">{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_158_224_Open_Image onclick="this.style.display='none'; Codehighlighter1_158_224_Open_Text.style.display='none'; Codehighlighter1_158_224_Closed_Image.style.display='inline'; Codehighlighter1_158_224_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_158_224_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_158_224_Closed_Text.style.display='none'; Codehighlighter1_158_224_Open_Image.style.display='inline'; Codehighlighter1_158_224_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">public</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">static</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;main&nbsp;(String[]&nbsp;args)&nbsp;</SPAN><SPAN id=Codehighlighter1_158_224_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_158_224_Open_Text><SPAN style="COLOR: #000000">{<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;FileWriteTest&nbsp;t&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;FileWriteTest();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;t.WriteMyFile();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG id=Codehighlighter1_253_569_Open_Image onclick="this.style.display='none'; Codehighlighter1_253_569_Open_Text.style.display='none'; Codehighlighter1_253_569_Closed_Image.style.display='inline'; Codehighlighter1_253_569_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_253_569_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_253_569_Closed_Text.style.display='none'; Codehighlighter1_253_569_Open_Image.style.display='inline'; Codehighlighter1_253_569_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">void</SPAN><SPAN style="COLOR: #000000">&nbsp;WriteMyFile()&nbsp;</SPAN><SPAN id=Codehighlighter1_253_569_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_253_569_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG id=Codehighlighter1_264_440_Open_Image onclick="this.style.display='none'; Codehighlighter1_264_440_Open_Text.style.display='none'; Codehighlighter1_264_440_Closed_Image.style.display='inline'; Codehighlighter1_264_440_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_264_440_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_264_440_Closed_Text.style.display='none'; Codehighlighter1_264_440_Open_Image.style.display='inline'; Codehighlighter1_264_440_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">try</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN id=Codehighlighter1_264_440_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_264_440_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>FileWriter&nbsp;fw&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;FileWriter(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">mydata.txt</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>PrintWriter&nbsp;</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">new</SPAN><SPAN style="COLOR: #000000">&nbsp;PrintWriter(fw);&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.print(“hi,</SPAN><SPAN style="COLOR: #0000ff">this</SPAN><SPAN style="COLOR: #000000">&nbsp;will&nbsp;be&nbsp;wirte&nbsp;into&nbsp;the&nbsp;file</SPAN><SPAN style="COLOR: #000000">!</SPAN><SPAN style="COLOR: #000000">”);&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top></SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.close();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>fw.close();<BR><IMG id=Codehighlighter1_464_567_Open_Image onclick="this.style.display='none'; Codehighlighter1_464_567_Open_Text.style.display='none'; Codehighlighter1_464_567_Closed_Image.style.display='inline'; Codehighlighter1_464_567_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align=top><IMG id=Codehighlighter1_464_567_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_464_567_Closed_Text.style.display='none'; Codehighlighter1_464_567_Open_Image.style.display='inline'; Codehighlighter1_464_567_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">catch</SPAN><SPAN style="COLOR: #000000">&nbsp;(IOException&nbsp;e)&nbsp;</SPAN><SPAN id=Codehighlighter1_464_567_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_464_567_Open_Text><SPAN style="COLOR: #000000">{&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.</SPAN><SPAN style="COLOR: #0000ff">out</SPAN><SPAN style="COLOR: #000000">.println(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">Uh&nbsp;oh,&nbsp;got&nbsp;an&nbsp;IOException&nbsp;error!</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;e.printStackTrace();<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</SPAN></SPAN><SPAN style="COLOR: #000000"><BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN><SPAN style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;<BR><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN></DIV></DIV></SPAN><img src ="http://www.blogjava.net/huhu/aggbug/6606.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-06-23 17:46 <a href="http://www.blogjava.net/huhu/archive/2005/06/23/6606.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>各种网页播放器代码大全</title><link>http://www.blogjava.net/huhu/archive/2005/06/17/6287.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Fri, 17 Jun 2005 06:20:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/06/17/6287.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/6287.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/06/17/6287.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/6287.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/6287.html</trackback:ping><description><![CDATA[<DIV class=diaryContent id=diary1855245 style="DISPLAY: block">
<P>&lt;embed src="<A href="http://wmt2.aboutmedia.com.tw/Aboutmedia/warner/mtv/naying-021011_01v_120k.wmv">http://wmt2.aboutmedia.com.tw/Aboutmedia/warner/mtv/naying-021011_01v_120k.wmv</A>";; <BR>autostart="true" loop="true" width="200" height="150" &gt; <BR>把这个网址<A href="http://wmt2.aboutmedia.com.tw/Aboutmedia/warner/mtv/naying-021011_01v_120k.wmv">http://wmt2.aboutmedia.com.tw/Aboutmedia/warner/mtv/naying-021011_01v_120k.wmv</A>换成你要看的电影就行了</P>
<P><BR>有图像的rm格式：<BR>&lt;OBJECT classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' height=288 id=video1 width=305 VIEWASTEXT&gt;<BR>&lt;param name='_ExtentX' value='5503'&gt;<BR>&lt;param name='_ExtentY' value='1588'&gt;<BR>&lt;param name='AUTOSTART' value='-1'&gt;<BR>&lt;param name='SHUFFLE' value='0'&gt;<BR>&lt;param name='PREFETCH' value='0'&gt;<BR>&lt;param name='NOLABELS' value='0'&gt;<BR>&lt;param name='SRC' value='http://media.cdut.edu.cn/ram/new/xiaoxin1.ram'&gt;<BR>&lt;param name='CONTROLS' value='Imagewindow,StatusBar,ControlPanel'&gt;<BR>&lt;param name='CONSOLE' value='RAPLAYER'&gt;<BR>&lt;param name='LOOP' value='0'&gt;<BR>&lt;param name='NUMLOOP' value='0'&gt;<BR>&lt;param name='CENTER' value='0'&gt;<BR>&lt;param name='MAINTAINASPECT' value='0'&gt;<BR>&lt;param name='BACKGROUNDCOLOR' value='#000000'&gt;<BR>&lt;/OBJECT&gt;</P>
<P>无图像的rm格式：如相声，歌曲。。。<BR>&lt;object ID='video2' WIDTH='300' HEIGHT='62' CLASSID='CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA'&gt;<BR>&lt;param name='_ExtentX' value='9657'&gt;<BR>&lt;param name='_ExtentY' value='847'&gt;<BR>&lt;param name='AUTOSTART' value='-1'&gt;<BR>&lt;param name='SHUFFLE' value='0'&gt;<BR>&lt;param name='PREFETCH' value='0'&gt;<BR>&lt;param name='NOLABELS' value='0'&gt;<BR>&lt;param name='SRC' value='http://210.242.69.206/ramgen/broadcast/BCC/encoder/hipop.rm'&gt;<BR>&lt;param name='CONTROLS' value='StatusBar,controlpanel'&gt;<BR>&lt;param name='CONSOLE' value='Clip1'&gt;<BR>&lt;param name='LOOP' value='0'&gt;<BR>&lt;param name='NUMLOOP' value='0'&gt;<BR>&lt;param name='CENTER' value='0'&gt;<BR>&lt;param name='MAINTAINASPECT' value='0'&gt;<BR>&lt;param name='BACKGROUNDCOLOR' value='#000000'&gt;<BR>&lt;/object&gt;</P>
<P>最简单的media格式的播放器。。自动识别有无图像，但是版本是你机器的！<BR>&lt;embed src='mms://61.175.132.221/tv/mtv/f4/makeawish.wmv' width=200 height=200 autostart=true loop=true&gt;&lt;/embed&gt;</P>
<P>有图像的media播放器，自动调用网上的插件。<BR>&lt;object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width=280 height=265 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject&gt;<BR>&lt;param name='URL' value='http://202.99.11.42/xiangsheng/ymjr.wma'&gt;<BR>&lt;PARAM NAME='UIMode' value='full'&gt;&lt;PARAM NAME='AutoStart' value='true'&gt;<BR>&lt;PARAM NAME='Enabled' value='true'&gt;<BR>&lt;PARAM NAME='enableContextMenu' value='false'&gt;<BR>&lt;param name='WindowlessVideo' value='true'&gt;&lt;/object&gt;</P>
<P>无图像的media播放器。。。同上。<BR>&lt;object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width=280 height=60 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type=application/x-oleobject&gt;<BR>&lt;param name='URL' value='http://202.99.11.42/xiangsheng/ymjr.wma'&gt;<BR>&lt;PARAM NAME='UIMode' value='full'&gt;&lt;PARAM NAME='AutoStart' value='true'&gt;<BR>&lt;PARAM NAME='Enabled' value='true'&gt;<BR>&lt;PARAM NAME='enableContextMenu' value='false'&gt;<BR>&lt;/object&gt;</P>
<P>只是界面不同的media的调插件播放器。。建议不用这个，，你可以看！<BR>&lt;embed src='http://av.wanwa.com/fileroot/AV/Ramfiles/23809.ram' type='audio/x-pn-realaudio-plugin' console='Clip1' controls='ControlPanel,StatusBar' height='60' width='275' autostart='true'&gt;&lt;/embed&gt;</P>
<P>rm文件在线播放<BR>&lt;embed height=25 src=www.xiakedao.com/biyun/ren/a.rm type=audio/x-pn-realaudio-plugin width=50 autostart="false" controls="PlayButton"&gt;</P>
<P><BR>autostart="false" 打开页面时处于候命状态，autostart="true" 打开页面时马上听声音 height=25 width=50 有不同数值，播放器面板有些不同<BR>midi、au、avi文件在线播放</P>
<P>&lt;EMBED SRC="<A href="http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/1.mid">http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/1.mid</A>"; width="47" height="24" AUTOSTART=TRUE&gt; </P>
<P>autostart="false" 打开页面时处于候命状态，autostart="true" 打开页面时马上听声音 height=25 width=50 有不同数值，播放器面板有些不同 </P>
<P>asf文件在线播放<BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312"&gt;<BR>&lt;title&gt;&lt;/title&gt;<BR>&lt;/head&gt;<BR>&lt;body topmargin="0" leftmargin="0"&gt;<BR>&lt;object classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7.0 height=53 id=NSPlay0 name=NSPlay type=application/x-oleobject width=87 VIEWASTEXT standby="Loading Microsoft Windows Media Player components..." border="0"&gt;&lt;param name="AudioStream" value="-1"&gt;<BR>&lt;param name="AutoSize" value="0"&gt;<BR>&lt;param name="AutoStart" value="1"&gt;<BR>&lt;param name="AnimationAtStart" value="-1"&gt;<BR>&lt;param name="AllowScan" value="-1"&gt;<BR>&lt;param name="AllowChangeDisplaySize" value="-1"&gt;<BR>&lt;param name="AutoRewind" value="0"&gt;<BR>&lt;param name="Balance" value="0"&gt;<BR>&lt;param name="BaseURL" value&gt;<BR>&lt;param name="BufferingTime" value="10"&gt;<BR>&lt;param name="CaptioningID" value&gt;<BR>&lt;param name="ClickToPlay" value="-1"&gt;<BR>&lt;param name="CursorType" value="0"&gt;<BR>&lt;param name="CurrentPosition" value="-1"&gt;<BR>&lt;param name="CurrentMarker" value="0"&gt;<BR>&lt;param name="DefaultFrame" value&gt;<BR>&lt;param name="DisplayBackColor" value="0"&gt;<BR>&lt;param name="DisplayForeColor" value="65280"&gt;<BR>&lt;param name="DisplayMode" value="0"&gt;<BR>&lt;param name="DisplaySize" value="1"&gt;<BR>&lt;param name="Enabled" value="-1"&gt;<BR>&lt;param name="EnableContextMenu" value="-1"&gt;<BR>&lt;param name="EnablePositionControls" value="-1"&gt;<BR>&lt;param name="EnableFullScreenControls" value="-1"&gt;<BR>&lt;param name="EnableTracker" value="-1"&gt;<BR>&lt;param name="Filename" value="<A href="http://music.sdcatv.net/biyun/wlsd/down/yin/gequ/asf/5.asf">http://music.sdcatv.net/biyun/wlsd/down/yin/gequ/asf/5.asf</A>";&gt;<BR>&lt;param name="InvokeURLs" value="-1"&gt;<BR>&lt;param name="Language" value="-1"&gt;<BR>&lt;param name="Mute" value="0"&gt;<BR>&lt;param name="PlayCount" value="1"&gt;<BR>&lt;param name="PreviewMode" value="0"&gt;<BR>&lt;param name="Rate" value="1"&gt;<BR>&lt;param name="SAMILang" value&gt;<BR>&lt;param name="SAMIstyle" value&gt;<BR>&lt;param name="SAMIFileName" value&gt;<BR>&lt;param name="selectionStart" value="-1"&gt;<BR>&lt;param name="selectionEnd" value="-1"&gt;<BR>&lt;param name="SendOpenStateChangeEvents" value="-1"&gt;<BR>&lt;param name="SendWarningEvents" value="-1"&gt;<BR>&lt;param name="SendErrorEvents" value="-1"&gt;<BR>&lt;param name="SendKeyboardEvents" value="0"&gt;<BR>&lt;param name="SendMouseClickEvents" value="0"&gt;<BR>&lt;param name="SendMouseMoveEvents" value="0"&gt;<BR>&lt;param name="SendPlayStateChangeEvents" value="-1"&gt;<BR>&lt;param name="ShowCaptioning" value="0"&gt;<BR>&lt;param name="ShowControls" value="-1"&gt;<BR>&lt;param name="ShowAudioControls" value="0"&gt;<BR>&lt;param name="ShowDisplay" value="0"&gt;<BR>&lt;param name="ShowGotoBar" value="0"&gt;<BR>&lt;param name="ShowPositionControls" value="-1"&gt;<BR>&lt;param name="ShowStatusBar" value="-1"&gt;<BR>&lt;param name="ShowTracker" value="-1"&gt;<BR>&lt;param name="TransparentAtStart" value="-1"&gt;<BR>&lt;param name="VideoBorderWidth" value="0"&gt;<BR>&lt;param name="VideoBorderColor" value="0"&gt;<BR>&lt;param name="VideoBorder3D" value="-1"&gt;<BR>&lt;param name="Volume" value="0"&gt;<BR>&lt;param name="WindowlessVideo" value="0"&gt;<BR>&lt;/object&gt;<BR>其中&lt;param name="AutoStart" value="0"&gt; 0为打开页面处于待命状态，为1时打开页面直接播放 &lt;/body&gt;<BR>&lt;/html&gt; </P>
<P>
<P>流式收听mp3方法：<BR><A href="http://*.mp3/">http://*.mp3</A>，<A href="http://*.mp3/">http://*.mp3</A>，http://...琱ttp://*.mp3，<BR>把上面的的文件另存为*.m3u,就可实现在线播放*.mp3（支持连续播放） </P>
<P>mpeg影象在线播放：<BR>等等，让它下载 <BR>&lt;img border="0" dynsrc="<A href="http://music.cnvnet.com/video/0321.mpeg">http://music.cnvnet.com/video/0321.mpeg</A> ;<BR>" start="fileopen"&gt; </P>
<P><BR>rm影像在线播放 代码：<BR>&lt;object id="vid" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=114 height=100&gt;<BR>&lt;param name="_ExtentX" value="3016"&gt;<BR>&lt;param name="_ExtentY" value="2646"&gt;<BR>&lt;param name="AUTOSTART" value="-1"&gt;<BR>&lt;param name="SHUFFLE" value="0"&gt;<BR>&lt;param name="PREFETCH" value="0"&gt;<BR>&lt;param name="NOLABELS" value="-1"&gt;<BR>&lt;param name="SRC" value="<A href="http://music.cnvnet.com/mtv/20010618/002.ram">http://music.cnvnet.com/mtv/20010618/002.ram</A>";&gt;<BR>&lt;param name="CONTROLS" value="Imagewindow"&gt;<BR>&lt;param name="CONSOLE" value="clip1"&gt;<BR>&lt;param name="LOOP" value="0"&gt;<BR>&lt;param name="NUMLOOP" value="0"&gt;<BR>&lt;param name="CENTER" value="0"&gt;<BR>&lt;param name="MAINTAINASPECT" value="0"&gt;<BR>&lt;param name="BACKGROUNDCOLOR" value="#000000"&gt;<BR>&lt;/object&gt; </P>
<P>
<P>加几个控制器<BR>&lt;object id="vid" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=427 height=300&gt;<BR>&lt;param name="_ExtentX" value="11298"&gt;<BR>&lt;param name="_ExtentY" value="7938"&gt;<BR>&lt;param name="AUTOSTART" value="-1"&gt;<BR>&lt;param name="SHUFFLE" value="0"&gt;<BR>&lt;param name="PREFETCH" value="0"&gt;<BR>&lt;param name="NOLABELS" value="-1"&gt;<BR>&lt;param name="SRC" value="<A href="http://music.cnvnet.com/mtv/20010618/001.ram">http://music.cnvnet.com/mtv/20010618/001.ram</A>";&gt;<BR>&lt;param name="CONTROLS" value="Imagewindow"&gt;<BR>&lt;param name="CONSOLE" value="clip1"&gt;<BR>&lt;param name="LOOP" value="0"&gt;<BR>&lt;param name="NUMLOOP" value="0"&gt;<BR>&lt;param name="CENTER" value="0"&gt;<BR>&lt;param name="MAINTAINASPECT" value="0"&gt;<BR>&lt;param name="BACKGROUNDCOLOR" value="#000000"&gt;<BR>&lt;/object&gt; <BR>&lt;object id="vid2" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=427 height=30&gt;<BR>&lt;param name="_ExtentX" value="11298"&gt;<BR>&lt;param name="_ExtentY" value="794"&gt;<BR>&lt;param name="AUTOSTART" value="-1"&gt;<BR>&lt;param name="SHUFFLE" value="0"&gt;<BR>&lt;param name="PREFETCH" value="0"&gt;<BR>&lt;param name="NOLABELS" value="-1"&gt;<BR>&lt;param name="SRC" value="<A href="http://music.cnvnet.com/mtv/20010618/001.ram">http://music.cnvnet.com/mtv/20010618/001.ram</A>";&gt;<BR>&lt;param name="CONTROLS" value="ControlPanel"&gt;<BR>&lt;param name="CONSOLE" value="clip1"&gt;<BR>&lt;param name="LOOP" value="0"&gt;<BR>&lt;param name="NUMLOOP" value="0"&gt;<BR>&lt;param name="CENTER" value="0"&gt;<BR>&lt;param name="MAINTAINASPECT" value="0"&gt;<BR>&lt;param name="BACKGROUNDCOLOR" value="#000000"&gt;<BR>&lt;/object&gt;<BR></P></DIV><img src ="http://www.blogjava.net/huhu/aggbug/6287.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-06-17 14:20 <a href="http://www.blogjava.net/huhu/archive/2005/06/17/6287.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jstl1.1 Tag Libraruy标志符</title><link>http://www.blogjava.net/huhu/archive/2005/06/07/5684.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Tue, 07 Jun 2005 08:13:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/06/07/5684.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/5684.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/06/07/5684.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/5684.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/5684.html</trackback:ping><description><![CDATA[<P>在JSTL 1.1中使用以下标识符:</P>
<TABLE cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR>
<TD>
<P align=center><STRONG>库</STRONG><STRONG></STRONG> </P></TD>
<TD>
<P align=center><STRONG>URI</STRONG><STRONG></STRONG> </P></TD>
<TD>
<P align=center><STRONG>前缀</STRONG><STRONG></STRONG> </P></TD></TR>
<TR>
<TD>
<P>Core</P></TD>
<TD>
<P><EM>http://java.sun.com/jsp/jstl/core</EM> </P></TD>
<TD>
<P>c</P></TD></TR>
<TR>
<TD>
<P>XML processing</P></TD>
<TD>
<P><EM>http://java.sun.com/jsp/jstl/xml</EM> </P></TD>
<TD>
<P>x</P></TD></TR>
<TR>
<TD>
<P>I18N formatting</P></TD>
<TD>
<P><EM>http://java.sun.com/jsp/jstl/fmt</EM> </P></TD>
<TD>
<P>fmt</P></TD></TR>
<TR>
<TD>
<P>Database access</P></TD>
<TD>
<P><EM>http://java.sun.com/jsp/jstl/sql</EM> </P></TD>
<TD>
<P>sql</P></TD></TR>
<TR>
<TD>
<P>Functions</P></TD>
<TD>
<P><EM>http://java.sun.com/jsp/jstl/functions</EM> </P></TD>
<TD>
<P>fn</P></TD></TR></TBODY></TABLE><img src ="http://www.blogjava.net/huhu/aggbug/5684.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-06-07 16:13 <a href="http://www.blogjava.net/huhu/archive/2005/06/07/5684.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Jstl的函数库</title><link>http://www.blogjava.net/huhu/archive/2005/06/07/5683.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Tue, 07 Jun 2005 08:12:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/06/07/5683.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/5683.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/06/07/5683.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/5683.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/5683.html</trackback:ping><description><![CDATA[<P>使用实例：&lt;%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %&gt; ${fn:length(myCollection)} <BR>其他函数： </P>
<TABLE cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR>
<TD>
<P align=center><STRONG>函数</STRONG><STRONG></STRONG> </P></TD>
<TD>
<P align=center><STRONG>描述</STRONG><STRONG></STRONG> </P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:contains(string, substring)</P></TD>
<TD>
<P>如果参数string中包含参数substring，返回true</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:containsIgnoreCase(string, substring)</P></TD>
<TD>
<P>如果参数string中包含参数substring（忽略大小写），返回true</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:endsWith(string, suffix)</P></TD>
<TD>
<P>如果参数 string 以参数suffix结尾，返回true</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:escapeXml(string)</P></TD>
<TD>
<P>将有特殊意义的XML (和HTML)转换为对应的XML character entity code，并返回</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:indexOf(string, substring)</P></TD>
<TD>
<P>返回参数substring在参数string中第一次出现的位置</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:join(array, separator)</P></TD>
<TD>
<P>将一个给定的数组array用给定的间隔符separator串在一起，组成一个新的字符串并返回。</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:length(item)</P></TD>
<TD>
<P>返回参数item中包含元素的数量。参数Item类型是数组、collection或者String。如果是String类型,返回值是String中的字符数。</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:replace(string, before, after)</P></TD>
<TD vAlign=top>
<P>返回一个String对象。用参数after字符串替换参数string中所有出现参数before字符串的地方，并返回替换后的结果</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:split(string, separator)</P></TD>
<TD>
<P>返回一个数组，以参数separator 为分割符分割参数string，分割后的每一部分就是数组的一个元素</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:startsWith(string, prefix)</P></TD>
<TD>
<P>如果参数string以参数prefix开头，返回true</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:substring(string, begin, end)</P></TD>
<TD>
<P>返回参数string部分字符串, 从参数begin开始到参数end位置，包括end位置的字符</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:substringAfter(string, substring)</P></TD>
<TD>
<P>返回参数substring在参数string中后面的那一部分字符串</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:substringBefore(string, substring)</P></TD>
<TD>
<P>返回参数substring在参数string中前面的那一部分字符串</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:toLowerCase(string)</P></TD>
<TD>
<P>将参数string所有的字符变为小写，并将其返回</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:toUpperCase(string)</P></TD>
<TD>
<P>将参数string所有的字符变为大写，并将其返回</P></TD></TR>
<TR>
<TD vAlign=top>
<P>fn:trim(string)</P></TD>
<TD>
<P>去除参数string 首尾的空格，并将其返回</P></TD></TR></TBODY></TABLE><img src ="http://www.blogjava.net/huhu/aggbug/5683.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-06-07 16:12 <a href="http://www.blogjava.net/huhu/archive/2005/06/07/5683.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>返回到前一页的方法</title><link>http://www.blogjava.net/huhu/archive/2005/06/07/5682.html</link><dc:creator>似水流年</dc:creator><author>似水流年</author><pubDate>Tue, 07 Jun 2005 08:12:00 GMT</pubDate><guid>http://www.blogjava.net/huhu/archive/2005/06/07/5682.html</guid><wfw:comment>http://www.blogjava.net/huhu/comments/5682.html</wfw:comment><comments>http://www.blogjava.net/huhu/archive/2005/06/07/5682.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/huhu/comments/commentRss/5682.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/huhu/services/trackbacks/5682.html</trackback:ping><description><![CDATA[返回到前一页不刷新
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&lt;</SPAN><SPAN style="COLOR: #000000">input&nbsp;type</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">button</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;value</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">返回</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&nbsp;onClick</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">history.go(-1)</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN></DIV></DIV><BR>返回到前一页并刷新
<DIV style="BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: #e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: windowtext 0.5pt solid">
<DIV><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">&lt;%</SPAN><SPAN style="COLOR: #000000">String&nbsp;</SPAN><SPAN style="COLOR: #0000ff">ref</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN><SPAN style="COLOR: #000000">=</SPAN><SPAN style="COLOR: #000000">&nbsp;request.getHeader(</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">REFERER</SPAN><SPAN style="COLOR: #000000">"</SPAN><SPAN style="COLOR: #000000">);response.sendRedirect(</SPAN><SPAN style="COLOR: #0000ff">ref</SPAN><SPAN style="COLOR: #000000">);</SPAN><SPAN style="COLOR: #000000">%&gt;</SPAN></DIV></DIV><img src ="http://www.blogjava.net/huhu/aggbug/5682.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/huhu/" target="_blank">似水流年</a> 2005-06-07 16:12 <a href="http://www.blogjava.net/huhu/archive/2005/06/07/5682.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>