﻿<?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-braint8</title><link>http://www.blogjava.net/braint8/</link><description /><language>zh-cn</language><lastBuildDate>Fri, 19 Jun 2026 10:37:06 GMT</lastBuildDate><pubDate>Fri, 19 Jun 2026 10:37:06 GMT</pubDate><ttl>60</ttl><item><title>FusionCharts 的XML标签属性(转)</title><link>http://www.blogjava.net/braint8/articles/303293.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Mon, 23 Nov 2009 02:01:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/303293.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/303293.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/303293.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/303293.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/303293.html</trackback:ping><description><![CDATA[
		<div class="postTitle">
				<b>FusionCharts 的XML标签属性</b>
				<br />
		</div>
		<p>FusionCharts 的 XML标签属性有一下四种数据类型<br />
* Boolean - 布尔类型，只能为1或者0。例如：&lt;graph showNames=’1′ &gt;<br />
* Number - 数字类型，只能为数字。例如：&lt;graph yAxisMaxValue=’200′ &gt;<br />
* String - 字符串类型，只能为字符串。例如： &lt;graph caption=’My Chart’ &gt;<br />
* Hex Color Code - 十六进制颜色代码，前边没有’#’.例如： &lt;graph bgColor=’FFFFDD’ &gt;</p>
		<p>XML中的标签和属性有：<br />
&lt;graph&gt; 所具有的属性<br />
flash背景参数：<br />
* bgColor=”HexColorCode” : 设置flash的背景颜色<br />
* bgAlpha=”NumericalValue(0-100)” : 设置背景的透明度<br />
* bgSWF=”Path of SWF File” : 设置一个外部的Flash 为flash的背景<br />
图表背景参数：<br />
* canvasBgColor=”HexColorCode” : 设置图表背景的颜色<br />
* canvasBaseColor=”HexColorCode” : 设置图表基部的颜色<br />
* canvasBaseDepth=”Numerical Value” : 设置图表基部的高度<br />
* canvasBgDepth=”Numerical Value” : 设置图表背景的深度<br />
* showCanvasBg=”1/0″ : 设置是否显示图表背景<br />
* showCanvasBase=”1/0″ : 设置是否显示图表基部<br />
图表和轴的标题<br />
* caption=”String” : 图表上方的标题<br />
* subCaption=”String” : 图表上方的副标题<br />
* xAxisName= “String” : X轴的名字<br />
* yAxisName= “String” : y轴的名字<br />
图表数量值的限制<br />
* yAxisMinValue=”value”: y轴最小值<br />
* yAxisMaxValue=”value”: y舟最大值<br />
通用参数<br />
* shownames=”1/0″ : 设置是否在x轴下显示&lt;set&gt;里指定的name<br />
* showValues=”1/0″ : 设置是否在柱型图或饼型图上显示数据的值<br />
* showLimits=”1/0″ : 设置是否在图表的y轴坐标上显示最大最小的数据值<br />
* rotateNames=”1/0″ : 设置x轴下的name 是水平显示还是垂直显示<br />
* animation=”1/0″ : 设置柱型图的显示是否是动画显示<br />
字体属性<br />
* baseFont=”FontName” : 设置字体样式<br />
* baseFontSize=”FontSize” : 设置字体大小<br />
* baseFontColor=”HexColorCode” : 设置字体颜色<br />
* outCnvBaseFont = “FontName” : 设置图表外侧的字体样式<br />
* outCnvBaseFontSze=”FontSize” : 设置图表外侧的字体大小<br />
* outCnvBaseFontColor=”HexColorCode”: 设置图表外侧的字体颜色<br />
数字格式选项<br />
* numberPrefix=”$” : 设置数据值的前缀<br />
* numberSuffix=”p.a” : 设置数据值的后缀（如果是特殊字符，需要使用URL Encode重编码）<br />
* formatNumber=”1/0″ : 设置是否格式化数据<br />
* formatNumberScale=”1/0″ : 设置是否用“K”来代表千，“M”来代表百万<br />
* decimalSeparator=”.” : 用指定的字符来代替小数点<br />
* thousandSeparator=”,” : 用指定的字符来代替千位分隔符<br />
* decimalPrecision=”2″ : 设置十进制的精度<br />
* divLineDecimalPrecision=”2″: 设置y轴数值的小数位数<br />
* limitsDecimalPrecision=”2″ : 设置y轴的最大最小值的小数位数<br />
水平分隔线<br />
* numdivlines=”NumericalValue” : 设置水平分隔线的数量<br />
* divlinecolor=”HexColorCode” : 设置水平分隔线的颜色<br />
* divLineThickness=”NumericalValue” : 设置水平分隔线的宽度<br />
* divLineAlpha=”NumericalValue0-100″ : 设置水平分隔线的透明度<br />
* showDivLineValue=”1/0″ : 设置是否显示水平分隔线的数值<br />
鼠标旋停参数<br />
* showhovercap=”1/0″ : 显示是否激活鼠标旋停效果<br />
* hoverCapBgColor=”HexColorCode” : 设置鼠标旋停效果的背景颜色<br />
* hoverCapBorderColor=”HexColorCode” : 设置鼠标旋停效果的边框颜色<br />
* hoverCapSepChar=”Char” : 设置鼠标旋停后显示的文本中的分隔符号<br />
图表边距的设置<br />
* chartLeftMargin=”Numerical Value (in pixels)” : 设置图表左边距<br />
* chartRightMargin=”Numerical Value (in pixels)” : 设置图表右边距<br />
* chartTopMargin=”Numerical Value (in pixels)” : 设置图表上边距<br />
* chartBottomMargin=”Numerical Value (in pixels)” : 设置图表下边距<br />
Zero Plane<br />
The zero plane is a 3D plane that signifies the 0 position on the
chart. If there are no negative numbers on the chart, you won’t see a
visible zero plane.<br />
* zeroPlaneShowBorder=”1/0″ : Whether the border of a 3D zero plane would be plotted or not.<br />
* zeroPlaneBorderColor=”Hex Code” : If the border is to be plotted, this attribute sets the border color for the plane.<br />
* zeroPlaneColor=”Hex Code” : The intended color for the zero plane.<br />
* zeroPlaneAlpha=”Numerical Value 0-100″ : The intended transparency for the zero plane. </p>
		<p>&lt;set&gt; 所具有的属性<br />
