锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲福利视频导航,国产亚洲精品美女久久久 ,亚洲一区二区三区免费在线观看http://m.tkk7.com/hwpok/category/35138.htmlDEBUG - 澶╅亾閰嫟zh-cnTue, 31 Jan 2012 15:37:04 GMTTue, 31 Jan 2012 15:37:04 GMT60STRUTS2 鍥介檯鍖?/title><link>http://m.tkk7.com/hwpok/archive/2012/01/31/369072.html</link><dc:creator>鎯犱竾楣?/dc:creator><author>鎯犱竾楣?/author><pubDate>Tue, 31 Jan 2012 05:21:00 GMT</pubDate><guid>http://m.tkk7.com/hwpok/archive/2012/01/31/369072.html</guid><wfw:comment>http://m.tkk7.com/hwpok/comments/369072.html</wfw:comment><comments>http://m.tkk7.com/hwpok/archive/2012/01/31/369072.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hwpok/comments/commentRss/369072.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hwpok/services/trackbacks/369072.html</trackback:ping><description><![CDATA[<div>1.榪囨護鍣? <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /><span style="color: #0000ff">package</span><span style="color: #000000"> com.i18n;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.io.IOException;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.Filter;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.FilterChain;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.FilterConfig;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.ServletException;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.ServletRequest;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.ServletResponse;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.http.HttpServletRequest;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> I18nFilter </span><span style="color: #0000ff">implements</span><span style="color: #000000"> Filter<br /><img id="Codehighlighter1_349_797_Open_Image" onclick="this.style.display='none'; Codehighlighter1_349_797_Open_Text.style.display='none'; Codehighlighter1_349_797_Closed_Image.style.display='inline'; Codehighlighter1_349_797_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_349_797_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_349_797_Closed_Text.style.display='none'; Codehighlighter1_349_797_Open_Image.style.display='inline'; Codehighlighter1_349_797_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_349_797_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_349_797_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />    <br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> destroy()<br /><img id="Codehighlighter1_386_387_Open_Image" onclick="this.style.display='none'; Codehighlighter1_386_387_Open_Text.style.display='none'; Codehighlighter1_386_387_Closed_Image.style.display='inline'; Codehighlighter1_386_387_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_386_387_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_386_387_Closed_Text.style.display='none'; Codehighlighter1_386_387_Open_Image.style.display='inline'; Codehighlighter1_386_387_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_386_387_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_386_387_Open_Text"><span style="color: #000000">{}</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />    <br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> doFilter(ServletRequest req, ServletResponse resp,<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />            FilterChain filterChain) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> IOException, ServletException<br /><img id="Codehighlighter1_539_719_Open_Image" onclick="this.style.display='none'; Codehighlighter1_539_719_Open_Text.style.display='none'; Codehighlighter1_539_719_Closed_Image.style.display='inline'; Codehighlighter1_539_719_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_539_719_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_539_719_Closed_Text.style.display='none'; Codehighlighter1_539_719_Open_Image.style.display='inline'; Codehighlighter1_539_719_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_539_719_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_539_719_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />        HttpServletRequest request </span><span style="color: #000000">=</span><span style="color: #000000"> (HttpServletRequest) req;<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />        MyRequestWrapper wrapper </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> MyRequestWrapper(request);<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />        filterChain.doFilter(wrapper, resp);<br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" />    }</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />    <br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> init(FilterConfig arg0) </span><span style="color: #0000ff">throws</span><span style="color: #000000"> ServletException<br /><img id="Codehighlighter1_794_795_Open_Image" onclick="this.style.display='none'; Codehighlighter1_794_795_Open_Text.style.display='none'; Codehighlighter1_794_795_Closed_Image.style.display='inline'; Codehighlighter1_794_795_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_794_795_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_794_795_Closed_Text.style.display='none'; Codehighlighter1_794_795_Open_Image.style.display='inline'; Codehighlighter1_794_795_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_794_795_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_794_795_Open_Text"><span style="color: #000000">{}</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" /></span></div><br /><br />2.榪囨護鍣ㄩ厤緗?br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /><span style="color: #0000ff"><</span><span style="color: #800000">filter</span><span style="color: #0000ff">></span><span style="color: #000000">   <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">filter-name</span><span style="color: #0000ff">></span><span style="color: #000000">i18nFilter</span><span style="color: #0000ff"></</span><span style="color: #800000">filter-name</span><span style="color: #0000ff">></span><span style="color: #000000">   <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">filter-class</span><span style="color: #0000ff">></span><span style="color: #000000">com.xxx.common.filter.I18nFilter</span><span style="color: #0000ff"></</span><span style="color: #800000">filter-class</span><span style="color: #0000ff">></span><span style="color: #000000">   <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">filter</span><span style="color: #0000ff">></span><span style="color: #000000">   <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">filter-mapping</span><span style="color: #0000ff">></span><span style="color: #000000">   <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">filter-name</span><span style="color: #0000ff">></span><span style="color: #000000">i18nFilter</span><span style="color: #0000ff"></</span><span style="color: #800000">filter-name</span><span style="color: #0000ff">></span><span style="color: #000000">   <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">url-pattern</span><span style="color: #0000ff">></span><span style="color: #000000">*</span><span style="color: #0000ff"></</span><span style="color: #800000">url-pattern</span><span style="color: #0000ff">></span><span style="color: #000000">   <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" />   </span><span style="color: #0000ff"></</span><span style="color: #800000">filter-mapping</span><span style="color: #0000ff">></span><span style="color: #000000">  </span></div><br /><br />3.鍖呰綾?br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /><span style="color: #0000ff">package</span><span style="color: #000000"> com.i18n;<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.util.Locale;<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.http.HttpServletRequest;<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.http.HttpServletRequestWrapper;<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.http.HttpSession;<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> MyRequestWrapper </span><span style="color: #0000ff">extends</span><span style="color: #000000"> HttpServletRequestWrapper<br /><img id="Codehighlighter1_248_1006_Open_Image" onclick="this.style.display='none'; Codehighlighter1_248_1006_Open_Text.style.display='none'; Codehighlighter1_248_1006_Closed_Image.style.display='inline'; Codehighlighter1_248_1006_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_248_1006_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_248_1006_Closed_Text.style.display='none'; Codehighlighter1_248_1006_Open_Image.style.display='inline'; Codehighlighter1_248_1006_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ContractedBlock.gif"></span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_248_1006_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_248_1006_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">private</span><span style="color: #000000"> Locale locale </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> MyRequestWrapper(HttpServletRequest request)<br /><img id="Codehighlighter1_354_508_Open_Image" onclick="this.style.display='none'; Codehighlighter1_354_508_Open_Text.style.display='none'; Codehighlighter1_354_508_Closed_Image.style.display='inline'; Codehighlighter1_354_508_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_354_508_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_354_508_Closed_Text.style.display='none'; Codehighlighter1_354_508_Open_Image.style.display='inline'; Codehighlighter1_354_508_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_354_508_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_354_508_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />        </span><span style="color: #0000ff">super</span><span style="color: #000000">(request);<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />        HttpSession session </span><span style="color: #000000">=</span><span style="color: #000000"> request.getSession();<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />        locale </span><span style="color: #000000">=</span><span style="color: #000000"> (Locale) session.getAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">WW_TRANS_I18N_LOCALE</span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />    }</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> String getHeader(String name)<br /><img id="Codehighlighter1_560_843_Open_Image" onclick="this.style.display='none'; Codehighlighter1_560_843_Open_Text.style.display='none'; Codehighlighter1_560_843_Closed_Image.style.display='inline'; Codehighlighter1_560_843_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_560_843_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_560_843_Closed_Text.style.display='none'; Codehighlighter1_560_843_Open_Image.style.display='inline'; Codehighlighter1_560_843_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_560_843_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_560_843_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />        String value </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">super</span><span style="color: #000000">.getHeader(name);<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (</span><span style="color: #000000">"</span><span style="color: #000000">Accept-Language</span><span style="color: #000000">"</span><span style="color: #000000">.equals(name) </span><span style="color: #000000">&&</span><span style="color: #000000"> locale </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /><img id="Codehighlighter1_678_815_Open_Image" onclick="this.style.display='none'; Codehighlighter1_678_815_Open_Text.style.display='none'; Codehighlighter1_678_815_Closed_Image.style.display='inline'; Codehighlighter1_678_815_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_678_815_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_678_815_Closed_Text.style.display='none'; Codehighlighter1_678_815_Open_Image.style.display='inline'; Codehighlighter1_678_815_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_678_815_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_678_815_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />            value </span><span style="color: #000000">=</span><span style="color: #000000"> locale.getLanguage() </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">_</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> locale.getCountry()<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />                    </span><span style="color: #000000">+</span><span style="color: #000000"> value.substring(</span><span style="color: #000000">6</span><span style="color: #000000">, value.length());<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />        }</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> value;<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />    }</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> Locale getLocale()<br /><img id="Codehighlighter1_884_999_Open_Image" onclick="this.style.display='none'; Codehighlighter1_884_999_Open_Text.style.display='none'; Codehighlighter1_884_999_Closed_Image.style.display='inline'; Codehighlighter1_884_999_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_884_999_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_884_999_Closed_Text.style.display='none'; Codehighlighter1_884_999_Open_Image.style.display='inline'; Codehighlighter1_884_999_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_884_999_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_884_999_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />        </span><span style="color: #0000ff">if</span><span style="color: #000000"> (locale </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">)<br /><img id="Codehighlighter1_922_959_Open_Image" onclick="this.style.display='none'; Codehighlighter1_922_959_Open_Text.style.display='none'; Codehighlighter1_922_959_Closed_Image.style.display='inline'; Codehighlighter1_922_959_Closed_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_922_959_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_922_959_Closed_Text.style.display='none'; Codehighlighter1_922_959_Open_Image.style.display='inline'; Codehighlighter1_922_959_Open_Text.style.display='inline';" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_922_959_Closed_Text"><img alt="" src="http://m.tkk7.com/Images/dot.gif" /></span><span id="Codehighlighter1_922_959_Open_Text"><span style="color: #000000">{<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />            </span><span style="color: #0000ff">return</span><span style="color: #000000"> locale;<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />        }</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #0000ff">super</span><span style="color: #000000">.getLocale();<br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif" />    }</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/InBlock.gif" />    <br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/ExpandedBlockEnd.gif" />}</span></span><span style="color: #000000"><br /><img alt="" align="top" src="http://m.tkk7.com/Images/OutliningIndicators/None.gif" /></span></div></div><img src ="http://m.tkk7.com/hwpok/aggbug/369072.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hwpok/" target="_blank">鎯犱竾楣?/a> 2012-01-31 13:21 <a href="http://m.tkk7.com/hwpok/archive/2012/01/31/369072.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Myeclipse涓嬌鐢ㄥ浗闄呭寲璧勬簮鏂囦歡鐨勬彃浠?/title><link>http://m.tkk7.com/hwpok/archive/2012/01/31/369059.html</link><dc:creator>鎯犱竾楣?/dc:creator><author>鎯犱竾楣?/author><pubDate>Tue, 31 Jan 2012 03:01:00 GMT</pubDate><guid>http://m.tkk7.com/hwpok/archive/2012/01/31/369059.html</guid><wfw:comment>http://m.tkk7.com/hwpok/comments/369059.html</wfw:comment><comments>http://m.tkk7.com/hwpok/archive/2012/01/31/369059.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hwpok/comments/commentRss/369059.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hwpok/services/trackbacks/369059.html</trackback:ping><description><![CDATA[<div id="kyswme2" class="post"> <div id="uycu2wm" class="postcontent">鍦╩yeclipse鐨刪elp鑿滃崟涓?<br />鐐瑰嚮sowftware update 鑿滃崟, <br />鍐嶇偣find and install <br />閫夋嫨seach for new feathures to install ,鐐瑰嚮next <br />鐐瑰嚮鍙寵竟絎竴涓篃灝辨槸 new remote site閭d釜鎸夐敭, 闅忎究涔辮緭鍏ヤ竴涓悕瀛椼傜綉鍧灝辮緭鍏ヤ笅闈㈣繖涓?<br />榪欐槸緗戝潃 http://propedit.sourceforge.jp/eclipse/updates/ <br />鎴? window-->preferences-->content types-->java properties file<br />鏀逛負GBK鎴朥TF-8 , 鐒跺悗update, 紜畾. <br />濡傛灉鍐嶆湁闂, 鍒欐壘鍒?.properties鐨勮祫婧愭枃浠訛紝鎶婄紪杈戝櫒鏀逛負PropertiesEditor. </div></div><img src ="http://m.tkk7.com/hwpok/aggbug/369059.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hwpok/" target="_blank">鎯犱竾楣?/a> 2012-01-31 11:01 <a href="http://m.tkk7.com/hwpok/archive/2012/01/31/369059.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>struts 2 request response 鐭ヨ鏈綆鍗曠殑鍔炴硶http://m.tkk7.com/hwpok/archive/2010/10/27/336260.html鎯犱竾楣?/dc:creator>鎯犱竾楣?/author>Wed, 27 Oct 2010 03:14:00 GMThttp://m.tkk7.com/hwpok/archive/2010/10/27/336260.htmlhttp://m.tkk7.com/hwpok/comments/336260.htmlhttp://m.tkk7.com/hwpok/archive/2010/10/27/336260.html#Feedback0http://m.tkk7.com/hwpok/comments/commentRss/336260.htmlhttp://m.tkk7.com/hwpok/services/trackbacks/336260.html

]]>
Struts 2 鑷畾涔夌被鍨嬭漿鎹㈠櫒http://m.tkk7.com/hwpok/archive/2009/03/26/262187.html鎯犱竾楣?/dc:creator>鎯犱竾楣?/author>Thu, 26 Mar 2009 10:23:00 GMThttp://m.tkk7.com/hwpok/archive/2009/03/26/262187.htmlhttp://m.tkk7.com/hwpok/comments/262187.htmlhttp://m.tkk7.com/hwpok/archive/2009/03/26/262187.html#Feedback0http://m.tkk7.com/hwpok/comments/commentRss/262187.htmlhttp://m.tkk7.com/hwpok/services/trackbacks/262187.htmlpackage org.rw.commons.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

