﻿<?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-xxl36</title><link>http://www.blogjava.net/xxl36/</link><description /><language>zh-cn</language><lastBuildDate>Sun, 17 May 2026 18:53:26 GMT</lastBuildDate><pubDate>Sun, 17 May 2026 18:53:26 GMT</pubDate><ttl>60</ttl><item><title>但愿Chrome不要让我们失望!</title><link>http://www.blogjava.net/xxl36/archive/2008/09/04/227054.html</link><dc:creator>xxl36</dc:creator><author>xxl36</author><pubDate>Thu, 04 Sep 2008 12:45:00 GMT</pubDate><guid>http://www.blogjava.net/xxl36/archive/2008/09/04/227054.html</guid><wfw:comment>http://www.blogjava.net/xxl36/comments/227054.html</wfw:comment><comments>http://www.blogjava.net/xxl36/archive/2008/09/04/227054.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xxl36/comments/commentRss/227054.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xxl36/services/trackbacks/227054.html</trackback:ping><description><![CDATA[Googled的浏览器Chrome发布了！<br />
<br />
<div>很多人不以为然</div>
<div>我却对它寄予了和大的希望</div>
<div>主要希望它能解决两个最迫切的问题：</div>
<div>1、Web加密，坚决抵制ActiveX！</div>
<div>2、RIA，目前的RIA技术.Net、Java、Flex、Ajax都是扶不起的阿斗。为什么就不能通过浏览器端解决呢？</div>
<img src ="http://www.blogjava.net/xxl36/aggbug/227054.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xxl36/" target="_blank">xxl36</a> 2008-09-04 20:45 <a href="http://www.blogjava.net/xxl36/archive/2008/09/04/227054.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在Spring MVC中使用JasperReports</title><link>http://www.blogjava.net/xxl36/archive/2006/10/16/75488.html</link><dc:creator>xxl36</dc:creator><author>xxl36</author><pubDate>Mon, 16 Oct 2006 13:35:00 GMT</pubDate><guid>http://www.blogjava.net/xxl36/archive/2006/10/16/75488.html</guid><wfw:comment>http://www.blogjava.net/xxl36/comments/75488.html</wfw:comment><comments>http://www.blogjava.net/xxl36/archive/2006/10/16/75488.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.blogjava.net/xxl36/comments/commentRss/75488.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xxl36/services/trackbacks/75488.html</trackback:ping><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font size="2">
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">1、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
						</span>
						<font face="Times New Roman">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在</span>
								<span lang="EN-US">mywebapp-servlet.xml</span>
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中定义报表视图解析器：</span>
								<span lang="EN-US">
										<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?>
										<o:p>
										</o:p>
								</span>
						</font>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>&lt;!-- 报表视图解析器 --&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>&lt;bean id="anyname_rptViewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver"&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;property name="order" value="1"/&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;property name="basename" value="views"/&gt; <o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>&lt;/bean&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<o:p>
								<font face="Times New Roman"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt">
				<font size="2">
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">2、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
						</span>
						<font face="Times New Roman">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">新建报表视图资源文件</span>
								<span lang="EN-US">views.properties<o:p></o:p></span>
						</font>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">mysamplerpt.class=org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">mysamplerpt.url=/WEB-INF/reports/mysample_rpt.jasper<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt">
				<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">注意：“<span lang="EN-US">views”就是上面的“basename”。<o:p></o:p></span></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<o:p>
								<font face="Times New Roman"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt">
				<font face="Times New Roman">
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
								<span style="mso-list: Ignore">3、<span style="FONT: 7pt 'Times New Roman'"><font size="2">  </font></span></span>
						</span>
						<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">在<span lang="EN-US">web.xml中定义请求URL过滤<o:p></o:p></span></span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">&lt;servlet&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;servlet-name&gt;mywebapp&lt;/servlet-name&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;servlet-class&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 3">            </span>org.springframework.web.servlet.DispatcherServlet<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;/servlet-class&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">&lt;/servlet&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">&lt;!-- 报表URL，PDF格式 --&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">&lt;servlet-mapping&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;servlet-name&gt;mywebapp&lt;/servlet-name&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;url-pattern&gt;*.pdf&lt;/url-pattern&gt;<span style="mso-tab-count: 2">        </span><o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>&lt;/servlet-mapping&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>&lt;!-- 报表请求URL，Excel格式 --&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>&lt;servlet-mapping&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;servlet-name&gt;mywebapp&lt;/servlet-name&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>&lt;url-pattern&gt;*.xls&lt;/url-pattern&gt;<span style="mso-tab-count: 2">        </span><o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>&lt;/servlet-mapping&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>注意：此两处定义将所有.pdf和.xls后缀的URL纳入Spring MVC的<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<o:p>
								<font face="Times New Roman"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt">
				<font size="2">
						<span lang="EN-US" style="mso-fareast-font-family: 'Times New Roman'">
								<span style="mso-list: Ignore">4、<span style="FONT: 7pt 'Times New Roman'">  </span></span>
						</span>
						<font face="Times New Roman">
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在</span>
								<span lang="EN-US">mywebapp-servlet.xml</span>
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中定义请求</span>
								<span lang="EN-US">URL</span>
								<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">映射</span>
								<span lang="EN-US">
										<o:p>
										</o:p>
								</span>
						</font>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">&lt;bean id="scureUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: 3pt">
				<font face="Times New Roman">
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&lt;prop key="/showmysamplerpt_inpdf.pdf"&gt;MyRptController&lt;/prop&gt; &lt;!</span>
						<span lang="EN-US" style="FONT-SIZE: 10pt; mso-ascii-font-family: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">—</span>
						<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">将得到<span lang="EN-US">PDF格式的报表 </span></span>
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Wingdings; mso-ascii-font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-char-type: symbol; mso-symbol-font-family: Wingdings">
								<span style="mso-char-type: symbol; mso-symbol-font-family: Wingdings">à</span>
						</span>
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
								<o:p>
								</o:p>
						</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: 3pt">
				<font face="Times New Roman">
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">&lt;prop key="/showmysamplerpt_inxls.xls"&gt;MyRptController&lt;/prop&gt; &lt;!</span>
						<span lang="EN-US" style="FONT-SIZE: 10pt; mso-ascii-font-family: 宋体; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">—</span>
						<span style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">将得到<span lang="EN-US">Excel格式的报表 </span></span>
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Wingdings; mso-ascii-font-family: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体; mso-char-type: symbol; mso-symbol-font-family: Wingdings">
								<span style="mso-char-type: symbol; mso-symbol-font-family: Wingdings">à</span>
						</span>
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
								<o:p>
								</o:p>
						</span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 39pt; TEXT-INDENT: 3pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<o:p>
								<font face="Times New Roman"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">&lt;/bean&gt;<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<o:p>
								<font face="Times New Roman"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 18pt; TEXT-INDENT: -18pt; mso-list: l0 level1 lfo1; tab-stops: list 18.0pt">
				<font face="Times New Roman">
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
								<span style="mso-list: Ignore">5、<span style="FONT: 7pt 'Times New Roman'"><font size="2">  </font></span></span>
						</span>
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">MyRptController的实现<o:p></o:p></span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 18pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<font face="Times New Roman">
						<b>
								<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">public</span>
						</b>
						<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
								<b>class</b> MyRptController <b>extends</b> AbstractController {<o:p></o:p></span>
				</font>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>@Override<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>
								<span style="mso-tab-count: 1">    </span>
								<b>protected</b> ModelAndView handleRequestInternal(HttpServletRequest request,<span style="mso-tab-count: 1">   </span>HttpServletResponse response) <b>throws</b> Exception {<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>
								<span style="mso-tab-count: 1">    </span>
								<span style="BACKGROUND: silver; mso-highlight: silver">String</span> uri = request.getRequestURI();<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>
								<span style="mso-tab-count: 1">    </span>
								<span style="BACKGROUND: silver; mso-highlight: silver">String</span> format = uri.substring(uri.indexOf(".") + 1); //取得URL后缀<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<o:p>
								<font face="Times New Roman"> </font>
						</o:p>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>
								<span style="mso-tab-count: 1">    </span>Map model = <b>new</b> HashMap();<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 3">            </span>model.put("datasource", getApplicationContext().getBean("myDataSource"));<span style="mso-spacerun: yes">  </span>//数据源<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>
								<span style="mso-tab-count: 1">    </span>model.put("format", format); //根据URL后缀确定格式<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>
								<o:p>
								</o:p>
						</font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 2">        </span>
								<span style="mso-tab-count: 1">    </span>
								<b>return</b>
								<b>new</b> ModelAndView("mysamplerpt", model);<span style="mso-spacerun: yes">  </span>//视图名称请参考第二步中的定义<o:p></o:p></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align="left">
				<span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-font-kerning: 0pt; mso-bidi-font-family: 宋体">
						<font face="Times New Roman">
								<span style="mso-tab-count: 1">    </span>
								<span style="mso-tab-count: 1">    </span>}<br /><br />以上是个人实际编程中的一点儿经验，望各位大侠指教。</font>
				</span>
		</p>
<img src ="http://www.blogjava.net/xxl36/aggbug/75488.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xxl36/" target="_blank">xxl36</a> 2006-10-16 21:35 <a href="http://www.blogjava.net/xxl36/archive/2006/10/16/75488.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>今天解决了迈拓噪音问题</title><link>http://www.blogjava.net/xxl36/archive/2006/08/20/64678.html</link><dc:creator>xxl36</dc:creator><author>xxl36</author><pubDate>Sun, 20 Aug 2006 15:44:00 GMT</pubDate><guid>http://www.blogjava.net/xxl36/archive/2006/08/20/64678.html</guid><wfw:comment>http://www.blogjava.net/xxl36/comments/64678.html</wfw:comment><comments>http://www.blogjava.net/xxl36/archive/2006/08/20/64678.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xxl36/comments/commentRss/64678.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xxl36/services/trackbacks/64678.html</trackback:ping><description><![CDATA[上个月，我的硬盘（迈拓金钻十160G）不知道那一天噪音突然变大了，找遍了迈拓网站也没找到降噪工具，迈拓的嗓门那个粗犷啊！快吵S人了，隐约觉得硬盘快要Over了，后悔买了迈拓，以前一直买希捷的，希捷的就算有的声音大，也很清脆，上次本来买ST，买了一块发现有异响，后换成盒装迈拓，再后来在网上看到有人说散装ST水货很多，估计那块就是，早知到换行货盒装的ST。<br /><br />今天突然看到MicroComputer上面介绍的工具，叫HDDScan，好像又是Russia的，下载了一个试试，还挺好用，发现原来是硬盘降噪参数被修改掉了，改回了出厂值，^_^，世界又恢复了宁静！呵呵<img src ="http://www.blogjava.net/xxl36/aggbug/64678.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xxl36/" target="_blank">xxl36</a> 2006-08-20 23:44 <a href="http://www.blogjava.net/xxl36/archive/2006/08/20/64678.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>所有的jasperreports报表内置查询又全部改回SQL去了，靠！</title><link>http://www.blogjava.net/xxl36/archive/2006/08/14/63538.html</link><dc:creator>xxl36</dc:creator><author>xxl36</author><pubDate>Mon, 14 Aug 2006 13:48:00 GMT</pubDate><guid>http://www.blogjava.net/xxl36/archive/2006/08/14/63538.html</guid><wfw:comment>http://www.blogjava.net/xxl36/comments/63538.html</wfw:comment><comments>http://www.blogjava.net/xxl36/archive/2006/08/14/63538.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xxl36/comments/commentRss/63538.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xxl36/services/trackbacks/63538.html</trackback:ping><description><![CDATA[
		<p>Spring + Hibernate + jasperreports，在Jasper中嵌入HQL查询，使用Spring的jasperreports视图解析器预览报表，在Model中应该传递那些参数给视图解析器？就传一个Hibernate Session好像不行，再传一个JDBC Connection似乎就行了，但总觉得不应该需要JDBC Connection的，而且返回了ModelAndView之后，就失去控制了，那个Hibernate Session也就没法释放了，一气之下所有报表统统改为原生SQL，只要传一个JDBC Connection就行了，各位大侠请指教，不甚感谢！</p>
<img src ="http://www.blogjava.net/xxl36/aggbug/63538.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xxl36/" target="_blank">xxl36</a> 2006-08-14 21:48 <a href="http://www.blogjava.net/xxl36/archive/2006/08/14/63538.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>终于搞好了jasperreports输出PDF中文字体问题，总不能全让我用宋体吧?!</title><link>http://www.blogjava.net/xxl36/archive/2006/08/10/62882.html</link><dc:creator>xxl36</dc:creator><author>xxl36</author><pubDate>Thu, 10 Aug 2006 15:17:00 GMT</pubDate><guid>http://www.blogjava.net/xxl36/archive/2006/08/10/62882.html</guid><wfw:comment>http://www.blogjava.net/xxl36/comments/62882.html</wfw:comment><comments>http://www.blogjava.net/xxl36/archive/2006/08/10/62882.html#Feedback</comments><slash:comments>7</slash:comments><wfw:commentRss>http://www.blogjava.net/xxl36/comments/commentRss/62882.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xxl36/services/trackbacks/62882.html</trackback:ping><description><![CDATA[
		<p>环境：Spring MVC + Spring + Hibernate，jasperreports<br /><br />上午刚刚解决了jasperreports中使用HQL的问题：原来除了要向Spring 的jasperreports视图解析器传递Hibernate Session之外，还要向其传递一DataSource，难道从Hibernate会话中找不到DataSource么，有些迷惑了。<br /><br />下午忽然又遇到了输出PDF的中文字体问题，本来以为早就不是问题了，却发现除了宋体外其他字体无法使用，搞到晚上9点才发现，报表的根目录原来是JavaSource —— 好在我突然想到views.properties文件（报表视图解析器的配置文件）在这儿，才试了一试，将几个 ttf 文件移到此处，啊哈！果然奏效。<br /><br />接下来可以大肆画表了！</p>
<img src ="http://www.blogjava.net/xxl36/aggbug/62882.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xxl36/" target="_blank">xxl36</a> 2006-08-10 23:17 <a href="http://www.blogjava.net/xxl36/archive/2006/08/10/62882.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>