* name=”string” : 设置在图表中体现出来的名字<br />
Example: &lt;set name=’Jan’ …&gt;<br />
* value=”NumericalValue” : 设置在图表中各个名字想对应的值<br />
Example: &lt;set name=’Jan’ value=’12345′ …&gt;<br />
* color=”HexCode” : 设置在图表中相对应的柱行图的颜色<br />
Example: &lt;set name=’Jan’ value=’12345′ color=’636363′ …&gt;<br />
* hoverText=”String value” : 设置鼠标旋停在相对应的柱行图 上出现的文本内容<br />
Example: &lt;set name=’Jan’ value=’12345′ color=’636363′ hoverText=’January’…&gt;<br />
* link=”URL” : 设置该柱行图的链接地址（需要URL Encode重编码）<br />
Example: &lt;set … link=’ShowDetails.asp%3FMonth=Jan’ …&gt;<br />
* alpha=”Numerical Value 0-100″ : 设置在图表中相对应的柱行图的透明度<br />
Example: &lt;set … alpha=’100′ …&gt;<br />
* showName=”1″ : 设置在是否显示图表中相对应的柱行图的name<br />
Example : &lt;set … showName=”1″ …&gt;</p>
		<p>以下内容非转（个人愚见）：<br /></p>
		<p>果然是收费的东西越简单，相比open-flash-chart来说，简单的多，只要根据例子就可以写出来各种图形了，而且设置也只要在xml格式的标签里设置，会写程序的下个fusionchart v3的包看下例子谁都会用了。</p>
		<p>
		</p>
		<p>效果：</p>
		<p>fusionchart &gt; open-flash-chart &gt; jfreechart</p>
		<p>难易：</p>
		<p>fusionchart &gt; jfreechart &gt; open-flash-chart</p>
		<p>但是fusionchart效果绚丽的要收费，挂了个logo（囧），网上也有破解版的去掉了logo；但是既然是收费的就会有涉及版权问题，不知道各位项目经理是否会冒这个险使用破解版。个人觉得要么就买一个，要么就别用，毕竟是收费的东西。</p>
		<p>
				<font color="#ff0000">2010-01-04添加：</font>
		</p>
		<p>解决div被fusionchart的flash遮挡问题！<br /></p>
		<p>
				<span style="color: rgb(0, 0, 0);">this.addParam('wmode', 'transparent');//这个是需要添加的</span>
		</p>
		<p>
		</p>
<img src ="http://www.blogjava.net/braint8/aggbug/303293.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-11-23 10:01 <a href="http://www.blogjava.net/braint8/articles/303293.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Struts2---3</title><link>http://www.blogjava.net/braint8/articles/302440.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Sun, 15 Nov 2009 12:09:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/302440.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/302440.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/302440.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/302440.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/302440.html</trackback:ping><description><![CDATA[
		<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" />
		<!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:PunctuationKerning/>
  <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
		<!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
		<style>
				<!--
 /* Font Definitions */
 @font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimSun;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	mso-pagination:none;
	font-size:10.5pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:宋体;
	mso-font-kerning:1.0pt;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
 /* Page Definitions */
 @page
	{mso-page-border-surround-header:no;
	mso-page-border-surround-footer:no;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:36.0pt;
	mso-footer-margin:36.0pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
		</style>
		<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:普通表格;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
		<p class="MsoNormal">
				<span lang="EN-US">8</span>
				<span style="font-family: 宋体;">．</span>
				<span lang="EN-US">Struts2</span>
				<span style="font-family: 宋体;">获取</span>
				<span lang="EN-US">request,session,application</span>
				<span style="font-family: 宋体;">与前台交互</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">①<span lang="EN-US"><o:p></o:p></span></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">Map request =
(Map)ActionContext.<i>getContext</i>().get(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"request"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">Map session =
(Map)ActionContext.<i>getContext</i>().getSession();</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">Map application = (Map)ActionContext.<i>getContext</i>().getApplication();<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">②使用</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">IOC</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">依赖注入</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">基本只用到</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">session<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">首先：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">Action implements
SessionAware<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">成员变量：</span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">private</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> Map&lt;String,
Object&gt; </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);" lang="EN-US">session</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">实现接口方法：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">   </span>
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left; text-indent: 21pt;" align="left">
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">public</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
				</span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">void</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> setSession(Map&lt;String, Object&gt;
session) {</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 159, 191);" lang="EN-US">TODO</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US"> Auto-generated method stub</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>
				</span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">this</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">.</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(0, 0, 192);" lang="EN-US">session</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> = session;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>}<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">把获取的</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">session</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">交给</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">struts2</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">来创建</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">9</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">．分模块配置文件</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">Struts.xml</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">文件中使用</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">&lt;include file=”a.xml”/&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">xml</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">文件中配置各自模块的</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">action</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">信息，多人开发，</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">include</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">多个，避免版本冲突！</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">10</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">．</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">OGNL</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">表达式</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">①可针对对象来在</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">jsp</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">页面上调用对象的方法，比</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">el</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">表达式高级</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">(el</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">只能调对象的属性值如：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">user.username),ognl</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">可以使用</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">user.toString()<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">②可访问当前</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">action</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">里的普通方法</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">,</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">如：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">UserAction</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">里方法</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">test();jsp</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">页面访问</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">&lt;s:property value=”test()” /&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">③可访问其他类的静态属性和方法：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">访问静态属性：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:property </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"@com.braint.struts2.util.TestUtil@STR"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">/&gt;&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">br</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">访问静态方法：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:property