import org.apache.struts2.util.StrutsTypeConverter;

/**
 * 
 * <p>
 * Title:[鑷畾涔夋棩鏈熻漿鍖栫被]
 * </p>
 * <p>
 * Description: [鎶婂瓧絎︿覆杞寲鎴愭棩鏈熸垨鎶婃棩鏈熻漿鍖栨垚瀛楃涓瞉
 * </p>
 * <p>
 * Copyright 2009 Huyvanpull Co., Ltd.
 * </p>
 * <p>
 * All right reserved.
 * </p>
 * 
 * 
@version 1.0
 * 
 * <p>
 * Created by [Huyvanpull] [Mar 26, 2009]
 * </p>
 * <p>
 * Midified by [淇敼浜篯 [淇敼鏃墮棿]
 * </p>
 * 
 
*/

public class DateConverter extends StrutsTypeConverter
{
    
    
/** 榛樿鐨勬棩鏈熻漿鎹㈡牸寮?nbsp;*/
    
public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm";
    
    
/** 鍙帴鍙楃殑鏃ユ湡鏍煎紡 */
    
public static final DateFormat[] ACCEPT_DATE_FORMATS = {
            
new SimpleDateFormat(DEFAULT_DATE_FORMAT),
            
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"),
            
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS") }
;
    
    @SuppressWarnings(
"unchecked")
    
public Object convertFromString(Map context, String[] values, Class toClass)
    
{
        
if (values[0== null || values[0].trim().equals(""))
        
{
            
return null;
        }

        
/** 灝濊瘯浠庨粯璁ゅ煎紑濮嬭漿鎹?nbsp;*/
        
for (DateFormat format : ACCEPT_DATE_FORMATS)
        
{
            
try
            
{
                
return format.parse(values[0]);
            }

            
catch (Exception e)
            
{}
        }

        
return null;
    }

    
    @SuppressWarnings(
"unchecked")
    
public String convertToString(Map context, Object o)
    
{
        
if (o instanceof Date)
        
{
            
try
            
{
                
return ACCEPT_DATE_FORMATS[0].format((Date) o);
            }

            
catch (RuntimeException e)
            
{
                
return "";
            }

        }

        
return "";
    }

}



灞閮ㄩ厤緗柟娉?
QueryDataAction-conversion.properties
startTime = org.rw.commons.util.DateConverter
endTime = org.rw.commons.util.DateConverter

]]>
Struts2 鑷畾涔夋嫤鎴櫒 浜屽垯http://m.tkk7.com/hwpok/archive/2008/10/28/237015.html鎯犱竾楣?/dc:creator>鎯犱竾楣?/author>Tue, 28 Oct 2008 01:26:00 GMThttp://m.tkk7.com/hwpok/archive/2008/10/28/237015.htmlhttp://m.tkk7.com/hwpok/comments/237015.htmlhttp://m.tkk7.com/hwpok/archive/2008/10/28/237015.html#Feedback0http://m.tkk7.com/hwpok/comments/commentRss/237015.htmlhttp://m.tkk7.com/hwpok/services/trackbacks/237015.html
package org.roadway.lm.util;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * 
@author Huyvanpull
 * 
 
*/
@SuppressWarnings(
"serial")
public class ExceptionInterceptor extends AbstractInterceptor
{
    
private Logger logger = Logger.getLogger(ExceptionInterceptor.class);
    
    
private String interceptorName;
    
    @Override
    
public String intercept(ActionInvocation invocation) throws Exception
    {
        
this.logger.debug("榪涘叆" + this.getInterceptorName());
        String result 
= null;
        
try
        {
            result 
= invocation.invoke();
        }
        
catch (Exception exception)
        {
            
this.logger.error(this.getExceptionInfo(exception));
            
throw exception;
        }
        
return result;
    }
    
    
private String getExceptionInfo(Exception exception)
    {
        StringBuffer bExceptionInfo 
= new StringBuffer();
        bExceptionInfo.append(exception.toString());
        bExceptionInfo.append(
"\n\t");
        
        StackTraceElement[] stackTraceElements 
= exception.getStackTrace();
        
for (int i = 0; i < stackTraceElements.length; i++)
        {
            bExceptionInfo.append(
"[" + this.getInterceptorName() + ""
                    
+ stackTraceElements[i].toString() + "\n\t");
        }
        
return bExceptionInfo.toString();
    }
    
    
public String getInterceptorName()
    {
        
return interceptorName;
    }
    
    
public void setInterceptorName(String interceptorName)
    {
        
this.interceptorName = interceptorName;
    }
    
}

鐧婚檰媯鏌ユ嫤鎴櫒:
package org.roadway.lm.util;

import java.util.Map;

import org.apache.log4j.Logger;
import org.roadway.lm.po.UserInfo;
import org.roadway.lm.user.action.UserInfoAction;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * 
@author tom_hui
 * 
 
*/
@SuppressWarnings(
"serial")
public class LoginCheckerInterceptor extends AbstractInterceptor
{
    
private String userSessionKey = "userInfo";
    
    
private String isCheckLogin   = "true";
    
    
private Logger logger         = Logger
                                          .getLogger(LoginCheckerInterceptor.
class);
    
