﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-gyn-随笔分类-Java</title><link>http://www.cnitblog.com/gyn/category/7725.html</link><description>Win32下的Perl，无用的select，停滞的Tk，结束吧....</description><language>zh-cn</language><lastBuildDate>Thu, 29 Sep 2011 15:43:28 GMT</lastBuildDate><pubDate>Thu, 29 Sep 2011 15:43:28 GMT</pubDate><ttl>60</ttl><item><title>应用JMF编写mp3播放器</title><link>http://www.cnitblog.com/gyn/archive/2008/04/11/42255.html</link><dc:creator>gyn_tadao</dc:creator><author>gyn_tadao</author><pubDate>Fri, 11 Apr 2008 09:16:00 GMT</pubDate><guid>http://www.cnitblog.com/gyn/archive/2008/04/11/42255.html</guid><wfw:comment>http://www.cnitblog.com/gyn/comments/42255.html</wfw:comment><comments>http://www.cnitblog.com/gyn/archive/2008/04/11/42255.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnitblog.com/gyn/comments/commentRss/42255.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/gyn/services/trackbacks/42255.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 通过网上搜索，可以找到很多利用JMF播放单个文件的代码，写一个简单的播放器书是轻而易举的事情。而事实上JMF中的start似乎就可以让我们搞定一切。但是这样的东西，或者说仅仅一段代码，实在不能说是播放器。我希望让这个播放器尽量地可以使用，我的意思是对于一个提供的播放列表，它至少可以连续播放以及暂停、前进和后退。如果能做到这些，对于我自己，也许还有使用并且修改它的热情。首先要解决的一个问题是如何实现...&nbsp;&nbsp;<a href='http://www.cnitblog.com/gyn/archive/2008/04/11/42255.html'>阅读全文</a><img src ="http://www.cnitblog.com/gyn/aggbug/42255.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/gyn/" target="_blank">gyn_tadao</a> 2008-04-11 17:16 <a href="http://www.cnitblog.com/gyn/archive/2008/04/11/42255.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ADT安装小记</title><link>http://www.cnitblog.com/gyn/archive/2008/03/17/41038.html</link><dc:creator>gyn_tadao</dc:creator><author>gyn_tadao</author><pubDate>Mon, 17 Mar 2008 08:52:00 GMT</pubDate><guid>http://www.cnitblog.com/gyn/archive/2008/03/17/41038.html</guid><wfw:comment>http://www.cnitblog.com/gyn/comments/41038.html</wfw:comment><comments>http://www.cnitblog.com/gyn/archive/2008/03/17/41038.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/gyn/comments/commentRss/41038.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/gyn/services/trackbacks/41038.html</trackback:ping><description><![CDATA[Android很火，估计以后可以靠这个赚点小钱。就算不行，玩玩总是可以的。<br />具体的下载说明在这里：http://www.androidin.com/docs/intro/installing.html#developingwitheclipse<br />安装完SDK后，最好按一个eclipse。我平时一般用UE和GVIM比较多，不过eclipse是官方推荐的，连教程里也是用了这个。所以下载了一个就凑活用用。（学习一个新事物的最好办法就是亲手实践，而一个好的tutorial是十分重要的，对于建立继续学下去的信心至关重要，在此过程中亦步亦趋往往会有比较好的效果。）<br />之后，需要安装一个叫ADT的plugin。具体的安装方法，说明里也有。但是问题出现eclipse在搜索到ADT的一步。提示缺少“org.eclipse.wst.sse.ui”这个玩意儿。到google上搜索，比较值得可信的是http://blog.csdn.net/jiyucn/archive/2008/02/16/2099387.aspx里面说的。但是我从里面的链接里下载来各个plugin，解压，再全部复制到eclipse之后。按照他的说法，再装ADT就成了，但事实上还是提示不行。于是开始上网搜索“如何安装eclipse插件”，文章很多，但基本不靠谱。<br />终于，功夫不负有心人，在http://hi.baidu.com/iiyouxia/blog/item/3f13c245cba57c3c87947325.html中，发现了一句话“删掉configuration中除了config.ini以外的所有文件和文件夹，确保插件安装配置正确”。抱着死马当活马医的心情，删了它们。打开eclpise再试，成了！<br /><img src ="http://www.cnitblog.com/gyn/aggbug/41038.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/gyn/" target="_blank">gyn_tadao</a> 2008-03-17 16:52 <a href="http://www.cnitblog.com/gyn/archive/2008/03/17/41038.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>NetBeans开发jsp快速入门</title><link>http://www.cnitblog.com/gyn/archive/2006/07/11/13499.html</link><dc:creator>gyn_tadao</dc:creator><author>gyn_tadao</author><pubDate>Tue, 11 Jul 2006 09:24:00 GMT</pubDate><guid>http://www.cnitblog.com/gyn/archive/2006/07/11/13499.html</guid><wfw:comment>http://www.cnitblog.com/gyn/comments/13499.html</wfw:comment><comments>http://www.cnitblog.com/gyn/archive/2006/07/11/13499.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/gyn/comments/commentRss/13499.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/gyn/services/trackbacks/13499.html</trackback:ping><description><![CDATA[
		<h1 style="margin: 17pt 0cm 16.5pt; text-align: center;" align="center">
				<span style="color: red;" lang="EN-US">NetBeans</span>
				<span style="color: red; font-family: 宋体;">开发</span>
				<span style="color: red;" lang="EN-US">jsp</span>
				<span style="color: red; font-family: 宋体;">快速入门</span>
				<span style="color: red;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</h1>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">NetBeans</span>
				<span style="font-family: 宋体;">是</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">java</span>
				<span style="font-family: 宋体;">公司免费提供用于</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">java</span>
				<span style="font-family: 宋体;">网页开发的工具，在</span>
				<span lang="EN-US">java</span>
				<span style="font-family: 宋体;">的官方网站上有它的详细介绍说明。按照指南中关于</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">web</span>
				<span lang="EN-US">
				</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">application</span>
				<span style="font-family: 宋体;">开发的介绍，使用</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">netbeans</span>
				<span style="font-family: 宋体;">可以轻松地开发</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">jsp</span>
				<span style="font-family: 宋体;">程序。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<h3 style="margin: 13pt 0cm; text-align: center;" align="center">
				<font size="5">
						<span style="color: red; font-family: 宋体;">建立</span>
						<span style="color: red;" lang="EN-US">web application</span>
						<span style="color: red; font-family: 宋体;">工程</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</font>
		</h3>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-family: 宋体;">开始编写代码之前，我们必须安装正确的软件并且作一些必要的配置。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<b style="">
						<span style="color: red; font-family: 宋体;">要安装的软件</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 47.25pt; text-indent: -18pt; text-align: left;" align="left">
				<span style="font-size: 10pt; color: black; font-family: Symbol;" lang="EN-US">
						<span style="">·<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">  </span></span>
				</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">NetBeans IDE 5.0 (<a href="http://www.netbeans.org/downloads/index.html"><b><span style="color: rgb(4, 84, 145); text-decoration: none;">download</span></b></a>). <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 47.25pt; text-indent: -18pt; text-align: left;" align="left">
				<span style="font-size: 10pt; color: black; font-family: Symbol;" lang="EN-US">
						<span style="">·<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">  </span></span>
				</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Java Standard Development Kit (JDK™) version <st1:chsdate w:st="on" isrocdate="False" islunardate="False" day="30" month="12" year="1899">1.4.2</st1:chsdate> (<a href="http://java.sun.com/j2se/1.4.2/download.html"><b><span style="color: rgb(4, 84, 145); text-decoration: none;">download</span></b></a>) or 5.0 (<a href="http://java.sun.com/j2se/1.5.0/download.jsp"><b><span style="color: rgb(4, 84, 145); text-decoration: none;">download</span></b></a>) <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-family: 宋体;">除了以上的两个以外，我们还可以选择下载</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Sun Java System Application Server Platform Edition 8 2005Q1</span>
				<span style="font-family: 宋体;">、</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">jboss</span>
				<span style="font-family: 宋体;">、</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">weblogic</span>
				<span style="font-family: 宋体;">等。在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">netbeans</span>
				<span style="font-family: 宋体;">中已经集成了用于两层网络应用程序开发的服务器</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Tomcat Web Server</span>
				<span style="font-family: 宋体;">，除非需要开发企业级的应用程序，通常情况下只用必需的那两个软件就够了。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<b style="">
						<span style="color: red; font-family: 宋体;">在</span>
				</b>
				<b style="">
						<span style="font-size: 9pt; color: red; font-family: Verdana;" lang="EN-US">IDE</span>
				</b>
				<b style="">
						<span style="color: red; font-family: 宋体;">中注册服务器</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-family: 宋体;">除了在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">NetBeans</span>
				<span style="font-family: 宋体;">中默认注册的</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Tomcat Web Server</span>
				<span style="font-family: 宋体;">，必须手动注册像</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">jboss</span>
				<span style="font-family: 宋体;">、</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">weblogic</span>
				<span style="font-family: 宋体;">等可选的服务器组件。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">        </span></span>
				</span>
				<span style="font-family: 宋体;">在主菜单中依次选择</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Tools &gt; Server Manager<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">        </span></span>
				</span>
				<span style="font-family: 宋体;">单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Add Server</span>
				<span style="font-family: 宋体;">，选择</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">server</span>
				<span style="font-family: 宋体;">的</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">type</span>
				<span style="font-family: 宋体;">并且为</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">instance</span>
				<span style="font-family: 宋体;">命名，单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">next<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">3.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">指定服务器信息、应用程序服务器实例的位置以及需要部署的</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">domain</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<b style="">
						<span style="color: red; font-family: 宋体;">建立一个新的</span>
				</b>
				<b style="">
						<span style="font-size: 9pt; color: red; font-family: Verdana;" lang="EN-US">web</span>
				</b>
				<b style="">
						<span style="color: red; font-family: 宋体;">应用程序工程</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">依次选择</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">File &gt; New Project</span>
				<span style="font-family: 宋体;">，在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Categories</span>
				<span style="font-family: 宋体;">菜单中选择</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Web</span>
				<span style="font-family: 宋体;">，在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Projects</span>
				<span style="font-family: 宋体;">菜单中选择</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Web Application</span>
				<span style="font-family: 宋体;">，然后</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">next</span>
				<span style="font-family: 宋体;">。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Project Name</span>
				<span style="font-family: 宋体;">中填入</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">HelloWeb</span>
				<span style="font-family: 宋体;">。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">3.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">可以改变</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Project Location</span>
				<span style="font-family: 宋体;">到任何你希望的位置，自此，该位置将被成为</span>
				<tt>
						<i>
								<span style="font-size: 12pt; color: black;" lang="EN-US">$</span>
						</i>
				</tt>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">PROJECTHOME</span>
				<span style="font-size: 9pt; font-family: 宋体;">。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">4.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">可根据个人喜好选择一种程序注解风格</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">a)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">        </span></span>
				</span>
				<b>
						<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Java BluePrints.</span>
				</b>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
				</span>
				<span style="font-family: 宋体;">更多信息详见</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<a href="http://java.sun.com/blueprints/code/projectconventions.html" target="_blank">
								<b>
										<span style="color: rgb(4, 84, 145); text-decoration: none;">http://java.sun.com/blueprints/code/projectconventions.html</span>
								</b>
						</a>. <o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 42pt; text-indent: -21pt; text-align: left;" align="left">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">b)<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">        </span></span>
				</span>
				<st1:city w:st="on">
						<st1:place w:st="on">
								<b>
										<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Jakarta</span>
								</b>
						</st1:place>
				</st1:city>
				<b>
						<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">.</span>
				</b>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
				</span>
				<span style="font-family: 宋体;">更多信息详见</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<a href="http://jakarta.apache.org/tomcat/tomcat-5.0-doc/" target="_blank">
								<b>
										<span style="color: rgb(4, 84, 145); text-decoration: none;">http://jakarta.apache.org/tomcat/tomcat-5.0-doc/</span>
								</b>
						</a>.<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">5.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">选择一个用于部署应用程序的已注册服务器。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">6.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在确认</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Set as Main Project</span>
				<span style="font-family: 宋体;">打勾后，单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Finish</span>
				<span style="font-family: 宋体;">完成。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<h3 style="margin: 13pt 0cm; text-align: center;" align="center">
				<font size="5">
						<span style="color: red; font-family: 宋体;">创建并编辑</span>
						<span style="color: red;" lang="EN-US">web application</span>
						<span style="color: red; font-family: 宋体;">代码文件</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</font>
		</h3>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-family: 宋体;">创建并编辑源代码是</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">netbeans</span>
				<span style="font-family: 宋体;">提供的最重要的功能，毕竟这差不多是程序员日常做的最多的是。无论是喜欢独自编写管理所有代码还是希望有</span>
				<span lang="EN-US">IDE</span>
				<span style="font-family: 宋体;">来帮助生成代码，</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">netbeans</span>
				<span style="font-family: 宋体;">提供了大量的工具来满足不同风格。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<b style="">
						<span style="color: red; font-family: 宋体;">建立</span>
				</b>
				<b style="">
						<span style="font-size: 9pt; color: red; font-family: Verdana;" lang="EN-US">java</span>
				</b>
				<b style="">
						<span style="color: red; font-family: 宋体;">包和一个</span>
				</b>
				<b style="">
						<span style="font-size: 9pt; color: red; font-family: Verdana;" lang="EN-US">java</span>
				</b>
				<b style="">
						<span style="color: red; font-family: 宋体;">源代码文件</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Projects</span>
				<span style="font-family: 宋体;">框中，右键单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Source Packages</span>
				<span style="font-family: 宋体;">节点，依次选择</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">New &gt; Java Class</span>
				<span style="font-family: 宋体;">。在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Class Name</span>
				<span style="font-family: 宋体;">中填入</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">NameHandler</span>
				<span style="font-family: 宋体;">，在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Package</span>
				<span style="font-family: 宋体;">下拉单中填入</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">org.me.hello</span>
				<span style="font-family: 宋体;">。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">NameHandler</span>
				<span style="font-family: 宋体;">中，声明一个变量</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">String name;</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">3.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在构造函数中加入一下代码</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">name = null;</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<b style="">
						<span style="color: red; font-family: 宋体;">生成</span>
				</b>
				<b style="">
						<span style="font-size: 9pt; color: red; font-family: Verdana;" lang="EN-US">getter</span>
				</b>
				<b style="">
						<span style="color: red; font-family: 宋体;">和</span>
				</b>
				<b style="">
						<span style="font-size: 9pt; color: red; font-family: Verdana;" lang="EN-US">setter</span>
				</b>
				<b style="">
						<span style="color: red; font-family: 宋体;">方法</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在变量声明处右键单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">name</span>
				<span style="font-family: 宋体;">，依次选择</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Refactor &gt; Encapsulate Fields</span>
				<span style="font-family: 宋体;">，然后单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">next</span>
				<span style="font-family: 宋体;">。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在底部的</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Refactoring</span>
				<span style="font-family: 宋体;">中，单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Do Refactoring</span>
				<span style="font-family: 宋体;">，这时</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">netbeans</span>
				<span style="font-family: 宋体;">将自动生成</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">setter</span>
				<span style="font-family: 宋体;">和</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">getter</span>
				<span style="font-family: 宋体;">方法，同时</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">name</span>
				<span style="font-family: 宋体;">将变成一个私有变量。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-family: 宋体;">代码类似如下：</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">package org.me.hello;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">/**<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style=""> </span>*<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style=""> </span>* @author Administrator<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style=""> </span>*/<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">public class NameHandler {<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>private String name;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>/** Creates a new instance of NameHandler */<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>public NameHandler() {<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">        </span>setName(null);<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>}<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>public String getName() {<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">        </span>return name;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>}<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>public void setName(String name) {<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">        </span>this.name = name;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>}<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">    </span>
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">}<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<b style="">
						<span style="color: red; font-family: 宋体;">编辑缺省的</span>
				</b>
				<b style="">
						<span style="font-size: 9pt; color: red; font-family: Verdana;" lang="EN-US">jsp</span>
				</b>
				<b style="">
						<span style="color: red; font-family: 宋体;">文件</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">展开</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">HelloWeb project</span>
				<span style="font-family: 宋体;">节点，可以看到</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">netbeans</span>
				<span style="font-family: 宋体;">已经建立了一个</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">index.jsp</span>
				<span style="font-family: 宋体;">的文件</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">双击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">index.jsp</span>
				<span style="font-family: 宋体;">文件将在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Source Editor</span>
				<span style="font-family: 宋体;">展开它的源代码</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">3.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在右侧的</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Palette</span>
				<span style="font-family: 宋体;">中展开</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">HTML Forms</span>
				<span style="font-family: 宋体;">，然后将</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Form</span>
				<span style="font-family: 宋体;">拖到</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;h1&gt;</span>
				<span style="font-family: 宋体;">之后。</span> <span style="font-family: 宋体;"><br />设置以下参数：</span><span lang="EN-US"><br /></span><span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Action: response.jsp<br />Method: post<br />Name: Name Input Form</span><span lang="EN-US"><br /></span><span style="font-family: 宋体;">单击</span><span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">OK</span><span style="font-family: 宋体;">，完成</span><span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">form</span><span style="font-family: 宋体;">的插入。</span></p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">4.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">将</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Text Input</span>
				<span style="font-family: 宋体;">拖入到</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;/form&gt;</span>
				<span style="font-family: 宋体;">之前，</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-family: 宋体;">设置一下参数：</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Name: name<br />Type: text</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-family: 宋体;">单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">OK</span>
				<span style="font-family: 宋体;">，完成</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Text Input</span>
				<span style="font-family: 宋体;">的插入。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">5.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">将</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Button</span>
				<span style="font-family: 宋体;">拖入到</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;/form&gt;</span>
				<span style="font-family: 宋体;">之前，</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-family: 宋体;">设置一下参数：</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Label: OK<br />Type: submit</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-family: 宋体;">单击</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">OK</span>
				<span style="font-family: 宋体;">，完成</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Button</span>
				<span style="font-family: 宋体;">的插入。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">6.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;input&gt;</span>
				<span style="font-family: 宋体;">插入</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Enter your name</span>
				<span style="font-family: 宋体;">，将</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;h1&gt;</span>
				<span style="font-family: 宋体;">标签之间的文字改为</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Entry Form</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-family: 宋体;">在</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;body&gt;</span>
				<span style="font-family: 宋体;">标签之间的代码类似如下：</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;h1&gt;Entry Form&lt;/h1&gt;&lt;form name="Name Input Form" action="response.jsp" method="POST"&gt;Enter your name: &lt;input type="text" name="name" value="" /&gt;&lt;input type="submit" value="OK" /&gt;&lt;/form&gt;</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<b style="">
						<span style="color: red; font-family: 宋体;">建立</span>
				</b>
				<b style="">
						<span style="font-size: 9pt; color: red; font-family: Verdana;" lang="EN-US">response.jsp</span>
				</b>
				<b style="">
						<span style="color: red; font-family: 宋体;">文件</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</b>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">右键单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">Web Pages</span>
				<span style="font-family: 宋体;">，依次点击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">New &gt; JSP</span>
				<span style="font-family: 宋体;">，将其命名为</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">response.jsp</span>
				<span style="font-family: 宋体;">，然后点击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">OK</span>
				<span style="font-family: 宋体;">。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<span style="">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">        </span></span>
				</span>
				<span style="font-family: 宋体;">在右侧的</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Palette</span>
				<span style="font-family: 宋体;">中展开</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">JSP</span>
				<span style="font-family: 宋体;">，然后将</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Use Bean</span>
				<span style="font-family: 宋体;">拖到</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;body&gt;</span>
				<span style="font-family: 宋体;">之后，设置以下参数：</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">ID: mybean<br />Class: org.me.hello.NameHandler<br />Scope: session<br /></span>
				<span style="font-family: 宋体;">单击</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">OK</span>
				<span style="font-family: 宋体;">，完成</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Use Bean</span>
				<span style="font-family: 宋体;">的插入。</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">
						<span style="">3.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">        </span></span>
				</span>
				<span style="font-family: 宋体;">同理将</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Get Bean Property</span>
				<span lang="EN-US">
				</span>
				<span style="font-family: 宋体;">和</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">Set Bean Property</span>
				<span style="font-family: 宋体;">插入，代码类似如下：</span>
				<span lang="EN-US">
						<br />
				</span>
				<span style="font-size: 9pt; font-family: Verdana;" lang="EN-US">&lt;jsp:useBean id="mybean" scope="session" class="org.me.hello.NameHandler" /&gt;&lt;jsp:setProperty name="mybean" property="*" /&gt;&lt;h1&gt;Hello, &lt;jsp:getProperty name="mybean" property="name" /&gt;!&lt;/h1&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<h3 style="margin: 13pt 0cm; text-align: center;" align="center">
				<font size="5">
						<span style="color: red; font-family: 宋体;">生成并运行</span>
						<span style="color: red;" lang="EN-US">Web Application</span>
						<span style="color: red; font-family: 宋体;">工程</span>
						<span style="color: red;" lang="EN-US">
								<o:p>
								</o:p>
						</span>
				</font>
		</h3>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">1.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">按</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">f6</span>
				<span style="font-family: 宋体;">，</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">netbeans</span>
				<span style="font-family: 宋体;">将编译、运行并部署以上代码文件。</span>
		</p>
		<p class="MsoNormal" style="margin: 0cm 0cm 0pt 21pt; text-indent: -21pt;">
				<span style="" lang="EN-US">
						<span style="">2.<span style="font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">         </span></span>
				</span>
				<span style="font-family: 宋体;">在</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">index.jsp</span>
				<span style="font-family: 宋体;">中输入名字，然后单击</span>
				<span style="font-size: 9pt; color: black; font-family: Verdana;" lang="EN-US">OK</span>
				<span style="font-family: 宋体;">。</span>
		</p>
<img src ="http://www.cnitblog.com/gyn/aggbug/13499.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/gyn/" target="_blank">gyn_tadao</a> 2006-07-11 17:24 <a href="http://www.cnitblog.com/gyn/archive/2006/07/11/13499.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>