</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"@com.braint.struts2.util.TestUtil@test()"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">/&gt;&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">br</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">静态方法的访问，</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">struts.xml</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">配置里需设置</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">constant </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">name</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"struts.ognl.allowStaticMethodAccess"
</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"true" </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">/&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">④可创建类的实例：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:property </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"@new <span style=""></span>com.braint.struts2.util.TestUtil()"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">/&gt;&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">br</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">⑤访问集合：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">结合访问对象与访问对象里的方法一样，可以通过访问</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">list,set</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">或</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">map</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">和获取集合里的值；</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">如：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">&lt;s:property value=”userList[0].name”
/&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">效果同上</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">&lt;s:property value=”userList.{name}[0]” /&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">单独</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">userList.{name}</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">效果是获取</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">userList</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">里的所有</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">name</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">属性的一个集合</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">&lt;s:property value=”userList.size()”
/&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">⑥更强大的过滤集合：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">&lt;s:property value=”userList.{?#this.name==’admin’}.name”
/&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">userList.{?#this.name==’admin’}</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">表示遍历</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">userList</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">，返回</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">name</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">值为</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">admin</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">的对象</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">userList.{^#this.name==’admin’}</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">过滤后返回的对象里的第一个</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">,^</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">表示开头</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">userList.{$#this.name==’admin’}</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">过滤后返回的对象里的最后一个</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">,$</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">表示结尾</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">&lt;s:property value=”userList[0].name
== null” /&gt;</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">空返回</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">flase;</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">非空</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">true<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">11</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">．</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">Struts2</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">标签</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
				</span>
		</p>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="ProgId" content="Word.Document" />
		<meta name="Generator" content="Microsoft Word 11" />
		<meta name="Originator" content="Microsoft Word 11" />
		<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" />
		<!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:PunctuationKerning/>
  <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
		<!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
		<style>
				<!--
 /* Font Definitions */
 @font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimSun;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	mso-pagination:none;
	font-size:10.5pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:宋体;
	mso-font-kerning:1.0pt;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
 /* Page Definitions */
 @page
	{mso-page-border-surround-header:no;
	mso-page-border-surround-footer:no;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:36.0pt;
	mso-footer-margin:36.0pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
		</style>
		<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:普通表格;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
		<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
				<a href="http://struts.apache.org/2.1.8/docs/tag-reference.html">http://struts.apache.org/2.1.8/docs/tag-reference.html</a>
		</span>
		<span style="font-size: 10pt; font-family: 宋体; color: black;">在线标签文档</span>
		<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
				<o:p>
				</o:p>
		</span>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">if,else if,else<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">iterator<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">list:<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:iterator
</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"{1, 2, 3}" </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">var</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"test" </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:property </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"#test"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">/&gt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> |</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;/</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:iterator</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:iterator
</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"userList" </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">var</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"user" </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:property </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"#user.name"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">/&gt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> |</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;/</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:iterator</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">注意点：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">里取的</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">userList</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">必需在</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">action</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">里有成员变量且有</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">set,get</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">方法</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">Map:</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">与</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">list</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">类似</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left; text-indent: 21pt;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:iterator </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"#{1:’a’,
2:’b’, 3:’c’}" </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">var</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"test" </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:property </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 127);" lang="EN-US">value</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">=</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"#test.key"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">/&gt;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> #test.value<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&lt;/</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 127);" lang="EN-US">s:iterator</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: teal;" lang="EN-US">&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">注意点：</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">map</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">声明必须在</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">{}</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">前加</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">#</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">，与</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">list</span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">的区别</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
<img src ="http://www.blogjava.net/braint8/aggbug/302440.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-11-15 20:09 <a href="http://www.blogjava.net/braint8/articles/302440.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Struts2---2</title><link>http://www.blogjava.net/braint8/articles/Struts2.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Sun, 15 Nov 2009 12:08:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/Struts2.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/302439.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/Struts2.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/302439.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/302439.html</trackback:ping><description><![CDATA[
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="ProgId" content="Word.Document" />
		<meta name="Generator" content="Microsoft Word 11" />
		<meta name="Originator" content="Microsoft Word 11" />
		<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" />
		<o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="chsdate">
		</o:smarttagtype>
		<!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:PunctuationKerning/>
  <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
		<!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
		<!--[if !mso]><object
 classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]-->
		<style>
				<!--
 /* Font Definitions */
 @font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimSun;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	mso-pagination:none;
	font-size:10.5pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:宋体;
	mso-font-kerning:1.0pt;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
 /* Page Definitions */
 @page
	{mso-page-border-surround-header:no;
	mso-page-border-surround-footer:no;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:36.0pt;
	mso-footer-margin:36.0pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
		</style>
		<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:普通表格;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
		<p class="MsoNormal">
				<span lang="EN-US">1</span>
				<span style="font-family: 宋体;">．根据示例来模仿运行</span>
		</p>
		<p class="MsoNormal" style="text-indent: 21pt;">
				<span style="font-family: 宋体;">①可解压</span>
				<span lang="EN-US">struts2-blank-<st1:chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">2.1.8</st1:chsdate>.war</span>
				<span style="font-family: 宋体;">包</span>
				<span lang="EN-US">,</span>
				<span style="font-family: 宋体;">取</span>
				<span lang="EN-US">struts2-blank-2.1.8\WEB-INF\classes\</span>
				<span style="font-family: 宋体;">目录下的</span>
				<span lang="EN-US">struts.xml</span>
				<span style="font-family: 宋体;">文件至自己工程</span>
				<span lang="EN-US">src</span>
				<span style="font-family: 宋体;">目录下</span>
		</p>
		<p class="MsoNormal" style="text-indent: 21pt;">
				<span style="font-family: 宋体;">②复制</span>
				<span lang="EN-US">struts2-blank-<st1:chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">2.1.8</st1:chsdate>\WEB-INF\lib\</span>
				<span style="font-family: 宋体;">目录下包至工程</span>
				<span lang="EN-US">lib</span>
				<span style="font-family: 宋体;">下</span>
		</p>
		<p class="MsoNormal" style="text-indent: 21pt;">
				<span style="font-family: 宋体;">③配置</span>
				<span lang="EN-US">web.xml</span>
				<span style="font-family: 宋体;">文件，主要是</span>
				<span lang="EN-US">filter</span>
				<span style="font-family: 宋体;">的配置</span>
		</p>
		<p class="MsoNormal" style="text-indent: 21pt;">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">2</span>
				<span style="font-family: 宋体;">．</span>
				<span lang="EN-US">Struts.xml</span>
				<span style="font-family: 宋体;">里的</span>
				<span lang="EN-US">namaspace=”/”</span>
				<span style="font-family: 宋体;">这里就是地址访问路径</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<span style=""> </span>&lt;action name=”hello”&gt;</span>
				<span style="font-family: 宋体;">可以当成路径</span>
				<span lang="EN-US">/hello.action</span>
				<span style="font-family: 宋体;">访问，</span>
				<span lang="EN-US">action</span>
				<span style="font-family: 宋体;">可以省略，与</span>
				<span lang="EN-US">struts1</span>
				<span style="font-family: 宋体;">中</span>
				<span lang="EN-US">.do</span>
				<span style="font-family: 宋体;">一样</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">3</span>
				<span style="font-family: 宋体;">．</span>
				<span lang="EN-US">Struts2</span>
				<span style="font-family: 宋体;">可以配置修改配置不用重启</span>
				<span lang="EN-US">&lt;constant name="struts.devMode" value="true"
/&gt;</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">对于</span>
				<span lang="EN-US">strtus2</span>
				<span style="font-family: 宋体;">属性的设置即</span>
				<span lang="EN-US">&lt;constant name=”” value=””/&gt;</span>
				<span style="font-family: 宋体;">的</span>
				<span lang="EN-US">name</span>
				<span style="font-family: 宋体;">位置位于</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">Struts2-core-<st1:chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">2.1.8</st1:chsdate>.jar\org.apache.struts2\static\default.properties</span>
				<span style="font-family: 宋体;">文件下</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">执行过程：</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<span style="">       </span>
				</span>
				<span style="font-family: 宋体;">如地址：</span>
				<span lang="EN-US">http://localhost:8888/Struts2_01/hello11</span>
				<span style="font-family: 宋体;">提交</span>
				<span lang="EN-US">tomcat</span>
				<span style="font-family: 宋体;">后，获取工程名对应发布的工程</span>
				<span lang="EN-US">Struts2_01</span>
				<span style="font-family: 宋体;">，然后寻找对应工程的</span>
				<span lang="EN-US">web.xml</span>
				<span style="font-family: 宋体;">文件，寻找对应的</span>
				<span lang="EN-US">namespace(</span>
				<span style="font-family: 宋体;">为该工程后的路径，如</span>
				<span lang="EN-US">namespace=”/test”</span>
				<span style="font-family: 宋体;">则地址为</span>
				<span lang="EN-US">
						<a href="http://localhost:8888/Struts2_01/test/hello11%29,%E7%84%B6%E5%90%8E%E5%86%8D%E6%A0%B9%E6%8D%AEhello11">http://localhost:8888/Struts2_01/test/hello11),<span style="font-family: 宋体;" lang="EN-US"><span lang="EN-US">然后再根据</span></span>hello11</a>
				</span>
				<span style="font-family: 宋体;">寻找对应的</span>
				<span lang="EN-US">action,</span>
				<span style="font-family: 宋体;">找到后，通过</span>
				<span lang="EN-US">result</span>
				<span style="font-family: 宋体;">返回配置的</span>
				<span lang="EN-US">jsp</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="">
				<span lang="EN-US">4</span>
				<span style="font-family: 宋体;">．</span>
				<span lang="EN-US">Struts.xml</span>
				<span style="font-family: 宋体;">文件的标签提示问题</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<span style="">       </span>Window-preferences-</span>
				<span style="font-family: 宋体;">搜索</span>
				<span lang="EN-US">catalog—add</span>
		</p>
		<p class="MsoNormal" style="margin-left: 21pt;">
				<span lang="EN-US">Location:</span>
		</p>
		<p class="MsoNormal" style="margin-left: 21pt;">
				<span lang="EN-US">Key Type:URI</span>
		</p>
		<p class="MsoNormal" style="margin-left: 21pt;">
				<span lang="EN-US">Key: <a href="http://struts.apache.org/dtds/struts-2.0.dtd">http://struts.apache.org/dtds/struts-2.0.dtd</a></span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">最好修改</span>
				<span lang="EN-US">myeclipse</span>
				<span style="font-family: 宋体;">的快捷键设置</span>
				<span lang="EN-US">,window-preferences-General-keys,Context
Assist</span>
				<span style="font-family: 宋体;">设置为</span>
				<span lang="EN-US">alt+/</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">5</span>
				<span style="font-family: 宋体;">．</span>
				<span lang="EN-US">Result</span>
				<span style="font-family: 宋体;">里的</span>
				<span lang="EN-US">name</span>
				<span style="font-family: 宋体;">配置了</span>
				<span lang="EN-US">action</span>
				<span style="font-family: 宋体;">里调用方法后的返回</span>
				<span lang="EN-US">string</span>
				<span style="font-family: 宋体;">所匹配的字符串，根据这个匹配的字符串查找配置里的跳转的页面；默认不配置则为</span>
				<span lang="EN-US">success</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="">
				<span lang="EN-US">6</span>
				<span style="font-family: 宋体;">．</span>
				<span lang="EN-US">Action</span>
				<span style="font-family: 宋体;">接收参数方式</span>
		</p>
		<p class="MsoNormal" style="">
				<span style="font-family: 宋体;">①</span>
				<span lang="EN-US">Action</span>
				<span style="font-family: 宋体;">类里写属性</span>
				<span lang="EN-US">,</span>
				<span style="font-family: 宋体;">并有</span>
				<span lang="EN-US">set,get</span>
				<span style="font-family: 宋体;">方法</span>
				<span lang="EN-US">,</span>
				<span style="font-family: 宋体;">地址传递参数会自动赋值</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">地址：</span>
				<span lang="EN-US">http://localhost:8080/user!add?name=a&amp;age=8</span>
				<span style="font-family: 宋体;">　</span>
				<span lang="EN-US">-----</span>
				<span style="font-family: 宋体;">成员</span>
				<span lang="EN-US">String name; int age;</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">调用</span>
				<span lang="EN-US">user.action</span>
				<span style="font-family: 宋体;">里的</span>
				<span lang="EN-US">add</span>
				<span style="font-family: 宋体;">方法</span>
				<span lang="EN-US">,</span>
				<span style="font-family: 宋体;">且通过参数</span>
				<span lang="EN-US">name</span>
				<span style="font-family: 宋体;">，获取值后调用</span>
				<span lang="EN-US">setName();</span>
				<span style="font-family: 宋体;">提交</span>
				<span lang="EN-US">action</span>
				<span style="font-family: 宋体;">时自动赋值</span>
		</p>
		<p class="MsoNormal" style="">
				<span style="font-family: 宋体;">②</span>
				<span lang="EN-US">action</span>
				<span style="font-family: 宋体;">可以接收模型对象</span>
				<span lang="EN-US">,set,get</span>
				<span style="font-family: 宋体;">方法</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">地址：</span>
				<span lang="EN-US">http://localhost:8080/user!add?user.name=a&amp;user.age=8</span>
		</p>
		<p class="MsoNormal" style="">
				<span lang="EN-US">Action</span>
				<span style="font-family: 宋体;">里拥有成员</span>
				<span lang="EN-US">User user;</span>
				<span style="font-family: 宋体;">且</span>
				<span lang="EN-US">User</span>
				<span style="font-family: 宋体;">类里拥有成员变量</span>
				<span lang="EN-US">name,age</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">自动把参数上的</span>
				<span lang="EN-US">user.name</span>
				<span style="font-family: 宋体;">和</span>
				<span lang="EN-US">user.age</span>
				<span style="font-family: 宋体;">值赋给</span>
				<span lang="EN-US">user</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">请求地址传输参数的赋值都交给模型来处理．</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">7</span>
				<span style="font-family: 宋体;">．简单数据验证</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">String name;</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">Action</span>
				<span style="font-family: 宋体;">验证后，对于</span>
				<span lang="EN-US">name</span>
				<span style="font-family: 宋体;">验证不通过，使用</span>
				<span lang="EN-US">this.addFieldError(“name”,”</span>
				<span style="font-family: 宋体;">错误提示信息！</span>
				<span lang="EN-US">”);</span>
		</p>
		<p class="MsoNormal" style="">
				<span lang="EN-US">Jsp</span>
				<span style="font-family: 宋体;">页面则使用</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">①</span>
				<span lang="EN-US">&lt;s:fielderror
fieldname=”name”/&gt;</span>
				<span style="font-family: 宋体;">固定样式，添加了</span>
				<span lang="EN-US">ul,li</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">②</span>
				<span lang="EN-US">&lt;s:property<span style="">  </span>value=”errors.name[0]”/&gt;</span>
				<span style="font-family: 宋体; color: red;">常用</span>
				<span lang="EN-US">;</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">原理：错误信息存放在</span>
				<span lang="EN-US">errors</span>
				<span style="font-family: 宋体;">里</span>
				<span lang="EN-US">;</span>
		</p>
		<p class="MsoNormal" style="text-indent: 31.5pt;">
				<span lang="EN-US">errors</span>
				<span style="font-family: 宋体;">为字符串</span>
				<span lang="EN-US">map</span>
				<span style="font-family: 宋体;">，形式如：</span>
				<span lang="EN-US">errors={name=[</span>
				<span style="font-family: 宋体;">错误提示信息！</span>
				<span lang="EN-US">]},</span>
				<span style="font-family: 宋体;">而</span>
				<span lang="EN-US">map</span>
				<span style="font-family: 宋体;">里的</span>
				<span lang="EN-US">value</span>
				<span style="font-family: 宋体;">是</span>
				<span lang="EN-US">name</span>
				<span style="font-family: 宋体;">其实是个字符串数组或集合</span>
				<span lang="EN-US">[,,,];</span>
		</p>
		<p class="MsoNormal">
				<span style="font-family: 宋体;">流程：</span>
				<span lang="EN-US">jsp</span>
				<span style="font-family: 宋体;">页面调用</span>
				<span lang="EN-US">action</span>
				<span style="font-family: 宋体;">，</span>
				<span lang="EN-US">action</span>
				<span style="font-family: 宋体;">处理逻辑，</span>
				<span lang="EN-US">return</span>
				<span style="font-family: 宋体;">后，</span>
				<span lang="EN-US">action</span>
				<span style="font-family: 宋体;">里的所有成员变量都已经存在</span>
				<span lang="EN-US">value stack</span>
				<span style="font-family: 宋体;">里，就跟</span>
				<span lang="EN-US">struts1</span>
				<span style="font-family: 宋体;">里的</span>
				<span lang="EN-US">form</span>
				<span style="font-family: 宋体;">类似已经存在</span>
				<span lang="EN-US">request</span>
				<span style="font-family: 宋体;">中，可以直接在页面上取值</span>
				<span lang="EN-US">,</span>
				<span style="font-family: 宋体;">只不过</span>
				<span lang="EN-US">struts2</span>
				<span style="font-family: 宋体;">里存在</span>
				<span lang="EN-US">value stack</span>
				<span style="font-family: 宋体;">里；通过</span>
				<span lang="EN-US">return</span>
				<span style="font-family: 宋体;">的字符串找到相应的</span>
				<span lang="EN-US">result</span>
				<span style="font-family: 宋体;">的</span>
				<span lang="EN-US">name</span>
				<span style="font-family: 宋体;">值跳转到对应的</span>
				<span lang="EN-US">jsp</span>
				<span style="font-family: 宋体;">页面</span>
				<span lang="EN-US">,jsp</span>
				<span style="font-family: 宋体;">页面可以通过类似</span>
				<span lang="EN-US">EL</span>
				<span style="font-family: 宋体;">表达式取值，也可以通过</span>
				<span lang="EN-US">&lt;s:property&gt;</span>
				<span style="font-family: 宋体;">取值。</span>
		</p>
<img src ="http://www.blogjava.net/braint8/aggbug/302439.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-11-15 20:08 <a href="http://www.blogjava.net/braint8/articles/Struts2.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Open-flash-chart的使用</title><link>http://www.blogjava.net/braint8/articles/Open-flash-chart.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Thu, 12 Nov 2009 11:46:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/Open-flash-chart.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/302139.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/Open-flash-chart.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/302139.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/302139.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Normal  0    7.8 磅  0  2    false  false  false                                          MicrosoftInternetExplorer4 		  		st1\:*{behav...&nbsp;&nbsp;<a href='http://www.blogjava.net/braint8/articles/Open-flash-chart.html'>阅读全文</a><img src ="http://www.blogjava.net/braint8/aggbug/302139.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-11-12 19:46 <a href="http://www.blogjava.net/braint8/articles/Open-flash-chart.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JFreeChart基础使用</title><link>http://www.blogjava.net/braint8/articles/JFreeChart.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Wed, 11 Nov 2009 08:36:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/JFreeChart.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/301976.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/JFreeChart.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/301976.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/301976.html</trackback:ping><description><![CDATA[
		<link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml" />
		<o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="chsdate">
		</o:smarttagtype>
		<!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:PunctuationKerning/>
  <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
		<!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]-->
		<!--[if !mso]><object
 classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object>
<style>
st1\:*{behavior:url(#ieooui) }
</style>
<![endif]-->
		<style>
				<!--
 /* Font Definitions */
 @font-face
	{font-family:宋体;
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-alt:SimSun;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
	{font-family:"\@宋体";
	panose-1:2 1 6 0 3 1 1 1 1 1;
	mso-font-charset:134;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:3 135135232 16 0 262145 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	mso-pagination:none;
	font-size:10.5pt;
	mso-bidi-font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:宋体;
	mso-font-kerning:1.0pt;}
p.MsoHeader, li.MsoHeader, div.MsoHeader
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:center;
	mso-pagination:none;
	tab-stops:center 207.65pt right 415.3pt;
	layout-grid-mode:char;
	border:none;
	mso-border-bottom-alt:solid windowtext .75pt;
	padding:0cm;
	mso-padding-alt:0cm 0cm 1.0pt 0cm;
	font-size:9.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:宋体;
	mso-font-kerning:1.0pt;}
p.MsoFooter, li.MsoFooter, div.MsoFooter
	{margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:none;
	tab-stops:center 207.65pt right 415.3pt;
	layout-grid-mode:char;
	font-size:9.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:宋体;
	mso-font-kerning:1.0pt;}
 /* Page Definitions */
 @page
	{mso-page-border-surround-header:no;
	mso-page-border-surround-footer:no;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:42.55pt;
	mso-footer-margin:49.6pt;
	mso-paper-source:0;
	layout-grid:15.6pt;}
div.Section1
	{page:Section1;}
-->
		</style>
		<!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:普通表格;
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}
</style>
<![endif]-->
		<p class="MsoNormal" style="">
				<span lang="EN-US">Jfreechart <st1:chsdate year="1899" month="12" day="30" islunardate="False" isrocdate="False" w:st="on">1.0.10</st1:chsdate></span>
				<span style="font-family: 宋体;">中文不冲突（需要包：</span>
				<span lang="EN-US">jfreechart-1.0.10.jar</span>
				<span style="font-family: 宋体;">、</span>
				<span lang="EN-US">jcommon-1.0.13.jar</span>
				<span style="font-family: 宋体;">）</span>
		</p>
		<p class="MsoNormal">
				<span lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">饼图</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">DefaultPieDataset dataset = </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">new</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
DefaultPieDataset();</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.setValue(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">苹果</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, 100);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.setValue(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">梨子</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, 500);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.setValue(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">葡萄</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, 800);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.setValue(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">香蕉</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, 400);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.setValue(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">荔枝</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, 200);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">chart = ChartFactory.<i>createPieChart3D</i>(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">水果产量图</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, dataset, </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">true</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">false</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">false</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">); </span>
				<span style="font-size: 10pt; font-family: 宋体; color: black;">饼图</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left; text-indent: 21pt;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">FileOutputStream fos_jpg = </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">null</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">;</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left; text-indent: 21pt;" align="left">
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">try</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> {</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>fos_jpg = </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">new</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> FileOutputStream(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"D:\\fruit.jpg"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>ChartUtilities.<i>writeChartAsPNG</i>(fos_jpg, chart, 500,
300);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">           </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">//ChartUtilities.writeChartAsJPEG(fos_jpg,100,chart,400,300,null);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>} </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">finally</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> {</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>
				</span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">try</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> {</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>
						<span style="">    </span>fos_jpg.close();</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>} </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">catch</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"> (Exception e) {}</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>}<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p> </o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">柱状图</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">CategoryDataset dataset = </span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">new</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
DefaultCategoryDataset();<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.addValue(100, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">北京</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">苹果</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.addValue(100, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">北京</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">梨子</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.addValue(3000, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">北京</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">葡萄</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.addValue(4120, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">北京</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">香蕉</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">dataset.addValue(10, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">北京</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">荔枝</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">);<o:p></o:p></span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">chart =
ChartFactory.createBarChart3D(</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                  </span>
						<span style="">       </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">水果产量图</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">图表标题</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                  </span>
						<span style="">       </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">水果</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">目录轴的显示标签</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                  </span>
						<span style="">       </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(42, 0, 255);">产量</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(42, 0, 255);" lang="EN-US">"</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">数值轴的显示标签</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                  </span>
						<span style="">       </span>dataset,
</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">数据集</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                  </span>
						<span style="">      
</span>PlotOrientation.VERTICAL, </span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">图表方向：水平、垂直</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                  </span>
						<span style="">       </span>
				</span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">true</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">,<span style="">  </span></span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">是否显示图例</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">(</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">对于简单的柱状图必须是</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">false)</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                  </span>
						<span style="">       </span>
				</span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">false</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">,<span style="">  </span></span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">是否生成工具</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="text-align: left;" align="left">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                  </span>
						<span style="">       </span>
				</span>
				<b>
						<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(127, 0, 85);" lang="EN-US">false</span>
				</b>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">  </span>
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">// </span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">是否生成</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: rgb(63, 127, 95);" lang="EN-US">URL</span>
				<span style="font-size: 10pt; font-family: 宋体; color: rgb(63, 127, 95);">链接</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">                         </span>);</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">同样的利用输出流生成图片文件</span>
				<br />
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<br />
				</span>
		</p>
		<p class="MsoNormal">其他的图形只要设置得当，都可以生成相应的图片，初次使用在WEB上，可以先运行本地生成图片，然后再利用图片在工程里的url，在jsp页面上利用&lt;img&gt;标签展示。<br /><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"><o:p></o:p></span></p>
		<br />
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">
				</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<o:p>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: 宋体; color: black;">有可能配置的</span>
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">web.xml<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>&lt;servlet&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>&lt;servlet-name&gt;DisplayChart&lt;/servlet-name&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>&lt;servlet-class&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">           </span>org.jfree.chart.servlet.DisplayChart<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>&lt;/servlet-class&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>&lt;/servlet&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>&lt;servlet-mapping&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>&lt;servlet-name&gt;DisplayChart&lt;/servlet-name&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">       </span>&lt;url-pattern&gt;/DisplayChart&lt;/url-pattern&gt;<o:p></o:p></span>
		</p>
		<p class="MsoNormal">
				<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US">
						<span style="">    </span>&lt;/servlet-mapping&gt;</span>
		</p>
		<p class="MsoNormal">
				<br />
		</p>
		<p class="MsoNormal">关于<span lang="EN-US">Jfreechart的api还是可以查看一下，特别是对于里面的不同图形的一些属性设置和状态，特别ChartFactory.java这个工厂创建的方法查看api会比较清晰的知道，</span>暂时没找到chm格式的。<br /><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;" lang="EN-US"><o:p></o:p></span></p>
<img src ="http://www.blogjava.net/braint8/aggbug/301976.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-11-11 16:36 <a href="http://www.blogjava.net/braint8/articles/JFreeChart.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ibatis操作大字段Clob和Blob问题及解决</title><link>http://www.blogjava.net/braint8/articles/299298.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Thu, 22 Oct 2009 02:15:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/299298.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/299298.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/299298.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/299298.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/299298.html</trackback:ping><description><![CDATA[1.插入，修改Clob类型：<br />ibatis语句:content=#content:CLOB#<br />如果bean里定义为String类型的，直接用resultClass，不能把CLOB类型值赋值给String;<br />必须使用resultMap来定义jdbcType和javaType,如：<br />    &lt;resultMap class="fastrise.work.obj_class.Pub_Msg" id="pub_msg_rm"&gt;<br />        &lt;result property="pub_msg_id" column="PUB_MSG_ID"/&gt;<br />        &lt;result property="pub_msg_title" column="PUB_MSG_TITLE"/&gt;        <br />        &lt;result property="pub_msg_content" column="PUB_MSG_CONTENT" jdbcType="CLOB" javaType="java.lang.String" /&gt;        <br />        &lt;result property="pub_msg_senddate" column="PUB_MSG_SENDDATE"/&gt;<br />        &lt;result property="pub_msg_creater" column="PUB_MSG_CREATER"/&gt;<br />    &lt;/resultMap&gt;<br />以上是用来对于select使用的，因为返回的list里是自动封装好的bean对象,直接使用resultClass的话，也可以返回封装好bean的list，但是对于Clob字段里的值是null.<br /><br />2.ibatis对clob字段的插入修改，数据过长的问题：<br />使用9i数据本身提供的jdbc驱动不能完美支持大数据文本，一直提示数据超过大小，也试过改配置：<br />在SqlMapConfig.xml里的事务配置数据源里加配置<br />    &lt;property name="SetBigStringTryClob" value="true"/&gt;<br />还是不行，查了很多资料，找个10g的jdbc驱动，不要用class12.jar,这个是支持老版本jdk，实在不好用<br />上官网找最新的10g的jdbc驱动ojdbc14.jar，更新工程，正常可以插入大数据了.<br />(鄙视下oracle，下个驱动还要我注册。。。)<br />oracle 10g jdbc驱动地址：<br />http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html<br /><br />Blob类型应该类似，但没实际使用过。<br />参考文章：http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+a+BLOB+or+CLOB<br />英文的，不过多数看的懂意思，比较简单，看来还是多数英文的资料可靠;上国内的网找资料，多数是这里，那里复制<br />过来的，很多都一字不差。<img src ="http://www.blogjava.net/braint8/aggbug/299298.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-10-22 10:15 <a href="http://www.blogjava.net/braint8/articles/299298.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>利用firebug调试js</title><link>http://www.blogjava.net/braint8/articles/296091.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Tue, 22 Sep 2009 15:46:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/296091.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/296091.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/296091.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/296091.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/296091.html</trackback:ping><description><![CDATA[js代码一写长了，调试实在是麻烦，现在可以利用firebug来调试，具体步骤如下：<br />1.打开firefox--工具--附加组件--获取附加组件--搜索"firebug"安装，重启<br />2.菜单栏里  查看--勾选firebug<br />3.控制台启用<br />4.选到脚本或script，可以对行号单击设置断点<br />5.与eclipse类似，可以跟踪调试值或结果<br /><br />至少比IE的错误提示强多了，具体的使用慢慢琢磨。<br /><img src ="http://www.blogjava.net/braint8/aggbug/296091.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-09-22 23:46 <a href="http://www.blogjava.net/braint8/articles/296091.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ibatis动态SQL语句</title><link>http://www.blogjava.net/braint8/articles/295821.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Mon, 21 Sep 2009 02:48:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/295821.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/295821.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/295821.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/295821.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/295821.html</trackback:ping><description><![CDATA[动态SQL语句<br />1)二元条件元素的属性： <br />    prepend  － 可被覆盖的 SQL 语句组成部分，添加在语句的前面（可选） <br />    property  － 被比较的属性（必选） <br />    compareProperty  －  另一个用于和前者比较的属性（必选或选择 compareValue） <br />    compareValue  －  用于比较的值（必选或选择 compareProperty） <br />&lt;isEqual&gt;                  比较属性值和静态值或另一个属性值是否相等。 <br />&lt;isNotEqual&gt;          比较属性值和静态值或另一个属性值是否不相等。<br />&lt;isGreaterThan&gt;      比较属性值是否大于静态值或另一个属性值。 <br />&lt;isGreaterEqual&gt;  比较属性值是否大于等于静态值或另一个属性值。 <br />&lt;isLessThan&gt;          比较属性值是否小于静态值或另一个属性值。 <br />&lt;isLessEqual&gt;          比较属性值是否小于等于静态值或另一个属性值。 <br />例子： <br />&lt;isLessEqual prepend=”AND” property=”age” compareValue=”18”&gt; <br />    ADOLESCENT = 'TRUE' <br />&lt;/isLessEqual&gt; <br /> <br />2)一元条件元素的属性： <br />    prepend  － 可被覆盖的 SQL 语句组成部分，添加在语句的前面（可选） <br />    property  － 被比较的属性（必选） <br />&lt;isPropertyAvailable&gt;          检查是否存在该属性（存在 parameter bean 的属性） 。 <br />&lt;isNotPropertyAvailable&gt;  检查是否不存在该属性（不存在 parameter bean 的属性） 。 <br />&lt;isNull&gt;                                  检查属性是否为 null。 <br />&lt;isNotNull&gt;                              检查属性是否不为 null。 <br />&lt;isEmpty&gt;                                  检查 Collection.size()的值，属性的 String 或 String.valueOf()值,<br />                                                    是否为 null或空（ “”或size() &lt; 1） 。 <br />&lt;isNotEmpty&gt;                          检查 Collection.size()的值，属性的 String 或 String.valueOf()值,<br />                                                    是否不为 null 或不为空（ “”或 size() &gt; 0） 。 <br />例子： <br />&lt;isNotEmpty prepend=”AND” property=”firstName” &gt; <br />    FIRST_NAME=#firstName# <br />&lt;/isNotEmpty&gt;  <br /><br />3)Iterate：这属性遍历整个集合，并为 List 集合中的元素重复元素体的内容。<br />     <br />    Iterate 的属性： <br />        prepend  － 可被覆盖的 SQL 语句组成部分，添加在语句的前面（可选） <br />        property  － 类型为 java.util.List 的用于遍历的元素（必选） <br />        open  －  整个遍历内容体开始的字符串，用于定义括号（可选） <br />        close  －整个遍历内容体结束的字符串，用于定义括号（可选） <br />        conjunction －  每次遍历内容之间的字符串，用于定义 AND 或 OR（可选） <br />        <br />    &lt;iterate&gt;  遍历类型为 java.util.List的元素。 <br />                         例子： <br />                         &lt;iterate prepend=”AND” property=”userNameList” <br />                                         open=”(” close=”)” conjunction=”OR”&gt; <br />                                         username=#userNameList[]# <br />                         &lt;/iterate&gt; <br />     <br />#注意：使用&lt;iterate&gt;时，在List元素名后面包括方括号[]非常重要，方括号[]将<br />    对象标记为List，以防解析器简单地将List输出成String。<img src ="http://www.blogjava.net/braint8/aggbug/295821.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-09-21 10:48 <a href="http://www.blogjava.net/braint8/articles/295821.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ibatis学习过程(五)</title><link>http://www.blogjava.net/braint8/articles/295817.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Mon, 21 Sep 2009 02:42:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/295817.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/295817.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/295817.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/295817.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/295817.html</trackback:ping><description><![CDATA[1.Result Map各种方式<br />1)隐式的Result Map,返回结果为Product实例<br />    &lt;statement id=”getProduct” resultClass=”com.ibatis.example.Product”&gt; <br />        select <br />        PRD_ID as id, <br />        PRD_DESCRIPTION as description <br />        from PRODUCT <br />        where PRD_ID = #value# <br />    &lt;/statement&gt; <br />上面的 mapped statement定义了 resultClass 属性，并为每个字段指定了别名，用于匹配<br />Product 类的属性名称。这样就可以了，不需要 result map。缺点在于，您无法指定字段的数据类型，且<br />不区分大小写，不建议用。<br /><br />2)基本类型的Result（即String，Integer，Boolean）返回结果为int<br />&lt;resultMap id=”get-product-result” class=”java.lang.String”&gt; <br />    &lt;result property=”value” column=”PRD_DESCRIPTION”/&gt; <br />&lt;/resultMap&gt; <br />更简单方法是，在 mapped statement 中使用 resultClass 属性（使用“as”关键字给字段<br />取别名“value” ） ： <br />&lt;statement id=”getProductCount” resultClass=”java.lang.Integer”&gt; <br />    select count(1) as value <br />    from PRODUCT <br />&lt;/statement&gt; <br /><br />3)Map方式，返回结果为HashMap<br />&lt;resultMap id=”get-product-result” class=”java.util.HashMap”&gt; <br />    &lt;result property=”id” column=”PRD_ID”/&gt; <br />    &lt;result property=”code” column=”PRD_CODE”/&gt; <br />    &lt;result property=”description” column=”PRD_DESCRIPTION”/&gt; <br />    &lt;result property=”suggestedPrice” column=”PRD_SUGGESTED_PRICE”/&gt; <br />&lt;/resultMap&gt; <br /><br />&lt;statement id=”getProductCount” resultClass=”java.util.HashMap”&gt; <br />    select * from PRODUCT <br />&lt;/statement&gt; <br /><br />2.一对多的配置实现方式,如：Category 拥有 Product 对象的 List<br />&lt;resultMap id=”get-category-result” class=”com.ibatis.example.Category”&gt; <br />    &lt;result property=”id” column=”CAT_ID”/&gt; <br />    &lt;result property=”description” column=”CAT_DESCRIPTION”/&gt; <br />    &lt;result property=”productList” column=”CAT_ID” select=” getProductsByCatId”/&gt; <br />&lt;/resultMap&gt; <br />&lt;resultMap id=”get-product-result” class=”com.ibatis.example.Product”&gt; <br />    &lt;result property=”id” column=”PRD_ID”/&gt; <br />    &lt;result property=”description” column=”PRD_DESCRIPTION”/&gt; <br />&lt;/resultMap&gt; <br />&lt;statement id=”getCategory” parameterClass=”int” resultMap=”get-category-result”&gt; <br />    select * from CATEGORY where CAT_ID = #value# <br />&lt;/statement&gt; <br />&lt;statement id=”getProductsByCatId” parameterClass=”int” resultMap=”get-product-result”&gt;<br />    select * from PRODUCT where PRD_CAT_ID = #value# <br />&lt;/statement&gt; <br /><br />3.ibatis通过配置解决N+1的问题，解决大数据量时的效率问题<br />    &lt;resultMap id=”get-product-result” class=”com.ibatis.example.Product”&gt; <br />        &lt;result property=”id” column=”PRD_ID”/&gt; <br />        &lt;result property=”description” column=”PRD_DESCRIPTION”/&gt; <br />        &lt;result property=”category.id” column=”CAT_ID” /&gt; <br />        &lt;result property=”category.description” column=”CAT_DESCRIPTION” /&gt; <br />    &lt;/resultMap&gt; <br />    &lt;statement id=”getProduct” parameterClass=”int” resultMap=”get-product-result”&gt; <br />        select * <br />        from PRODUCT, CATEGORY <br />        where PRD_CAT_ID=CAT_ID <br />        and PRD_ID = #value# <br />    &lt;/statement&gt;<br />    利用连接来实现，直接一条SQL语句<br /><br />4.ibatis对于字段的继承的问题？<br />如：表字段10个，定义一个映射第1，2字段，再定义一个映射包含1，2字段，还需要3，4字段，是否可以用继承来减少资源实现？<br />&lt;typeAlias alias="Test" type="com.xxx.Test" /&gt;  <br />&lt;resultMap id = "test" type = "Test"&gt;  <br />   &lt;result property="id" column="id" /&gt;  <br />&lt;/resultMap&gt;  <br />&lt;resultMap id = "extTest" extends="test"&gt;  <br />  &lt;result property="name" column="name"/&gt;  <br />&lt;/resultMap&gt;<br />这样使用 extTest 则拥有id,name两个属性，达到复用。<br /><img src ="http://www.blogjava.net/braint8/aggbug/295817.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-09-21 10:42 <a href="http://www.blogjava.net/braint8/articles/295817.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>初学struts2(一)</title><link>http://www.blogjava.net/braint8/articles/294226.html</link><dc:creator>情晚风</dc:creator><author>情晚风</author><pubDate>Mon, 07 Sep 2009 14:18:00 GMT</pubDate><guid>http://www.blogjava.net/braint8/articles/294226.html</guid><wfw:comment>http://www.blogjava.net/braint8/comments/294226.html</wfw:comment><comments>http://www.blogjava.net/braint8/articles/294226.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/braint8/comments/commentRss/294226.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/braint8/services/trackbacks/294226.html</trackback:ping><description><![CDATA[初学struts2(一)<br />1.在WEB工程中添加jar包(版本struts-2.1.6)<br />commons-logging-1.0.4.jar<br />freemarker-2.3.13.jar<br />ognl-2.6.11.jar<br />struts2-core-2.1.6.jar<br />xwork-2.1.2.jar<br /><br />2.编写Action类和JSP页面<br />如：LoginAction.java 部分代码<br />        private String usernmae;<br />        private String password;<br />        (set,get方法)<br />        <br />        public String execute(){<br />            return "success";<br />        }<br />JSP:<br />&lt;form action="login.action" method="post" &gt;<br /><br />&lt;/form&gt;<br />使用login.action<br /><br />3.配置web.xml<br />    &lt;filter&gt;<br />        &lt;filter-name&gt;struts2&lt;/filter-name&gt;<br />        &lt;filter-class&gt;<br />            org.apache.struts2.dispatcher.FilterDispatcher<br />        &lt;/filter-class&gt;<br />    &lt;/filter&gt;<br /><br />    &lt;filter-mapping&gt;<br />        &lt;filter-name&gt;struts2&lt;/filter-name&gt;<br />        &lt;url-pattern&gt;/*&lt;/url-pattern&gt;<br />    &lt;/filter-mapping&gt;<br />###:<br /><font color="#ff0000">这个没配置的话，无法找到JSP页面提交的action,404错误(暂时不知道为什么。。。)<br />struts1里是使用&lt;servlet&gt;&lt;/servlet&gt;来配置寻找struts-config.xml文件,再在struts-config.xml文件中寻找相应的action<br />struts2里则使用&lt;filter&gt;&lt;/filter&gt;,这里叫"拦截器"!</font><br />    <br />4.配置struts.xml(必须放在src目录下)<br />&lt;?xml version="1.0" encoding="UTF-8" ?&gt;<br /><br />&lt;!DOCTYPE struts PUBLIC<br />    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"<br />    "http://struts.apache.org/dtds/struts-2.0.dtd"&gt;<br /><br />&lt;!-- START SNIPPET: xworkSample --&gt;<br />&lt;struts&gt;<br /><br />    &lt;package name="struts2" extends="struts-default"&gt;<br />        &lt;action name="login" class="com.test.action.LoginAction"&gt;<br />            &lt;result&gt;/result.jsp&lt;/result&gt;<br />        &lt;/action&gt;<br />    &lt;/package&gt;<br />    <br />&lt;/struts&gt;<br /><br />&lt;!-- END SNIPPET: xworkSample --&gt;<br /><br />###：<br /><font color="#ff0000">这里的&lt;result name="success"&gt;/result.jsp&lt;/result&gt;根据LoginAction里的execute方法的返回值来自动寻找的，<br />如果不配置，默认为"success"!这里和struts1是一样的，默认配置都是跳转也就是转发。</font><br /><br /><br />出错：<br />Unable to load configuration. - bean - jar:file:/D:/Struts2/workspace/struts2/WebRoot/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178<br />加载不了jar包？按提示应该是加载不了struts2-core-2.1.6.jar!/struts-default.xml，所以就无法读取JSP提交对应的action<br />难道高版本的有问题，因为自己看的资料是2.0.14版本...还是上网查资料!<br /><br />解决方法：<br />在原来加载五个包的基础上，在Struts2的解压缩文件夹内的lib文件夹里， 我们找到下列2个jar : commons-fileupload-1.2.1.jar、commons-io-1.3.2.jar，把他们加载。 <br /><br /><br /><br /><br /><img src ="http://www.blogjava.net/braint8/aggbug/294226.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/braint8/" target="_blank">情晚风</a> 2009-09-07 22:18 <a href="http://www.blogjava.net/braint8/articles/294226.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>