    @SuppressWarnings(
"unchecked")
    
public String intercept(ActionInvocation actionInvocation) throws Exception
    {
        Object action 
= actionInvocation.getAction();
        
        
/** 濡傛灉璁劇疆鎷︽埅鍣ㄤ笉媯鏌ョ櫥闄?nbsp;*/
        
if ("false".equalsIgnoreCase(isCheckLogin))
        {
            actionInvocation.invoke();
        }
        
/** 濡傛灉鏄櫥闄咥ction,鏀懼叾閫氳 */
        
if (action instanceof UserInfoAction)
        {
            
this.logger.info("鐧婚檰Action:" + UserInfoAction.class.getName());
            
return actionInvocation.invoke();
        }
        
        
/** 浠巗ession涓緱鍒癠serInfo鐨勪俊鎭?nbsp;*/
        Map session 
= actionInvocation.getInvocationContext().getSession();
        UserInfo userInfo 
= (UserInfo) session.get(userSessionKey);
        
        
/** 濡傛灉Session涓瓨鍦║serInfo瀵硅薄 */
        
if (userInfo != null)
        {
            
this.logger.info("鐢ㄦ埛" + userInfo.getUserName() + "("
                    
+ userInfo.getUserId() + ")鐧婚檰浜?");
            
return actionInvocation.invoke();
            
        }
        
/** 濡傛灉娌℃湁鐧婚檰 */
        
else
        {
            
return Action.LOGIN;
        }
    }
    
    
public String getUserSessionKey()
    {
        
return userSessionKey;
    }
    
    
public void setUserSessionKey(String userSessionKey)
    {
        
this.userSessionKey = userSessionKey;
    }
    
    
public String getIsCheckLogin()
    {
        
return isCheckLogin;
    }
    
    
public void setIsCheckLogin(String isCheckLogin)
    {
        
this.isCheckLogin = isCheckLogin;
    }
    
}




]]>
濡備綍閰嶇疆struts2鎷︽埅鍣?/title><link>http://m.tkk7.com/hwpok/archive/2008/10/13/234005.html</link><dc:creator>鎯犱竾楣?/dc:creator><author>鎯犱竾楣?/author><pubDate>Mon, 13 Oct 2008 06:32:00 GMT</pubDate><guid>http://m.tkk7.com/hwpok/archive/2008/10/13/234005.html</guid><wfw:comment>http://m.tkk7.com/hwpok/comments/234005.html</wfw:comment><comments>http://m.tkk7.com/hwpok/archive/2008/10/13/234005.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hwpok/comments/commentRss/234005.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hwpok/services/trackbacks/234005.html</trackback:ping><description><![CDATA[<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000ff;"><?</span><span style="color: #ff00ff;">xml version="1.0" encoding="UTF-8" </span><span style="color: #0000ff;">?></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"><!</span><span style="color: #ff00ff;">DOCTYPE struts PUBLIC<br />     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"<br />     "http://struts.apache.org/dtds/struts-2.0.dtd"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"><</span><span style="color: #800000;">struts</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.devMode"</span><span style="color: #ff0000;"> value</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.i18n.reload"</span><span style="color: #ff0000;"> value</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.configuration.xml.reload"</span><span style="color: #ff0000;"> value</span><span style="color: #0000ff;">="true"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.i18n.encoding"</span><span style="color: #ff0000;"> value</span><span style="color: #0000ff;">="gb2312"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.custom.i18n.resources"</span><span style="color: #ff0000;"><br />         value</span><span style="color: #0000ff;">="messageResource"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.action.extension"</span><span style="color: #ff0000;"> value</span><span style="color: #0000ff;">="jspa"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.multipart.saveDir"</span><span style="color: #ff0000;"> value</span><span style="color: #0000ff;">="/tmp"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.multipart.maxSize"</span><span style="color: #ff0000;"> value</span><span style="color: #0000ff;">="10000000"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">constant </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="struts.ui.theme"</span><span style="color: #ff0000;"> value</span><span style="color: #0000ff;">="simple"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">package </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="default"</span><span style="color: #ff0000;"> extends</span><span style="color: #0000ff;">="struts-default"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"><</span><span style="color: #800000;">interceptors</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"><</span><span style="color: #800000;">interceptor </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="exceptionInterceptor"</span><span style="color: #ff0000;"><br />                 class</span><span style="color: #0000ff;">="org.roadway.wisp.zd.util.ExceptionInterceptor"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />                 </span><span style="color: #0000ff;"><</span><span style="color: #800000;">param </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="interceptorName"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />                     self-interceptor<br />                 </span><span style="color: #0000ff;"></</span><span style="color: #800000;">param</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"></</span><span style="color: #800000;">interceptor</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"><</span><span style="color: #800000;">interceptor-stack </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="myStack"</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />                 </span><span style="color: #0000ff;"><</span><span style="color: #800000;">interceptor-ref </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="defaultStack"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />                 </span><span style="color: #0000ff;"><</span><span style="color: #800000;">interceptor-ref </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="exceptionInterceptor"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"></</span><span style="color: #800000;">interceptor-stack</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"></</span><span style="color: #800000;">interceptors</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"><</span><span style="color: #800000;">default-interceptor-ref </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="myStack"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"><</span><span style="color: #800000;">global-exception-mappings</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />             </span><span style="color: #0000ff;"><</span><span style="color: #800000;">exception-mapping </span><span style="color: #ff0000;">result</span><span style="color: #0000ff;">="error"</span><span style="color: #ff0000;"><br />                 exception</span><span style="color: #0000ff;">="java.lang.Exception"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br />         </span><span style="color: #0000ff;"></</span><span style="color: #800000;">global-exception-mappings</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"></</span><span style="color: #800000;">package</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;"><</span><span style="color: #800000;">include </span><span style="color: #ff0000;">file</span><span style="color: #0000ff;">="register.xml"</span><span style="color: #ff0000;"> </span><span style="color: #0000ff;">/></span><span style="color: #000000;"><br /> </span><span style="color: #0000ff;"></</span><span style="color: #800000;">struts</span><span style="color: #0000ff;">></span><span style="color: #000000;"><br /> </span></div> <img src ="http://m.tkk7.com/hwpok/aggbug/234005.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hwpok/" target="_blank">鎯犱竾楣?/a> 2008-10-13 14:32 <a href="http://m.tkk7.com/hwpok/archive/2008/10/13/234005.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Struts2 鑷畾涔夋嫤鎴櫒http://m.tkk7.com/hwpok/archive/2008/10/13/234004.html鎯犱竾楣?/dc:creator>鎯犱竾楣?/author>Mon, 13 Oct 2008 06:29:00 GMThttp://m.tkk7.com/hwpok/archive/2008/10/13/234004.htmlhttp://m.tkk7.com/hwpok/comments/234004.htmlhttp://m.tkk7.com/hwpok/archive/2008/10/13/234004.html#Feedback0http://m.tkk7.com/hwpok/comments/commentRss/234004.htmlhttp://m.tkk7.com/hwpok/services/trackbacks/234004.htmlpackage org.roadway.wisp.zd.util;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

/**
 * 
@author Huyvanpull
 * 
 
*/
@SuppressWarnings(
"serial")
public class ExceptionInterceptor extends AbstractInterceptor
{
    
private Logger logger = Logger.getLogger(ExceptionInterceptor.class);
    
    
private String interceptorName;
    
    @Override
    
public String intercept(ActionInvocation invocation) throws Exception
    {
        
this.logger.debug("榪涘叆" + this.getInterceptorName());
        String result 
= null;
        
try
        {
            result 
= invocation.invoke();
        }
        
catch (Exception exception)
        {
            
this.logger.error(this.getExceptionInfo(exception));
            
throw exception;
        }
        
return result;
    }
    
    
private String getExceptionInfo(Exception exception)
    {
        StringBuffer bExceptionInfo 
= new StringBuffer();
        bExceptionInfo.append(exception.toString());
        bExceptionInfo.append(
"\n\t");
        
        StackTraceElement[] stackTraceElements 
= exception.getStackTrace();
        
for (int i = 0; i < stackTraceElements.length; i++)
        {
            bExceptionInfo.append(
"[" + this.getInterceptorName() + ""
                    
+ stackTraceElements[i].toString() + "\n\t");
        }
        
return bExceptionInfo.toString();
    }
    
    
public String getInterceptorName()
    {
        
return interceptorName;
    }
    
    
public void setInterceptorName(String interceptorName)
    {
        
this.interceptorName = interceptorName;
    }
    
}


]]>
鍏充簬FreeMarkerhttp://m.tkk7.com/hwpok/archive/2008/10/12/233908.html鎯犱竾楣?/dc:creator>鎯犱竾楣?/author>Sun, 12 Oct 2008 13:49:00 GMThttp://m.tkk7.com/hwpok/archive/2008/10/12/233908.htmlhttp://m.tkk7.com/hwpok/comments/233908.htmlhttp://m.tkk7.com/hwpok/archive/2008/10/12/233908.html#Feedback0http://m.tkk7.com/hwpok/comments/commentRss/233908.htmlhttp://m.tkk7.com/hwpok/services/trackbacks/233908.htmlFreeMarker鏄竴涓ā鐗堝紩鎿庯紝涓涓熀浜庢ā鐗堢敓鎴愭枃鏈緭鍑虹殑閫氱敤宸ュ叿錛屼嬌鐢ㄧ函Java緙栧啓銆侳reeMarker琚璁$敤鏉ョ敓鎴怘TML Web欏甸潰錛岀壒鍒槸鍩轟簬MVC妯″紡鐨勫簲鐢ㄧ▼搴忋侳reeMarker鏈変竴浜涚紪鎴愯兘鍔涳紝浣嗛氬父鎯呭喌涓嬬敤java紼嬪簭鍑嗗瑕佹樉紺虹殑鏁版嵁錛岀敱FreeMarker鐢熸垚欏甸潰錛岄氳繃妯$増鏄劇ず鍑嗗鐨勬暟鎹侳reeMarker涓嶆槸涓涓猈eb搴旂敤妗嗘灦錛岃屾洿閫傚悎浣滀負涓涓猈eb搴旂敤妗嗘灦鐨勪竴涓粍浠躲侳reeMarker涓庡鍣ㄦ棤鍏籌紝瀹冨茍涓嶇煡閬揌TTP鎴栬匰ervlet錛孎reeMarker鍚屾牱鍙互鐢ㄤ簬闈濿eb搴旂敤鐜銆侳reeMarker鏇撮傚悎Model2鐨勮鍥劇粍浠訛紝鍚屾牱鍙互鍦ㄦā鐗堜腑浣跨敤JSP鏍囪搴撱?

FreeMarker鐨勯氱敤鐩爣錛氳兘澶熺敓鎴愬悇縐嶆枃鏈紝HTML銆乆ML銆丷TF銆丣ava婧愪唬鐮佺瓑絳夛紱鏄撲簬宓屽叆錛岃交閲忕駭銆佷笉闇瑕丼ervlet鐜錛涙彃浠跺紡鐨勬ā鐗堣澆鍏ュ櫒錛屽彲浠ュ湪浠諱綍婧愯澆鍏ワ紝濡傛湰鍦版枃浠躲佹暟鎹簱絳夌瓑錛涙寜闇鐢熸垚鏂囨湰錛屼繚瀛樺埌鏈湴鏂囦歡銆佷綔涓篍mail鍙戦併佷粠Web搴旂敤紼嬪簭鍙戦佸畠榪斿洖鍒癢eb嫻忚鍣ㄣ?

寮哄ぇ鐨勬ā鐗堣璦錛氭墍鏈夊父鐢ㄧ殑鎸囦護錛宨nclude銆乮f/elseif/else銆佸驚鐜粨鏋勩傚湪妯℃澘涓垱寤哄拰鏀瑰彉鍙橀噺銆傚彲浠ヤ嬌鐢ㄥ鏉傜殑琛ㄨ揪寮忔潵浣跨敤鍊箋傚懡鍚嶇殑瀹忥紝鍙互鍏鋒湁浣嶇疆鍙傛暟鍜屽祵濂楀唴瀹廣傚悕瀛楃┖闂存湁鍔╀簬寤虹珛鍜岀淮鎶ゅ彲閲嶇敤鐨勫畯搴擄紝鎴栬呭皢涓涓ぇ鐨勫伐紼嬪垎涓鴻嫢騫蹭釜妯″潡錛岃屼笉蹇呮媴蹇冨懡鍚嶇殑鍐茬獊銆傝緭鍑鴻漿鎹㈠潡錛屽湪宓屽妯$増鐗囨柇鐢熸垚杈撳嚭鏃訛紝杞崲HTML杞箟銆佸帇緙┿佽娉曢珮浜瓑絳夈傘?

閫氱敤鐨勬暟鎹ā鍨嬶細FreeMarker涓嶆槸鐩存帴鍙嶆槧鍒癹ava瀵硅薄錛宩ava瀵硅薄閫氳繃鎻掍歡寮忓皝瑁咃紝浠ュ彉閲忕殑鏂瑰紡鍦ㄦā鐗堜腑灞曠ず銆備嬌鐢ㄦ娊璞$殑鏂瑰紡琛ㄧず瀵硅薄錛屼嬌鍏朵笉鍙楁妧鏈粏鑺傜殑鎵撴壈銆?

飦?鍦ㄦā鏉胯璦涓唴寤哄鐞嗗吀鍨媁eb 鐩稿叧浠誨姟錛堝HTML 杞箟錛夌殑緇撴瀯
飦?鑳藉闆嗘垚鍒癕odel2Web 搴旂敤妗嗘灦涓綔涓篔SP 鐨勬浛浠?
飦?鏀寔JSP 鏍囪搴?
飦?涓篗VC 妯″紡璁捐錛氬垎紱誨彲瑙嗗寲璁捐鍜屽簲鐢ㄧ▼搴忛昏緫錛涘垎紱婚〉闈㈣璁″憳鍜岀▼搴忓憳

5銆佹櫤鑳界殑鍥介檯鍖栧拰鏈湴鍖?
飦?瀛楃闆嗘櫤鑳藉寲錛堝唴閮ㄤ嬌鐢║NICODE錛?
飦?鏁板瓧鏍煎紡鏈湴鍖栨晱鎰?
飦?鏃ユ湡鍜屾椂闂存牸寮忔湰鍦板寲鏁忔劅
飦?闈濽S 瀛楃闆嗗彲浠ョ敤浣滄爣璇嗭紙濡傚彉閲忓悕錛?
飦?澶氱涓嶅悓璇█鐨勭浉鍚屾ā鏉?

6銆佸己澶х殑XML 澶勭悊鑳藉姏
飦?<#recurse> 鍜?lt;#visit>鎸囦護錛?.3 鐗堟湰錛夌敤浜庨掑綊閬嶅巻XML 鏍?
飦?鍦ㄦā鏉夸腑娓呮鍜岀洿瑙夌殑璁塊棶XML 瀵硅薄妯″瀷

FreeMarker鏄竴涓狫ava妯$増璇█錛屽畠鏄?JSP 鐨勭粷浣蟲浛浠f柟妗? FreeMarker鍦ㄤ綘鐨刟ction result鍙兘闇瑕佸湪Servlet瀹瑰櫒鐜浠ュ琚澆鍏ョ殑鎯呭喌涓嬫槸鐞嗘兂閫夋嫨. 渚嬪,濡傛灉浣犲笇鏈涘湪浣犵殑搴旂敤紼嬪簭涓敮鎸乸lugins,浣犲彲鑳戒細涔愭剰浣跨敤Freemarker錛屽洜涓洪偅鏍風殑璇漰lugins鍙互鏀寔灝嗘墍鏈夌殑action class鍜寁iew閮芥墦鍖呭埌涓涓粠classloader榪涜瑁呰澆鐨刯ar鏂囦歡閲岄潰.
鍏充簬FreeMarker鐨勬洿澶氫俊鎭紝璇瘋闂瓼reeMarker緗戠珯.

FreeMarker涓嶸elocity闈炲父鐩鎬技, 瀹冧滑閮芥槸鍙互鍦⊿ervlet瀹瑰櫒澶栦嬌鐢ㄧ殑妯$増璇█. WebWork灝忕粍鏇存帹鑽怓reeMarker, 鑰屼笉鏄疺elocity, 榪欐槸鍥犱負FreeMarker鎻愪緵浜嗘洿濂界殑閿欒鎶ュ憡, 鏀寔JSP鏍囩, 紼嶅鐨勫姛鑳? 褰撶劧, 榪欎袱縐嶆妧鏈兘鏄唬鏇縅SP鐨勫緢濂芥柟妗?



蹇熶笂鎵?

紜閰嶇疆濂戒綘鐨勯」鐩殑classpath涓殑鎵鏈変緷璧栦互鍚? 寮濮嬩嬌鐢‵reeMarker灝遍潪甯哥畝鍗曚簡. 鍏稿瀷鎯呭喌涓嬪彧闇瑕?freemarker.jar. 闄ゅ畠浠ュ, webwork-default.xml宸茬粡閰嶇疆濂戒簡灝咶reeMarker Result鏄犲皠鍒頒綘鐨勬ā鐗堟枃浠? 浣犵幇鍦ㄥ彲浠ヨ瘯楠屼竴涓嬪涓?xwork.xml 閰嶇疆:

<action name="test" class="com.acme.TestAction">
<result name="success" type="freemarker">test-success.ftl</result>
</action

鐒跺悗鍐欏ソ test-success.ftl:

<html>
<head>
<title>Hello</title>
</head>
<body>

Hello, ${name}

</body>
</html>

榪欓噷 name 鏄綘鐨刟ction涓殑涓涓睘鎬? 榪欐牱灝卞彲浠ヤ簡! 璇ユ枃妗g殑浣欎笅閮ㄥ垎灝嗕粙緇嶆ā鐗堝浣曡鍔犺澆, 鍙橀噺濡備綍瑙f瀽, tags(鏍囩)涔熷彲浠ヤ嬌鐢?

妯$増鍔犺澆
Webwork鍦ㄤ袱涓綅緗煡鎵綟reeMarker妯$増(鎸夐『搴?:

Web搴旂敤紼嬪簭鐩綍(Web application)
Class path
榪欎釜欏哄簭瀵逛簬鍦ㄥ畬鍏ㄧ紪璇戠殑jar涓彁渚涙ā鐗堝緢鐞嗘兂, 浣嗘槸涔熷悓鏃舵敮鎸佸湪Web搴旂敤紼嬪簭鐩綍涓畾涔夎繖浜涙ā鐗堟潵瑕嗙洊jar涓殑妯$増鏂囦歡. 浜嬪疄涓? 榪欏氨鏄負浠涔堜綘鍙互瑕嗙洊WebWork涓粯璁ょ殑UI tags鍜孎orm Tags鐨勫師鐞?
榪樻湁, 浣犲彲浠ラ氳繃templatePath 涓婁笅鏂囧彉閲?context variable)鎸囧畾涓涓礬寰?浣犵殑鏂囦歡緋葷粺涓殑涓涓洰褰?. 濡傛灉鎸囧畾浜嗚鍙橀噺, 閭d箞榪欎釜鐩綍涓殑鍐呭灝嗕細琚紭鍏堝鎵?
鍙橀噺瑙f瀽/鍐沖畾(Resolution)
鍦‵reeMarker涓? 鍙橀噺灝嗕細鍦ㄥ涓綅緗繘琛屽鎵? 欏哄簭濡備笅:

鍊兼爤(value stack)
action涓婁笅鏂?action context)
Request鑼冨洿(scope)
Session鑼冨洿(scope)
Application鑼冨洿(scope)
鍐呭緩鍙橀噺
娉ㄦ剰action涓婁笅鏂囧湪value stack鍚庤繘琛屾悳绱? 榪欐剰鍛崇潃浣犲彲浠ュ紩鐢ㄥ彉閲忚屼笉蹇呬嬌鐢ㄦ爣鍑嗙殑絎﹀彿(#)鍓嶇紑錛屼笉鍍忓湪JSP涓嬌鐢╳w:property涓繀欏諱嬌鐢ㄧ殑閭g璇硶(璇戣呮敞:鐜板湪鍦↗SP涓篃鍙互涓嶇敤#鑰岃闂粯璁ょ殑ValueStack). 榪欐槸涓涓緢濂界殑渚垮埄鐗規? 浣嗘槸灝忓績, 瀹冩湁鏃朵篃浼氭妸浣犻櫡榪涘幓. <@ww.url id="url" value="http://www.yahoo.com"/>
Click <a xhref="${url}">here</a>!

Webwork-FreeMarker鏁村悎鎻愪緵鐨勫唴寤哄彉閲忓涓?

Name Description
stack 鍊兼爤鏈韓, 鏂逛究浣跨敤 ${stack.findString('ognl expr')}鐨勬柟寮忚皟鐢?
action 鏈榪戞墽琛岀殑action
response HttpServletResponse
res 涓巖esponse鐩稿悓
request HttpServletRequest
req 涓巖eqeust鐩稿悓
session HttpSession
application ServletContext
base request鐨勪笂涓嬫枃璺緞(context path)


鏍囩鏀寔
FreeMarker鏄緢媯掔殑妯$増璇█, 鍥犱負瀹冨畬鏁寸殑鏀寔鏍囩(tag). 鍙傜収WebWork鎻愪緵鐨?FreeMarker Tags 鏂囨。涓殑濡備綍浣跨敤閫氱敤(generic) Tags 閮ㄥ垎鑾峰彇鏇村淇℃伅. 闄や簡閭d簺, 浣犺繕鍙互浣跨敤浠諱綍鐨凧SP鏍囩(tag), 灝卞儚榪欐牱:

<#assign mytag=JspTaglibs["/WEB-INF/mytag.tld"]>
<@mytag.tagx attribute1="some ${value}"/>

榪欓噷 mytag.tld 鏄綘浣跨敤鐨凧SP鏍囩搴撶殑瀹氫箟鏂囦歡. 娉ㄦ剰: 涓轟簡浣跨敤FreeMarker鐨勮繖涓敮鎸? 浣犲繀欏誨紑鍚?web.xml 2.1.x compatibility 鏂囨。涓殑 JSPSupportServlet.

鎻愮ず鍜屾妧宸?
涓嬮潰鏄湪浣跨敤FreeMarker鏋勫緩WebWork搴旂敤紼嬪簭鏃剁殑涓浜涙湁鐢ㄧ殑榪涢樁鍔熻兘.

綾誨瀷杞崲涓庢湰鍦板寲
FreeMarker鍐呯疆鏀寔鏃ユ湡涓庢暟瀛楃殑鏍煎紡鍖? 鏍煎紡鍖栫殑瑙勫垯鍩轟簬action request鐨勫湴鍖轟俊鎭?locale), locale鏄氳繃webwork.properties閰嶇疆鐨? 瀹冧篃鍙互閫氳繃I18n Interceptor榪涜瑕嗙洊. 榪欑鏂瑰紡涓鑸細瀹岀編鐨勬弧瓚充綘鐨勯渶姹? 浣嗘槸浣犺璁頒綇, 榪欎簺鏍煎紡鍖栦俊鎭槸閫氳繃FreeMarker澶勭悊鐨?鑰屼笉鏄氳繃WebWork鐨勭被鍨嬭漿鎹㈡敮鎸佸疄鐜?
濡傛灉浣犲笇鏈沇ebWork鏍規嵁浣犳墍鎸囧畾鐨勭被鍨嬭漿鎹㈠鐞嗘牸寮忓寲, 浣犱笉搴旇浣跨敤騫沖父鐨?amp;{...}璇硶. 鍙栬屼唬涔? 浣犲簲璇ヤ嬌鐢╬roperty鏍囩. 鍖哄埆鍦ㄤ簬property鏍囩鐗瑰埆涓篛GNL琛ㄨ揪寮忚璁★紝 璁$畻瀹冪殑鍊鹼紝 鐒跺悗灝嗙粨鏋滅敤浣犳寚瀹氱殑Type Conversion杞崲涓篠tring. 騫沖父浣跨敤鐨?{...}璇硶鍒欎細浣跨敤FreeMarker鐨勮〃杈懼紡璇█(EL), 璁$畻瀹冪殑鍊? 鐒跺悗閫氳繃鍐呭緩鐨勬牸寮忓寲瑙勫垯杞寲涓篠tring. 榪欎簺鍖哄埆鐢氬井, 浣嗘槸涓瀹氳浜嗚В.

鎵╁睍
鏈夋椂浣犲彲鑳介渶瑕佹墿灞昗ebWork鎻愪緵鐨凢reeMarker鏀寔. 鏈甯歌鐨勫師鍥犳槸浣犲笇鏈涘紩鍏ヤ綘鑷繁鐨勬爣絳? 灝卞儚浣犳墿灞昗ebWork鍐呭緩鏍囩涓鏍?
濡傛灉闇鎵╁睍, 棣栧厛瑕佹柊寤轟竴涓戶鎵?com.opensymphony.webwork.views.freemarker.FreemarkerManager 騫朵笖閲嶈澆浜嗙浉搴旀柟娉曠殑綾? 鐒跺悗灝嗕笅闈唬鐮佹坊鍔犲埌webwork.properties:

webwork.freemarker.manager.classname = com.yourcompany.YourFreeMarkerManager

ObjectWrapper璁劇疆
濡傛灉浣犵啛鎮変簡FreeMarker, 浣犱細鍙戠幇瀹冪殑鏁忔劅鎬т細甯︽潵涓浜涘洶鎵? 鏈甯歌鐨勬柟娉曞氨鏄皾璇曚嬌鐢‵reeMarker鎻愪緵鐨凚eanWrapper. 濡傛灉浣犱笉鐭ラ亾閭f槸浠涔?鍒媴蹇? 鍙鐭ラ亾榪欎簺閰掑彲浠ヤ簡:

WebWorkBeanWrapper緇ф壙鑷粯璁ょ殑FreeMarker BeansWrapper, 鎻愪緵浜嗗熀鏈畬鍏ㄤ竴鑷寸殑鍔熻兘, 鍙槸淇敼浜唌aps澶勭悊鏈哄埗. 涓鑸? FreeMarker鏈変袱縐嶆搷浣滄ā寮? 涓縐嶆敮鎸佸弸濂界殑鍐呯疆鐨刴ap (?key, ?values, etc),浣嗘槸鍙敮鎸丼tring浣滀負key; 鎴栬呯壒孌婄殑鍐呯疆鏀寔(渚嬪: ?key 榪斿洖map鐨勭浉搴旀柟娉曡屼笉鏄痥ey), 浣嗘槸瀹冩敮鎸丼tring鍜孲tring鐩鎬技鐨勯潪String浣滀負key. WebWork鎻愪緵浜嗕袱縐嶆儏鍐典笅鐨勫彲閫夌殑瀹炵幇鏂規.
榪欑鐗規畩鐨勫仛娉曚篃璁鎬細璁╀綘榪鋒儜鎴栦駭鐢熼棶棰? 鎵浠? 浣犲彲浠ュ皢 webwork.properties 涓殑*webwork.freemarker.wrapper.altMap*璁劇疆涓篺alse, 鍏佽鏇挎崲涓哄父瑙勭殑BeansWrapper閫昏緫.

璇硶娉ㄩ噴
濡傛灉鏄疐reeMarker 2.3.4, 榪樻敮鎸佸彟澶栫殑璇硶. 榪欑鍙夌殑璇硶鍦ㄤ綘鎰熻浣犱嬌鐢ㄧ殑IDE(灝ゅ叾鏄疘telliJ IDEA)鍦ㄩ粯璁ょ殑璇硶涓嬭繍琛屽洶闅炬椂闈炲父鏈夌敤. 鍏充簬榪欑璇硶鐨勬洿澶氬唴瀹? 璇烽槄璇昏繖閲?



]]>
struts2 form鏍囩http://m.tkk7.com/hwpok/archive/2008/10/12/233859.html鎯犱竾楣?/dc:creator>鎯犱竾楣?/author>Sun, 12 Oct 2008 05:17:00 GMThttp://m.tkk7.com/hwpok/archive/2008/10/12/233859.htmlhttp://m.tkk7.com/hwpok/comments/233859.htmlhttp://m.tkk7.com/hwpok/archive/2008/10/12/233859.html#Feedback0http://m.tkk7.com/hwpok/comments/commentRss/233859.htmlhttp://m.tkk7.com/hwpok/services/trackbacks/233859.html<%@ page language="java" pageEncoding="GB2312"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    
<head>
        
<title>Huy Vanpull's exercise of struts 2.0 tags</title>

        
<meta http-equiv="pragma" content="no-cache">
        
<meta http-equiv="cache-control" content="no-cache">
        
<style type="text/css">
.inputStyle 
{
    width
: 120px;
    height
: 20px;
    color
: red;
}

</style>
    
</head>
    
<body>
        
<span>琛ㄥ崟鏍囩緇冧範:<br /> </span>
        
<s:form id="sform" name="sform" action="userAdd" namespace="/example"
            method
="post" theme="simple" onsubmit="return test()">
            
<s:hidden id="userId" name="user.userId" />
            UserName:
<s:textfield id="userName" name="user.userName"
                value
="Huyvanpull" maxlength="16" cssClass="inputStyle" />
            
<br />
            Password:
<s:password id="password" name="user.password"
                maxlength
="16" cssClass="inputStyle" />
            
<br />
            
&nbsp;&nbsp;Gender:<s:radio id="gender" name="user.gender"
                list
="#{'male':'鐢?,'female':'濂?}" value="'male'"/>
            
<br />    
            
&nbsp;&nbsp;Educat:<s:select id="education" name="user.education"
                headerKey
="-1" headerValue="璇烽夋嫨瀛﹀巻"
                list
="#{'0':'灝忓', '1':'鍒濅腑', '2':'楂樹腑','3':'涓撶','4':'鏈'}"
                value
="4" required="true" cssClass="inputStyle" />
            
<br />
            Interest:
<s:checkbox id="interest1" name="user.interest1" value="true" fieldValue="1" /> 
            
<br />
            
&nbsp;&nbsp;Remark:<s:textarea id="remark" name="user.remark" value="rea" onfocus="this.select();" cssClass="inputStyle" />
            
<br />
            
<s:token />
        
</s:form>
    
</body>
</html>


]]>
struts2 灞炴ч厤緗枃浠?/title><link>http://m.tkk7.com/hwpok/archive/2008/10/12/233857.html</link><dc:creator>鎯犱竾楣?/dc:creator><author>鎯犱竾楣?/author><pubDate>Sun, 12 Oct 2008 04:59:00 GMT</pubDate><guid>http://m.tkk7.com/hwpok/archive/2008/10/12/233857.html</guid><wfw:comment>http://m.tkk7.com/hwpok/comments/233857.html</wfw:comment><comments>http://m.tkk7.com/hwpok/archive/2008/10/12/233857.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hwpok/comments/commentRss/233857.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hwpok/services/trackbacks/233857.html</trackback:ping><description><![CDATA[<p>Struts2鐨勯厤緗枃浠訛紝鏈変簺閰嶇疆鍦ㄩ」鐩腑榪樻槸寰堝疄鐢ㄧ殑</p> <p> </p> <p>struts.action.extension<br />            The URL extension to use to determine if the request is meant for a Struts action <br />             鐢║RL鎵╁睍鍚嶆潵紜畾鏄惁榪欎釜璇鋒眰鏄鐢ㄤ綔Struts action錛屽叾瀹炰篃灝辨槸璁劇疆 action鐨勫悗緙錛屼緥濡俵ogin.do鐨?do'瀛椼?br /> <br /> struts.configuration<br />            The org.apache.struts2.config.Configuration implementation class<br />              org.apache.struts2.config.Configuration鎺ュ彛鍚?br /> <br /> struts.configuration.files<br />            A list of configuration files automatically loaded by Struts <br />             struts鑷姩鍔犺澆鐨勪竴涓厤緗枃浠跺垪琛?br /> <br /> struts.configuration.xml.reload<br />            Whether to reload the XML configuration or not<br />             鏄惁鍔犺澆xml閰嶇疆(true,false)<br /> <br /> struts.continuations.package<br />             The package containing actions that use Rife continuations<br />             鍚湁actions鐨勫畬鏁磋繛緇殑package鍚嶇О<br /> <br /> struts.custom.i18n.resources<br />            Location of additional localization properties files to load <br />             鍔犺澆闄勫姞鐨勫浗闄呭寲灞炴ф枃浠訛紙涓嶅寘鍚?properties鍚庣紑錛?br /> <br /> struts.custom.properties<br />            Location of additional configuration properties files to load<br />             鍔犺澆闄勫姞鐨勯厤緗枃浠剁殑浣嶇疆<br /> <br /> <br /> struts.devMode<br />            Whether Struts is in development mode or not<br />             鏄惁涓簊truts寮鍙戞ā寮?br /> <br /> struts.dispatcher.parametersWorkaround<br />            Whether to use a Servlet request parameter workaround necessary for some versions of WebLogic<br />              錛堟煇浜涚増鏈殑weblogic涓撶敤錛夋槸鍚︿嬌鐢ㄤ竴涓猻ervlet璇鋒眰鍙傛暟宸ヤ綔鍖猴紙PARAMETERSWORKAROUND錛?br /> <br /> struts.enable.DynamicMethodInvocation<br />            Allows one to disable dynamic method invocation from the URL<br />              鍏佽鍔ㄦ佹柟娉曡皟鐢?br /> <br /> struts.freemarker.manager.classname<br />            The org.apache.struts2.views.freemarker.FreemarkerManager implementation class <br />             org.apache.struts2.views.freemarker.FreemarkerManager鎺ュ彛鍚?br /> <br /> struts.i18n.encoding<br />            The encoding to use for localization messages<br />             鍥介檯鍖栦俊鎭唴鐮?br /> <br /> struts.i18n.reload<br />            Whether the localization messages should automatically be reloaded<br />             鏄惁鍥介檯鍖栦俊鎭嚜鍔ㄥ姞杞?<br /> <br /> struts.locale<br />            The default locale for the Struts application<br />             榛樿鐨勫浗闄呭寲鍦板尯淇℃伅<br /> <br /> struts.mapper.class<br />            The org.apache.struts2.dispatcher.mapper.ActionMapper implementation class<br />              org.apache.struts2.dispatcher.mapper.ActionMapper鎺ュ彛<br /> <br /> struts.multipart.maxSize<br />            The maximize size of a multipart request (file upload)<br />             multipart璇鋒眰淇℃伅鐨勬渶澶у昂瀵革紙鏂囦歡涓婁紶鐢級 <br /> <br /> struts.multipart.parser<br />            The org.apache.struts2.dispatcher.multipart.<br />            MultiPartRequest parser implementation for a multipart request (file upload) <br />            涓撲負multipart璇鋒眰淇℃伅浣跨敤鐨刼rg.apache.struts2.dispatcher.multipart.MultiPartRequest瑙f瀽鍣ㄦ帴鍙o紙鏂囦歡涓婁紶鐢級<br /> <br /> <br /> struts.multipart.saveDir<br />            The directory to use for storing uploaded files <br />             璁劇疆瀛樺偍涓婁紶鏂囦歡鐨勭洰褰曞す<br /> <br /> struts.objectFactory<br />            The com.opensymphony.xwork2.ObjectFactory implementation class<br />             com.opensymphony.xwork2.ObjectFactory鎺ュ彛錛坰pring錛?br /> <br /> struts.objectFactory.spring.autoWire<br />            Whether Spring should autoWire or not<br />             鏄惁鑷姩緇戝畾Spring<br /> <br /> struts.objectFactory.spring.useClassCache<br />            Whether Spring should use its class cache or not<br />             鏄惁spring搴旇浣跨敤鑷韓鐨刢ache <br /> <br /> struts.objectTypeDeterminer<br />            The com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation class<br />              com.opensymphony.xwork2.util.ObjectTypeDeterminer鎺ュ彛<br /> <br /> struts.serve.static.browserCache<br />    If static content served by the Struts filter should set browser caching header properties or not <br />             鏄惁struts榪囨護鍣ㄤ腑鎻愪緵鐨勯潤鎬佸唴瀹瑰簲璇ヨ嫻忚鍣ㄧ紦瀛樺湪澶撮儴灞炴т腑<br /> <br /> struts.serve.static<br />            Whether the Struts filter should serve static content or not <br />             鏄惁struts榪囨護鍣ㄥ簲璇ユ彁渚涢潤鎬佸唴瀹?br /> <br /> struts.tag.altSyntax<br />            Whether to use the alterative syntax for the tags or not <br />             鏄惁鍙互鐢ㄦ浛浠g殑璇硶鏇夸唬tags<br /> <br /> struts.ui.templateDir<br />            The directory containing UI templates<br />             UI templates鐨勭洰褰曞す <br /> <br /> struts.ui.theme<br />            The default UI template theme<br />             榛樿鐨刄I template涓婚<br /> <br /> struts.url.http.port<br />            The HTTP port used by Struts URLs<br />             璁劇疆http绔彛<br /> <br /> struts.url.https.port<br />            The HTTPS port used by Struts URLs <br />             璁劇疆https绔彛<br /> <br /> struts.url.includeParams<br />            The default includeParams method to generate Struts URLs <br />            鍦╱rl涓駭鐢?榛樿鐨刬ncludeParams<br /> <br /> <br /> struts.velocity.configfile<br />            The Velocity configuration file path<br />             velocity閰嶇疆鏂囦歡璺緞<br /> <br /> struts.velocity.contexts<br />            List of Velocity context names<br />             velocity鐨刢ontext鍒楄〃<br /> <br /> <br /> struts.velocity.manager.classname<br />            org.apache.struts2.views.velocity.VelocityManager implementation class<br />             org.apache.struts2.views.velocity.VelocityManager鎺ュ彛鍚?br /> <br /> struts.velocity.toolboxlocation<br />            The location of the Velocity toolbox<br />             velocity宸ュ叿鐩掔殑浣嶇疆 <br /> struts.xslt.nocache<br />            Whether or not XSLT templates should not be cached<br />             鏄惁XSLT妯$増搴旇琚紦瀛?/p> <p> </p> <p>1錛氬湪action涓畾涔夌殑鍙橀噺錛屽湪jsp欏甸潰涓樉紺虹敤錛?lt;s:property value="鍙橀噺鍚? /> <br /> <br /> 2錛氬湪欏甸潰涓疄鐜拌嚜鍔ㄥ鍔犵殑搴忓彿鐢╥terator鐨剆tatuts鐨刬ndex灞炴?eg錛?<br /> <br /> <s:iterator value="#request.inOutAccountList" id="data" status="listStat"> <br /> <br /> <s:property value="#listStat.index+1"/> <br /> <br /> </s:iterator> <br /> <br /> 3:鍦╝ction綾諱腑鍙栧緱request鍜宻ession瀵硅薄鐨勬柟娉?<br /> <br /> Map session = ActionContext.getContext().getSession(); <br /> HttpServletRequest request = ServletActionContext.getRequest (); <br /> <br /> 璁劇疆瀹冧滑鐨勫肩殑鏂規硶 <br /> <br /> session.put("operation", "add"); <br /> request.setAttribute("name", name); <br /> <br /> 欏甸潰涓彇寰楀畠浠殑鍊鹼細 <br /> <br /> <s:property value="#session.operation"/> <br /> <s:property value="#request.name"/> <br /> <br /> 4:欏甸潰涓鍋惰鏍峰紡涓嶄竴鏍風殑鎺у埗鏂規硶錛?<br /> <br /> <tr class="<s:if test='#listStat.odd == true '>tableStyle-tr1</s:if><s:else>tableStyle-tr2</s:else>" > <br /> <br /> 5:鍗曢夋鍜屽閫夋鐨勪嬌鐢ㄦ柟娉?<br /> <br /> 1):鍙互璁劇疆榛樿閫変腑鍊鹼紝娉ㄦ剰list鐨勫肩殑璁劇疆錛岄氳繃榪欑鏂瑰紡浣縦ey鍜寁alue涓嶄竴鏍鳳紝榪欑鏂規硶姣旇緝甯哥敤(checkboxlist or radio) <br /> <br /> <s:radio name="uncarInsPolicy.policyStateCode" <br /> list="#{'5':'閫氳繃' , '2':'涓嶉氳繃'}" <br /> listKey="key" <br /> listValue="value" <br /> value='5' <br /> /> <br /> <br /> 2):榪欓噷鐨刱ey鍜寁alue鐨勫兼槸涓鏍風殑(checkboxlist or radio) <br /> <br /> <s:checkboxlist <br /> list="{'Red', 'Blue', 'Green'}" <br /> name="favoriteColor"/> <br /> <br /> 6:struts2 涓殑鏍囩浼氱敓鎴愮被浼肩敱<tr><td></td></tr>鏋勬垚鐨勫瓧涓詫紙鍏蜂綋浠涔堟爣絳劇敓鎴愪粈涔堬紝鍙互鏌ョ湅鐢熸垚鍚庣殑欏甸潰鐨勬簮浠g爜錛夊鏋滀笉闄愬埗榪欎簺澶氫綑浠g爜鐨勭敓鎴愶紝欏甸潰灝嗗彉寰楁棤娉曟帶鍒訛紝鎵浠ヤ竴鑸垜浠槸涓嶅笇鏈涘畠鐢熸垚澶氫綑鐨勪唬鐮佺殑錛屽叿浣撶殑璁劇疆鏂規硶濡傛灉錛屽湪struts.xml涓粺涓閰嶇疆 <br /> <constant name="struts.ui.theme" value="simple"/>鍔犱笂璇ュ彞鍗沖彲 <br /> 涔熷彲浠ラ氳繃鍦ㄩ〉闈腑灝唗ag鐨則heme灞炴ц涓?simple"鍙栨秷鍏墮粯璁ょ殑琛ㄦ牸甯冨眬 <br /> 涓嶈繃鏈濂芥槸錛氳嚜瀹氫箟涓涓猼heme錛屽茍灝嗗叾璁句負榛樿搴旂敤鍒版暣涓珯鐐癸紝濡傛涓鏉ュ氨鍙互寰楀埌緇熶竴鐨勭珯鐐歸鏍?<br /> <br /> 7錛歫sp欏甸潰涓牸寮忓寲鏃ユ湡鐨勬柟娉?<br /> <br /> <s:date name="unCarInsModificationInfo.createTime" format="yyyy-MM-dd" nice="false"/>榪欐牱灝卞彲浠ュ皢鏃ユ湡鏍煎紡鍖栦負yyyy錛峂M錛峝d鐨勫艦寮?<br /> <br /> 8錛氶粯璁ゆ儏鍐典笅錛屽綋璇鋒眰action鍙戠敓鏃訛紝Struts榪愯鏃訛紙Runtime錛夋牴鎹畇truts.xml閲岀殑Action鏄犲皠闆?Mapping)錛屽疄渚嬪寲action瀵瑰簲鐨勭被錛屽茍璋冪敤鍏秂xecute鏂規硶銆傚綋鐒訛紝鎴戜滑鍙互閫氳繃浠ヤ笅涓ょ鏂規硶鏀瑰彉榪欑榛樿璋冪敤 <br /> <br /> 1錛夊湪classes/sturts.xml涓柊寤篈ction錛屽茍鎸囨槑鍏惰皟鐢ㄧ殑鏂規硶 <br /> 姣斿鎯寵皟鐢╝ction綾諱腑鐨?<br /> <br /> public String aliasAction() { <br /> message ="鑷畾涔堿ction璋冪敤鏂規硶"; <br /> return SUCCESS; <br /> } <br /> 鍒欏湪classes/sturts.xml涓姞鍏ヤ笅闈唬鐮侊細 <br /> <action name="AliasHelloWorld" class="tutorial.HelloWorld" method="aliasAction"> <br /> <result>/HelloWorld.jsp</result> <br /> </action> <br /> 鏃㈠彲鐢╝ction鍚嶈皟鐢ㄨ鏂規硶浜?<br /> <br /> 2錛夛紙姣旇緝甯哥敤錛?<br /> <br /> 璁塊棶Action鏃訛紝鍦ˋction鍚嶅悗鍔犱笂“!xxx”錛坸xx涓烘柟娉曞悕錛夈?<br /> <br /> 9錛歋truts 2.0鏈変袱涓厤緗枃浠訛紝struts.xml鍜宻truts.properties閮芥槸鏀懼湪WEB-INF/classes/涓嬨?<br /> struts.xml鐢ㄤ簬搴旂敤紼嬪簭鐩稿叧鐨勯厤緗?<br /> struts.properties鐢ㄤ簬Struts 2.0鐨勮繍琛屾椂錛圧untime錛夌殑閰嶇疆 <br /> <br /> 10:鍦╝ction綾諱腑鍙栧緱web涓嬫煇涓鏂囦歡澶圭墿鐞嗚礬寰勶紙緇濆璺緞錛夌殑鏂規硶 <br /> filePath = ServletActionContext.getServletContext().getRealPath("/upLoadFiles") <br /> <br /> 11錛氳鎯寵繑鍥炵殑欏甸潰涓嶆槸涓涓洿鎺SP欏甸潰鑰屾槸瑕佸厛閫氳繃榪斿洖action涓殑鏂規硶璇誨彇鐩稿簲鐨勬暟鎹啀榪斿洖鍒癹sp欏甸潰錛屾湁涓ょ鏂規硶 <br /> <br /> 1錛夊湪struts.xml涓繖涔堣緗?<br /> <br /> <result name="list" type="redirect-action">sysmanage/UserBaseInfoAction!findUserBaseInfo.action</result> <br /> <br /> 2錛夊湪action涓繑鍥炴椂鐩存帴璋冪敤榪欎釜鏂規硶鍗沖彲 <br /> <br /> return findList錛堬級錛?<br /> <br /> 12錛氳緗甤heckboxlist涓粯璁ゅ肩殑鏂規硶 <br /> <br /> <s:checkboxlist name="skills1" <br /> ="Skills 1" <br /> list="{ 'Java', '.Net', 'RoR', 'PHP' }" <br /> value="{ 'Java', '.Net' }" /> <br /> <s:checkboxlist name="skills2" <br /> label="Skills 2" <br /> list="#{ 1:'Java', 2: '.Net', 3: 'RoR', 4: 'PHP' }" <br /> listKey="key" <br /> listValue="value" <br /> value="{ 1, 2, 3 }"/> <br /> <br /> 13錛氫簩綰х駭榪炰笅鎷夋 <br /> <br /> <s:set name="foobar" <br /> value="#{'Java': {'Spring', 'Hibernate', 'Struts 2'}, '.Net': {'Linq', ' ASP.NET 2.0'}, 'Database': {'Oracle', 'SQL Server', 'DB2', 'MySQL'}}" /> <br /> <s:doubleselect list="#foobar.keySet()" <br /> doubleName="technology" <br /> doubleList="#foobar[top]" <br /> label="Technology" /> </p> <img src ="http://m.tkk7.com/hwpok/aggbug/233857.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hwpok/" target="_blank">鎯犱竾楣?/a> 2008-10-12 12:59 <a href="http://m.tkk7.com/hwpok/archive/2008/10/12/233857.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>struts2鏍囩璇﹁В(杞?http://m.tkk7.com/hwpok/archive/2008/10/12/233853.html鎯犱竾楣?/dc:creator>鎯犱竾楣?/author>Sun, 12 Oct 2008 04:46:00 GMThttp://m.tkk7.com/hwpok/archive/2008/10/12/233853.htmlhttp://m.tkk7.com/hwpok/comments/233853.htmlhttp://m.tkk7.com/hwpok/archive/2008/10/12/233853.html#Feedback0http://m.tkk7.com/hwpok/comments/commentRss/233853.htmlhttp://m.tkk7.com/hwpok/services/trackbacks/233853.html闃呰鍏ㄦ枃

]]>
Strut2 鏍囩 鎺у埗鍜屾暟鎹爣絳?/title><link>http://m.tkk7.com/hwpok/archive/2008/10/12/233817.html</link><dc:creator>鎯犱竾楣?/dc:creator><author>鎯犱竾楣?/author><pubDate>Sat, 11 Oct 2008 16:54:00 GMT</pubDate><guid>http://m.tkk7.com/hwpok/archive/2008/10/12/233817.html</guid><wfw:comment>http://m.tkk7.com/hwpok/comments/233817.html</wfw:comment><comments>http://m.tkk7.com/hwpok/archive/2008/10/12/233817.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/hwpok/comments/commentRss/233817.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/hwpok/services/trackbacks/233817.html</trackback:ping><description><![CDATA[<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img id="Codehighlighter1_2_45_Open_Image" onclick="this.style.display='none'; Codehighlighter1_2_45_Open_Text.style.display='none'; Codehighlighter1_2_45_Closed_Image.style.display='inline'; Codehighlighter1_2_45_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_2_45_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_2_45_Closed_Text.style.display='none'; Codehighlighter1_2_45_Open_Image.style.display='inline'; Codehighlighter1_2_45_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /><span style="color: #000000; background-color: #ffff00"><%</span><span id="Codehighlighter1_2_45_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_2_45_Open_Text"><span style="color: #000000; background-color: #f5f5f5">@ page language</span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">java</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5"> pageEncoding</span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">GB2312</span><span style="color: #000000; background-color: #f5f5f5">"</span></span><span style="color: #000000; background-color: #ffff00">%></span><span style="color: #000000"><br /> <img id="Codehighlighter1_51_89_Open_Image" onclick="this.style.display='none'; Codehighlighter1_51_89_Open_Text.style.display='none'; Codehighlighter1_51_89_Closed_Image.style.display='inline'; Codehighlighter1_51_89_Closed_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_51_89_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_51_89_Closed_Text.style.display='none'; Codehighlighter1_51_89_Open_Image.style.display='inline'; Codehighlighter1_51_89_Open_Text.style.display='inline';" src="http://m.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #000000; background-color: #ffff00"><%</span><span id="Codehighlighter1_51_89_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_51_89_Open_Text"><span style="color: #000000; background-color: #f5f5f5">@ taglib prefix</span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">s</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5"> uri</span><span style="color: #000000; background-color: #f5f5f5">=</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5">/struts-tags</span><span style="color: #000000; background-color: #f5f5f5">"</span><span style="color: #000000; background-color: #f5f5f5"> </span></span><span style="color: #000000; background-color: #ffff00">%></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><!</span><span style="color: #ff00ff">DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"><</span><span style="color: #800000">html</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">head</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">title</span><span style="color: #0000ff">></span><span style="color: #000000">Huy Vanpull's exercise of struts 2.0 tags </span><span style="color: #0000ff"></</span><span style="color: #800000">title</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">meta </span><span style="color: #ff0000">http-equiv</span><span style="color: #0000ff">="pragma"</span><span style="color: #ff0000"> content</span><span style="color: #0000ff">="no-cache"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">meta </span><span style="color: #ff0000">http-equiv</span><span style="color: #0000ff">="cache-control"</span><span style="color: #ff0000"> content</span><span style="color: #0000ff">="no-cache"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">meta </span><span style="color: #ff0000">http-equiv</span><span style="color: #0000ff">="expires"</span><span style="color: #ff0000"> content</span><span style="color: #0000ff">="0"</span><span style="color: #0000ff">></span><span style="color: #000000">    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">meta </span><span style="color: #ff0000">http-equiv</span><span style="color: #0000ff">="keywords"</span><span style="color: #ff0000"> content</span><span style="color: #0000ff">="keyword1,keyword2,keyword3"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">meta </span><span style="color: #ff0000">http-equiv</span><span style="color: #0000ff">="description"</span><span style="color: #ff0000"> content</span><span style="color: #0000ff">="This is my page"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #0000ff"></</span><span style="color: #800000">head</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #0000ff"><</span><span style="color: #800000">body </span><span style="color: #ff0000">style</span><span style="color: #0000ff">="font:12px;color:red;"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:set </span><span style="color: #ff0000">name</span><span style="color: #0000ff">="type"</span><span style="color: #ff0000"> value</span><span style="color: #0000ff">="0"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">鎺у埗鏍囩緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:if </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#type==0"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">紲炰粰<img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:if</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:elseif </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#type==1"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">鍑′漢<img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:elseif</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:else</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />         </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">濡栨?img src="http://m.tkk7.com/Images/dot.gif" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:else</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />     </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">榪唬鏍囩榪唬List,Set緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:iterator </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="name"</span><span style="color: #ff0000"> status</span><span style="color: #0000ff">="st"</span><span style="color: #ff0000">  value</span><span style="color: #0000ff">="{'榛勮嵂甯?,'嬈ч槼宄?,'孌墊櫤鍏?,'媧竷鍏?}"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="#st.index"</span><span style="color: #0000ff">/></span><span style="color: #000000">:</span><span style="color: #ff0000">&nbsp;&nbsp;</span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="name"</span><span style="color: #0000ff">/></span><span style="color: #000000">,<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:if </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#st.first"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">棣栧厓绱?</span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:if</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:elseif </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#st.last"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">灝懼厓绱?</span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:elseif</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:else</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">絎?/span><span style="color: #0000ff"><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="#st.count"</span><span style="color: #0000ff">/></span><span style="color: #000000">鍏冪礌,</span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:else</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:if </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#st.even"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">index涓哄伓鏁?/span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:if</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:elseif </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#st.odd"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">index涓哄鏁?/span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:elseif</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:iterator</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">榪唬鏍囩榪唬Map緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:iterator </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="score"</span><span style="color: #ff0000"> status</span><span style="color: #0000ff">="st"</span><span style="color: #ff0000">  value</span><span style="color: #0000ff">="#{'涓滈偑':'榛勮嵂甯?,'瑗挎瘨':'嬈ч槼宄?,'鍗楀笣':'孌墊櫤鍏?,'鍖椾笎':'媧竷鍏?}"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="#st.index"</span><span style="color: #0000ff">/></span><span style="color: #000000">:</span><span style="color: #ff0000">&nbsp;&nbsp;</span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="key"</span><span style="color: #0000ff">/><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="value"</span><span style="color: #0000ff">/></span><span style="color: #000000">,<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:if </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#st.first"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">棣栧厓绱?</span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:if</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:elseif </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#st.last"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">灝懼厓绱?</span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:elseif</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:else</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">絎?/span><span style="color: #0000ff"><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="#st.count"</span><span style="color: #0000ff">/></span><span style="color: #000000">鍏冪礌,</span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:else</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:if </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#st.even"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">index涓哄伓鏁?/span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:if</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:elseif </span><span style="color: #ff0000">test</span><span style="color: #0000ff">="#st.odd"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">index涓哄鏁?/span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">s:elseif</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:iterator</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">Append鏍囩緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:append </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="newList"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:param </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="{'榛勮嵂甯?,'嬈ч槼宄?,'孌墊櫤鍏?,'媧竷鍏?}"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:param </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="{'鍛ㄤ集閫?}"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:append</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:iterator </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="name"</span><span style="color: #ff0000"> status</span><span style="color: #0000ff">="st"</span><span style="color: #ff0000">  value</span><span style="color: #0000ff">="#newList"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="name"</span><span style="color: #0000ff">/></span><span style="color: #000000">,</span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:iterator</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">Bean鏍囩緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:bean </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="t"</span><span style="color: #ff0000"> name</span><span style="color: #0000ff">="java.util.Date"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:param </span><span style="color: #ff0000">name</span><span style="color: #0000ff">="minutes"</span><span style="color: #ff0000"> value</span><span style="color: #0000ff">="12345678"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="minutes"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:bean</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">Date鏍囩緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:date </span><span style="color: #ff0000">name</span><span style="color: #0000ff">="#t"</span><span style="color: #ff0000"> format</span><span style="color: #0000ff">="yyyy-MM-dd HH:mm:ss"</span><span style="color: #ff0000"> nice</span><span style="color: #0000ff">="false"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">Set鏍囩緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:set </span><span style="color: #ff0000">name</span><span style="color: #0000ff">="age"</span><span style="color: #ff0000"> value</span><span style="color: #0000ff">="29"</span><span style="color: #ff0000"> scope</span><span style="color: #0000ff">="session"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    ${"sessionScope.age"}<br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">Include鏍囩緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:include </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="url"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">param </span><span style="color: #ff0000">name</span><span style="color: #0000ff">="id"</span><span style="color: #ff0000"> value</span><span style="color: #0000ff">="123"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:include</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">URL鏍囩緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:url </span><span style="color: #ff0000">includeParams</span><span style="color: #0000ff">="get"</span><span style="color: #ff0000"> value</span><span style="color: #0000ff">="http://m.tkk7.com/hwpok"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:param </span><span style="color: #ff0000">name</span><span style="color: #0000ff">="id"</span><span style="color: #ff0000"> value</span><span style="color: #0000ff">="10"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">s:param </span><span style="color: #ff0000">name</span><span style="color: #0000ff">="age"</span><span style="color: #ff0000"> value</span><span style="color: #0000ff">="Huyvanpull"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">s:url</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">瀹冨彧鏄竴涓猆RL,涓嶅叿鏈堿鏍囩鐨勫姛鑳?/span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">Property鏍囩緇冧範:</span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">span</span><span style="color: #0000ff">></span><span style="color: #000000">property鏍囩鍓嶉潰宸茬粡鐢ㄨ繃澶浜?浣嗘槸娌℃湁鐢ㄥ埌瀹冪殑default灞炴?/span><span style="color: #0000ff"></</span><span style="color: #800000">span</span><span style="color: #0000ff">><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">s:property </span><span style="color: #ff0000">value</span><span style="color: #0000ff">="null"</span><span style="color: #ff0000"> default</span><span style="color: #0000ff">="Huyvanpull"</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/><</span><span style="color: #800000">br</span><span style="color: #0000ff">/></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />  </span><span style="color: #0000ff"></</span><span style="color: #800000">body</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff"></</span><span style="color: #800000">html</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <img src ="http://m.tkk7.com/hwpok/aggbug/233817.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/hwpok/" target="_blank">鎯犱竾楣?/a> 2008-10-12 00:54 <a href="http://m.tkk7.com/hwpok/archive/2008/10/12/233817.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://m.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://zibochanglong.com" target="_blank">好久久免费视频高清</a>| <a href="http://dwj28.com" target="_blank">国产亚洲福利一区二区免费看</a>| <a href="http://448tk.com" target="_blank">国产国产人免费人成成免视频</a>| <a href="http://zdxxxx.com" target="_blank">免费真实播放国产乱子伦</a>| <a href="http://7778kk.com" target="_blank">亚洲JLZZJLZZ少妇</a>| <a href="http://smalody.com" target="_blank">暖暖在线日本免费中文</a>| <a href="http://qsqse1.com" target="_blank">国产成人亚洲综合a∨</a>| <a href="http://shlamore.com" target="_blank">亚洲第一页日韩专区</a>| <a href="http://126cm.com" target="_blank">精品多毛少妇人妻AV免费久久</a>| <a href="http://acccx.com" target="_blank">亚洲精品无码Av人在线观看国产</a>| <a href="http://meixiudashi.com" target="_blank">一级做a爰片久久毛片免费看</a>| <a href="http://jsky163.com" target="_blank">中文字幕中韩乱码亚洲大片</a>| <a href="http://8xcb.com" target="_blank">精选影视免费在线 </a>| <a href="http://haodiaose35pao.com" target="_blank">亚洲精品国精品久久99热一</a>| <a href="http://gzbaida.com" target="_blank">久久国产精品免费观看</a>| <a href="http://iciap.com" target="_blank">亚洲三级视频在线观看</a>| <a href="http://an930.com" target="_blank">午夜免费不卡毛片完整版</a>| <a href="http://ynxxrh.com" target="_blank">日韩在线观看视频免费</a>| <a href="http://yg36.com" target="_blank">精品国产_亚洲人成在线高清</a>| <a href="http://8888kkk.com" target="_blank">最好看的中文字幕2019免费</a>| <a href="http://77133144.com" target="_blank">亚洲一区二区三区在线</a>| <a href="http://qvod-player.com" target="_blank">永久在线毛片免费观看</a>| <a href="http://gzmcmy.com" target="_blank">jizz免费在线观看</a>| <a href="http://3688008.com" target="_blank">亚洲影院在线观看</a>| <a href="http://520baoyu.com" target="_blank">免费看无码自慰一区二区</a>| <a href="http://6789311.com" target="_blank">一级做a爰片性色毛片免费网站</a>| <a href="http://c9133.com" target="_blank">国产A在亚洲线播放</a>| <a href="http://www-741.com" target="_blank">希望影院高清免费观看视频</a>| <a href="http://iguasheng.com" target="_blank">国产精品亚洲专区无码WEB</a>| <a href="http://thinkchating.com" target="_blank">久久精品国产亚洲Aⅴ香蕉 </a>| <a href="http://sxjttxkywl.com" target="_blank">久久精品国产亚洲av影院</a>| <a href="http://m8va.com" target="_blank">男人的好看免费观看在线视频 </a>| <a href="http://8mav958.com" target="_blank">免费可以看黄的视频s色</a>| <a href="http://youtobey.com" target="_blank">亚洲AV无码一区二区大桥未久</a>| <a href="http://zxbj0471.com" target="_blank">国产精品亚洲高清一区二区</a>| <a href="http://234an.com" target="_blank">无码精品一区二区三区免费视频</a>| <a href="http://papapa97.com" target="_blank">亚洲成a人片在线观看精品</a>| <a href="http://ddxsrd.com" target="_blank">亚洲伊人久久成综合人影院</a>| <a href="http://chiguigu.com" target="_blank">131美女爱做免费毛片</a>| <a href="http://kaixininvestment.com" target="_blank">亚洲国产精品自在自线观看</a>| <a href="http://5d8f.com" target="_blank">亚洲成AV人片在</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>