锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品免费在线,亚洲成AV人片久久,亚洲日本va午夜中文字幕一区http://www.tkk7.com/senlin-blog/category/15055.htmlweb鎶ヨ〃璁捐鍣?...zh-cnMon, 28 Apr 2014 10:36:45 GMTMon, 28 Apr 2014 10:36:45 GMT60easyUI涓璬atagrid鍜宼reegrid鍒楄〃鎸夌航閲嶆柊娓叉煋http://www.tkk7.com/senlin-blog/archive/2014/04/28/413004.htmlJJCEAJJCEAMon, 28 Apr 2014 04:57:00 GMThttp://www.tkk7.com/senlin-blog/archive/2014/04/28/413004.htmlhttp://www.tkk7.com/senlin-blog/comments/413004.htmlhttp://www.tkk7.com/senlin-blog/archive/2014/04/28/413004.html#Feedback0http://www.tkk7.com/senlin-blog/comments/commentRss/413004.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/413004.html $('.easyui-linkbutton').linkbutton({text:'鏌ョ湅',plain:true,iconCls:'icon-...  闃呰鍏ㄦ枃

JJCEA 2014-04-28 12:57 鍙戣〃璇勮
]]>
hibernate鎿嶄綔鍙屼富閿?鍙屽閿?/title><link>http://www.tkk7.com/senlin-blog/archive/2012/09/21/388279.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Fri, 21 Sep 2012 09:19:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2012/09/21/388279.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/388279.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2012/09/21/388279.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/388279.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/388279.html</trackback:ping><description><![CDATA[<img border="0" alt="" src="http://www.tkk7.com/images/blogjava_net/senlin-blog/QQ鎴浘鏈懡鍚?png" width="512" height="353" /><br /><br />閽堝涓婇潰鐨勮鑹蹭漢鍛樿〃濡備綍鐢╤ibernate瀹炵幇鏄犲皠鍏崇郴鍛紝鍥犱負姝よ〃涓殑涓や釜瀛楁鏄叾瀹冧袱琛ㄤ腑涓婚敭錛屽湪鏈〃涓嵆浣挎槸涓婚敭鍙堟槸澶栭敭錛屼笅闈㈣鏄庝竴涓嬫搷浣滆繖寮犺〃銆?br />絎竴姝ワ細棣栧厛鐢熸垚鍛樺伐淇℃伅琛ㄥ拰瑙掕壊綆$悊琛ㄧ殑javaBean鍜?hbm.xml鏂囦歡錛岃繖涓槸鍗曡〃錛岃繖閲屼笉澶氳錛?br />            com.insigma.hr.eduj.ygxx.model.Ygxx.java錛?br />            com.insigma.hr.eduj.ygxx.model.Ygxx.hbm.xml<br />            com.insigma.hr.eduj.jsgl.model.Jsgl.java,<br />            com.insigma.hr.eduj.jsgl.model.Jsgl.hbm.xml<br />            淇濊瘉鍛樺伐淇℃伅琛ㄥ拰瑙掕壊綆$悊琛ㄨ兘姝e父鎿嶄綔鏁版嵁搴擄紙澧烇紝淇紝鍒狅紝鏌ワ級錛?br />絎簩姝ワ細鐢熸垚瑙掕壊浜哄憳琛ㄥ搴旂殑鏄犲皠鏂囦歡濡備笅錛?br />            1).Jsry.hbm.xml鏂囦歡鍐呭濡備笅錛?div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: rgb(0, 0, 255);"><?</span><span style="color: rgb(255, 0, 255);">xml version="1.0" encoding="utf-8"</span><span style="color: rgb(0, 0, 255);">?></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"><!</span><span style="color: rgb(255, 0, 255);">DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    Mapping file autogenerated by MyEclipse Persistence Tools<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">hibernate-mapping</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">class </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="com.insigma.hr.eduj.jsry.model.Jsry"</span><span style="color: rgb(255, 0, 0);"> table</span><span style="color: rgb(0, 0, 255);">="jsry"</span><span style="color: rgb(255, 0, 0);"> catalog</span><span style="color: rgb(0, 0, 255);">="hr"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">composite-id </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="id"</span><span style="color: rgb(255, 0, 0);"> class</span><span style="color: rgb(0, 0, 255);">="com.insigma.hr.eduj.jsry.model.JsryId"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">key-many-to-one </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="jsgl"</span><span style="color: rgb(255, 0, 0);"> class</span><span style="color: rgb(0, 0, 255);">="com.insigma.hr.eduj.jsgl.model.Jsgl"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">column </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="JSBH"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">key-many-to-one</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">key-many-to-one </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="ygxx"</span><span style="color: rgb(255, 0, 0);"> class</span><span style="color: rgb(0, 0, 255);">="com.insigma.hr.eduj.ygxx.model.Ygxx"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">column </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="YGBH"</span><span style="color: rgb(255, 0, 0);"> length</span><span style="color: rgb(0, 0, 255);">="20"</span><span style="color: rgb(255, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">/></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">key-many-to-one</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">composite-id</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">hibernate-mapping</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span></div>   2).JsryId.java榪欎釜javabean涓瓨鏀句簡涓や釜灞炴у垎鍒搴斿憳宸ヤ俊鎭拰瑙掕壊綆$悊琛ㄧ殑javabean瀵硅薄錛屽唴瀹瑰涓嬶細<br /><div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img id="Codehighlighter1_53_295_Open_Image" onclick="this.style.display='none'; Codehighlighter1_53_295_Open_Text.style.display='none'; Codehighlighter1_53_295_Closed_Image.style.display='inline'; Codehighlighter1_53_295_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none;" id="Codehighlighter1_53_295_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_53_295_Closed_Text.style.display='none'; Codehighlighter1_53_295_Open_Image.style.display='inline'; Codehighlighter1_53_295_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif"><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">class</span><span style="color: rgb(0, 0, 0);"> JsryId  </span><span style="color: rgb(0, 0, 255);">implements</span><span style="color: rgb(0, 0, 0);"> java.io.Serializable </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_53_295_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_53_295_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);"> Jsgl jsgl;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />    </span><span style="color: rgb(0, 0, 255);">private</span><span style="color: rgb(0, 0, 0);"> Ygxx ygxx;<br /><img id="Codehighlighter1_118_136_Open_Image" onclick="this.style.display='none'; Codehighlighter1_118_136_Open_Text.style.display='none'; Codehighlighter1_118_136_Closed_Image.style.display='inline'; Codehighlighter1_118_136_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_118_136_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_118_136_Closed_Text.style.display='none'; Codehighlighter1_118_136_Open_Image.style.display='inline'; Codehighlighter1_118_136_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> Jsgl getJsgl() </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_118_136_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_118_136_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> jsgl;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img id="Codehighlighter1_170_193_Open_Image" onclick="this.style.display='none'; Codehighlighter1_170_193_Open_Text.style.display='none'; Codehighlighter1_170_193_Closed_Image.style.display='inline'; Codehighlighter1_170_193_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_170_193_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_170_193_Closed_Text.style.display='none'; Codehighlighter1_170_193_Open_Image.style.display='inline'; Codehighlighter1_170_193_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> setJsgl(Jsgl jsgl) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_170_193_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_170_193_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.jsgl </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> jsgl;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img id="Codehighlighter1_218_236_Open_Image" onclick="this.style.display='none'; Codehighlighter1_218_236_Open_Text.style.display='none'; Codehighlighter1_218_236_Closed_Image.style.display='inline'; Codehighlighter1_218_236_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_218_236_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_218_236_Closed_Text.style.display='none'; Codehighlighter1_218_236_Open_Image.style.display='inline'; Codehighlighter1_218_236_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> Ygxx getYgxx() </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_218_236_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_218_236_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> ygxx;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img id="Codehighlighter1_270_293_Open_Image" onclick="this.style.display='none'; Codehighlighter1_270_293_Open_Text.style.display='none'; Codehighlighter1_270_293_Closed_Image.style.display='inline'; Codehighlighter1_270_293_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none;" id="Codehighlighter1_270_293_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_270_293_Closed_Text.style.display='none'; Codehighlighter1_270_293_Open_Image.style.display='inline'; Codehighlighter1_270_293_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">    </span><span style="color: rgb(0, 0, 255);">public</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">void</span><span style="color: rgb(0, 0, 0);"> setYgxx(Ygxx ygxx) </span><span style="border: 1px solid rgb(128, 128, 128); display: none; background-color: rgb(255, 255, 255);" id="Codehighlighter1_270_293_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_270_293_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: rgb(0, 0, 255);">this</span><span style="color: rgb(0, 0, 0);">.ygxx </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> ygxx;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />}</span></span></div><br />   3錛?Jsry.java榪欎釜javabean涓彧鏈変竴涓睘鎬э紝灝辨槸鎴戜滑涓婇潰鍒氭墠鏂板緩鐨凧sryId榪欎釜綾誨璞★紱鍐呭濡備笅錛?br /><p>public class Jsry implements java.io.Serializable {</p><p> // Constructors<br /> private JsryId id;</p><p> /** default constructor */<br /> public Jsry() {<br /> }</p><p> /** full constructor */<br /> public Jsry(JsryId id) {<br />  this.id = id;<br /> }</p><p> public JsryId getId() {<br />  return id;<br /> }</p><p> public void setId(JsryId id) {<br />  this.id = id;<br /> }<br />}</p>絎笁姝ワ細dao涓柟娉曞涓嬶細<br /><p>public void save(Jsry jsry) {<br />  log.debug("saving Jsry instance");<br />  try {<br />   getHibernateTemplate().saveOrUpdate(jsry);<br />   log.debug("save successful");<br />  } catch (RuntimeException re) {<br />   log.error("save failed", re);<br />   throw re;<br />  }<br /> }</p><p> public void delete(Jsry jsry) {<br />  log.debug("deleting Jsry instance");<br />  try {<br />   getHibernateTemplate().delete(jsry);<br />   log.debug("delete successful");<br />  } catch (RuntimeException re) {<br />   log.error("delete failed", re);<br />   throw re;<br />  }<br /> }</p><p> public Jsry findById(com.insigma.hr.eduj.jsry.model.JsryId id) {<br />  log.debug("getting Jsry instance with id: " + id);<br />  try {<br />   Jsry instance = (Jsry) getHibernateTemplate().get(<br />     "com.insigma.hr.eduj.jsry.model.Jsry", id);<br />   return instance;<br />  } catch (RuntimeException re) {<br />   log.error("get failed", re);<br />   throw re;<br />  }<br /> }<br /> <br /> public List getJsgllist(String sql) {<br />  String sqls = "select t.* from Jsgl t where 1=1 " + sql;<br />  SQLQuery query = getHibernateTemplate().getSessionFactory()<br />    .getCurrentSession().createSQLQuery(sqls);<br />  query.addEntity("t", Jsry.class);<br />  List topList = query.list();<br />  return topList;<br /> }</p><br />絎洓姝ワ細嫻嬭瘯<br /><p> public static void main(String[] args) {<br />  // TODO Auto-generated method stub<br />   ApplicationContext appContext = new FileSystemXmlApplicationContext("/src/applicationContext.xml");<br />      JsryService jsryService=(JsryService) appContext.getBean("jsryService");<br />      </p><p>  Jsry jsry = new Jsry();<br />  JsryId id = new JsryId();<br />  Jsgl jsgl = new Jsgl();<br />  jsgl.setJsbh(1);<br />  <br />  Ygxx ygxx = new Ygxx();<br />  ygxx.setYgbh("1");<br />  id.setYgxx(ygxx);<br />  id.setJsgl(jsgl);<br />  <br />  jsry.setId(id);<br />  jsryService.save(jsry);<br /> }</p><br /><br /><br /><br /><img src ="http://www.tkk7.com/senlin-blog/aggbug/388279.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2012-09-21 17:19 <a href="http://www.tkk7.com/senlin-blog/archive/2012/09/21/388279.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>struts2欏甸潰鍒癮ction涓璬ate綾誨瀷鑷姩杞崲http://www.tkk7.com/senlin-blog/archive/2012/09/20/struts2.htmlJJCEAJJCEAThu, 20 Sep 2012 01:11:00 GMThttp://www.tkk7.com/senlin-blog/archive/2012/09/20/struts2.htmlhttp://www.tkk7.com/senlin-blog/comments/388140.htmlhttp://www.tkk7.com/senlin-blog/archive/2012/09/20/struts2.html#Feedback0http://www.tkk7.com/senlin-blog/comments/commentRss/388140.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/388140.html涓嬮潰鏄緥瀛?div style="padding: 4px 5px 4px 4px; border: 1px solid rgb(204, 204, 204); width: 98%; font-size: 13px; word-break: break-all; background-color: rgb(238, 238, 238);">package com.insigma.hr.comm;

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

import ognl.DefaultTypeConverter;

@SuppressWarnings(
"unchecked")
public class DateConverter extends DefaultTypeConverter {
    
public Object convertValue(Map context, Object value, Class toType) {
        
try {
            
if (toType == Date.class// 濡傛灉鎯寵漿鎹㈢殑鏄疍ate綾誨瀷鏃跺皢鍋氫互涓嬫搷浣?br />                // 鍥犱負鍦⊿truts2閲屼細琛ㄥ崟浼犺繃鏉ョ殑闈炲瓧絎︿覆鏁版嵁杞崲涓篠tring[],鎵浠ヨ繖閲屽緱鍙栫涓涓?/span>
                String dataStr = ((String[]) value)[0];
                SimpleDateFormat f 
= new SimpleDateFormat("yyyy-MM-dd"); // 杞崲涓鴻嚜宸辨兂瑕佹棩鏈熸牸寮?/span>
                return f.parse(dataStr);
            }
 else if (toType == String.class{
                String dataStr 
= ((Date) value).toString();
                
return dataStr;
            }

        }
 catch (ParseException e) {
            
// TODO Auto-generated catch block
            e.printStackTrace();
        }

        
return null;

    }

}

絎簩姝ワ細鍦?WEB-INF/classes鏂囦歡澶癸紙src錛変笅鍒涘緩涓涓彨錛歺work-conversion.properties鐨勬枃浠?br /> 絎笁姝ワ細鍦ㄩ噷闈㈡坊鍔犱竴鍙ヨ瘽 java.util.Date=com.insigma.hr.comm.DateConverter錛堟寚涓婇潰鏂板緩鐨勭被錛夈?br /> 鐒跺悗閲嶅惎緋葷粺灝監K浜嗐? 閭d箞鍦ㄥ皢鏁版嵁鎻愪氦鍒板悗鍙版椂錛屼究鍚庤嚜鍔ㄧ殑灝嗗搴旂殑String綾誨瀷鐨勬暟鎹漿鎹㈡垚Date綾誨瀷浜嗐?

JJCEA 2012-09-20 09:11 鍙戣〃璇勮
]]>
tomcat+鑺辯敓澹抽儴緗插緗戠▼搴?/title><link>http://www.tkk7.com/senlin-blog/archive/2012/04/06/373461.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Fri, 06 Apr 2012 05:29:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2012/04/06/373461.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/373461.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2012/04/06/373461.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/373461.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/373461.html</trackback:ping><description><![CDATA[    鍙湁娉ㄥ唽鐢ㄦ埛鐧誨綍鍚庢墠鑳介槄璇昏鏂囥?a href='http://www.tkk7.com/senlin-blog/archive/2012/04/06/373461.html'>闃呰鍏ㄦ枃</a><img src ="http://www.tkk7.com/senlin-blog/aggbug/373461.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2012-04-06 13:29 <a href="http://www.tkk7.com/senlin-blog/archive/2012/04/06/373461.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>java璋冪敤webService渚嬪瓙http://www.tkk7.com/senlin-blog/archive/2007/12/18/168478.htmlJJCEAJJCEATue, 18 Dec 2007 06:12:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/12/18/168478.html鏀懼埌C://lib鐩綍涓?鍏?涓?
Snap.gif
鐒跺悗鍦ㄦ帶鍒跺彴鎵ц浠ヤ笅鍛戒護
C:\lib
java -classpath ".;commons-logging-1.0.4.jar;axis.jar;commons-discovery-0.2.jar;jaxrpc.jar;wsdl4j-1.5.1.jar;
saaj.jar;activation.jar;mail.jar" org.apache.axis.wsdl.WSDL2Java -o "abcdefg"
http://10.10.10.111/WebService/ManageUsersService.asmx?wsdl
灝變細鐩稿簲鐩綍涓嬬敓鎴愮浉搴旂殑java綾?鐒跺悗鎶婅繖浜涚被鎷峰埌浣犵殑宸ョ▼鐩綍涓?
鎶夾xis鐨?涓寘鍔犲叆鍒板伐紼嬩腑,灝卞彲浠ュ儚涓鑸被涓鏍瘋皟鐢╓ebService浜?
璋冪敤鏂規硶:
聽聽ManageUsersService聽adcInterface聽=new聽ManageUsersServiceLocator();
聽聽ManageUsersServiceSoap聽soap聽
=聽adcInterface.getManageUsersServiceSoap();
聽聽
//浠ヤ笅灝辮璋冪敤鐨勬柟娉?/span>
聽聽int聽state聽=聽soap.getUserState("admin",聽"123456",聽"UC405297917");

聽 娉?瑕佷繚璇?a >http://10.10.10.111/WebService/ManageUsersService.asmx?wsdl
聽 瀵?鍙互鍦ㄦ祻瑙堝櫒涓祴璇曘?img src ="http://www.tkk7.com/senlin-blog/aggbug/168478.html" width = "1" height = "1" />

JJCEA 2007-12-18 14:12 鍙戣〃璇勮
]]>
java閫氳繃鏈嶅姟鍚嶅姩鎬佸疄渚嬪寲瀵硅薄騫惰皟鐢ㄦ寚瀹氭柟娉?/title><link>http://www.tkk7.com/senlin-blog/archive/2007/11/19/161636.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Mon, 19 Nov 2007 07:48:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2007/11/19/161636.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/161636.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2007/11/19/161636.html#Feedback</comments><slash:comments>16</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/161636.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/161636.html</trackback:ping><description><![CDATA[ <p>絎竴姝?瀹氫箟鏈嶅姟鐨勯厤緗枃浠?鎸囧畾鏈嶅姟鍚嶅拰鏈嶅姟璺緞)</p> <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 src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #000000"><?</span> <span style="COLOR: #000000">xml聽version</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">1.0</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">聽encoding</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">gb2312</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">?></span> <span style="COLOR: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000"><!--</span> <span style="COLOR: #000000">DOCTYPE聽service</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">config聽SYSTEM聽</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">service.dtd</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">--></span> <span style="COLOR: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">service</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">config</span> <span style="COLOR: #000000">></span> <span style="COLOR: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #000000"><!--</span> <span style="COLOR: #000000">聽鐢ㄦ埛鏈嶅姟聽</span> <span style="COLOR: #000000">--></span> <span style="COLOR: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">service聽name</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">UserService</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">com.xainfor.service.UserService</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">聽template</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">normal</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">/></span> <span style="COLOR: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">service聽name</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">GnmkService</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">com.xainfor.service.GnmkService</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">聽template</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">normal</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">/></span> <span style="COLOR: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> </span> <span style="COLOR: #000000"></</span> <span style="COLOR: #000000">service</span> <span style="COLOR: #000000">-</span> <span style="COLOR: #000000">config</span> <span style="COLOR: #000000">></span> <span style="COLOR: #000000">聽</span> </div> <p>絎簩姝?緋葷粺鍒濆鍖栨槸灝嗘墍鏈夋湇鍔″悕鍜岃礬寰勫姞杞藉埌涓涓潤鎬佺殑HashMap涓?br /></p> <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_27_279_Open_Image" onclick="this.style.display='none'; Codehighlighter1_27_279_Open_Text.style.display='none'; Codehighlighter1_27_279_Closed_Image.style.display='inline'; Codehighlighter1_27_279_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /> <img id="Codehighlighter1_27_279_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_27_279_Closed_Text.style.display='none'; Codehighlighter1_27_279_Open_Image.style.display='inline'; Codehighlighter1_27_279_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">聽ServiceConfig聽</span> <span id="Codehighlighter1_27_279_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_27_279_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽HashMap聽serviceMap聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">new</span> <span style="COLOR: #000000">聽HashMap();<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img id="Codehighlighter1_143_277_Open_Image" onclick="this.style.display='none'; Codehighlighter1_143_277_Open_Text.style.display='none'; Codehighlighter1_143_277_Closed_Image.style.display='inline'; Codehighlighter1_143_277_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_143_277_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_143_277_Closed_Text.style.display='none'; Codehighlighter1_143_277_Open_Image.style.display='inline'; Codehighlighter1_143_277_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">static</span> <span style="COLOR: #000000">聽String聽getService(String聽serviceName)聽</span> <span id="Codehighlighter1_143_277_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_143_277_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽String聽serviceClass聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #000000">""</span> <span style="COLOR: #000000">;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽serviceClass聽</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">聽ServiceConfig.serviceMap.get(serviceName).toString();<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span> <span style="COLOR: #0000ff">return</span> <span style="COLOR: #000000">聽serviceClass;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span> </span> <span style="COLOR: #000000"> <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> </div> <p> <br />絎笁姝?瀹氫箟涓涓帴鍙g被</p> <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_25_51_Open_Image" onclick="this.style.display='none'; Codehighlighter1_25_51_Open_Text.style.display='none'; Codehighlighter1_25_51_Closed_Image.style.display='inline'; Codehighlighter1_25_51_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /> <img id="Codehighlighter1_25_51_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_25_51_Closed_Text.style.display='none'; Codehighlighter1_25_51_Open_Image.style.display='inline'; Codehighlighter1_25_51_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">interface</span> <span style="COLOR: #000000">聽Service聽</span> <span id="Codehighlighter1_25_51_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"> <img src="http://www.tkk7.com/images/dot.gif" /> </span> <span id="Codehighlighter1_25_51_Open_Text"> <span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽</span> <span style="COLOR: #0000ff">public</span> <span style="COLOR: #000000">聽</span> <span style="COLOR: #0000ff">void</span> <span style="COLOR: #000000">聽execute();<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span> </span> </div>絎洓姝?鏈嶅姟瀹炰緥鍖栫被<br /><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_34_731_Open_Image" onclick="this.style.display='none'; Codehighlighter1_34_731_Open_Text.style.display='none'; Codehighlighter1_34_731_Closed_Image.style.display='inline'; Codehighlighter1_34_731_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_34_731_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_34_731_Closed_Text.style.display='none'; Codehighlighter1_34_731_Open_Image.style.display='inline'; Codehighlighter1_34_731_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽ServiceExecuteHelper聽</span><span id="Codehighlighter1_34_731_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_34_731_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img id="Codehighlighter1_39_55_Open_Image" onclick="this.style.display='none'; Codehighlighter1_39_55_Open_Text.style.display='none'; Codehighlighter1_39_55_Closed_Image.style.display='inline'; Codehighlighter1_39_55_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_39_55_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_39_55_Closed_Text.style.display='none'; Codehighlighter1_39_55_Open_Image.style.display='inline'; Codehighlighter1_39_55_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span id="Codehighlighter1_39_55_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">/**聽*/</span><span id="Codehighlighter1_39_55_Open_Text"><span style="COLOR: #008000">/**</span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽*聽鏃ュ織澶勭悊<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">private</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000">聽MsgLogger聽logger聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽MsgLogger.getLogger();<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img id="Codehighlighter1_185_729_Open_Image" onclick="this.style.display='none'; Codehighlighter1_185_729_Open_Text.style.display='none'; Codehighlighter1_185_729_Closed_Image.style.display='inline'; Codehighlighter1_185_729_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_185_729_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_185_729_Closed_Text.style.display='none'; Codehighlighter1_185_729_Open_Image.style.display='inline'; Codehighlighter1_185_729_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">聽void execute(String聽servicename)聽</span><span id="Codehighlighter1_185_729_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_185_729_Open_Text"><span style="COLOR: #000000">{</span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_254_629_Open_Image" onclick="this.style.display='none'; Codehighlighter1_254_629_Open_Text.style.display='none'; Codehighlighter1_254_629_Closed_Image.style.display='inline'; Codehighlighter1_254_629_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_254_629_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_254_629_Closed_Text.style.display='none'; Codehighlighter1_254_629_Open_Image.style.display='inline'; Codehighlighter1_254_629_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">try</span><span style="COLOR: #000000">聽</span><span id="Codehighlighter1_254_629_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_254_629_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">楠岃瘉鏈嶅姟鏄惁瀛樺湪</span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽String聽servicClass聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽ServiceConfig.getService(servicename);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">濡傛灉鏈嶅姟瀛樺湪灝卞姞杞芥湇鍔′俊鎭?/span><span style="COLOR: #008000"><br /><img id="Codehighlighter1_407_570_Open_Image" onclick="this.style.display='none'; Codehighlighter1_407_570_Open_Text.style.display='none'; Codehighlighter1_407_570_Closed_Image.style.display='inline'; Codehighlighter1_407_570_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_407_570_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_407_570_Closed_Text.style.display='none'; Codehighlighter1_407_570_Open_Image.style.display='inline'; Codehighlighter1_407_570_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" /></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(servicClass聽</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</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">servicClass.equals(</span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">))聽</span><span id="Codehighlighter1_407_570_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_407_570_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Class聽classObject聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽Class.forName(servicClass);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽Service聽service聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽(Service)聽classObject.newInstance();<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #000000">service.execute();聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽<br /><img id="Codehighlighter1_577_625_Open_Image" onclick="this.style.display='none'; Codehighlighter1_577_625_Open_Text.style.display='none'; Codehighlighter1_577_625_Closed_Image.style.display='inline'; Codehighlighter1_577_625_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_577_625_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_577_625_Closed_Text.style.display='none'; Codehighlighter1_577_625_Open_Image.style.display='inline'; Codehighlighter1_577_625_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000">聽</span><span id="Codehighlighter1_577_625_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_577_625_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽logger.info(</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">servicename</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">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_650_697_Open_Image" onclick="this.style.display='none'; Codehighlighter1_650_697_Open_Text.style.display='none'; Codehighlighter1_650_697_Closed_Image.style.display='inline'; Codehighlighter1_650_697_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_650_697_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_650_697_Closed_Text.style.display='none'; Codehighlighter1_650_697_Open_Image.style.display='inline'; Codehighlighter1_650_697_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">catch</span><span style="COLOR: #000000">(Exception聽e)聽</span><span id="Codehighlighter1_650_697_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_650_697_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽logger.info(</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">servicename</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">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div>絎簲姝?瀹氫箟鎺ュ叿浣撴湇鍔″茍瀹炵幇鎺ュ彛綾?br /><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_44_372_Open_Image" onclick="this.style.display='none'; Codehighlighter1_44_372_Open_Text.style.display='none'; Codehighlighter1_44_372_Closed_Image.style.display='inline'; Codehighlighter1_44_372_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_44_372_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_44_372_Closed_Text.style.display='none'; Codehighlighter1_44_372_Open_Image.style.display='inline'; Codehighlighter1_44_372_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽GnmkService聽</span><span style="COLOR: #0000ff">implements</span><span style="COLOR: #000000">聽Service聽</span><span id="Codehighlighter1_44_372_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_44_372_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img id="Codehighlighter1_48_115_Open_Image" onclick="this.style.display='none'; Codehighlighter1_48_115_Open_Text.style.display='none'; Codehighlighter1_48_115_Closed_Image.style.display='inline'; Codehighlighter1_48_115_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_48_115_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_48_115_Closed_Text.style.display='none'; Codehighlighter1_48_115_Open_Image.style.display='inline'; Codehighlighter1_48_115_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span id="Codehighlighter1_48_115_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">/**/</span><span id="Codehighlighter1_48_115_Open_Text"><span style="COLOR: #008000">/*</span><span style="COLOR: #008000">聽(non-Javadoc)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽*聽@see聽com.xainfor.service.Service#println()<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽聽</span><span style="COLOR: #008000">*/</span></span><span style="COLOR: #000000"><br /><img id="Codehighlighter1_150_369_Open_Image" onclick="this.style.display='none'; Codehighlighter1_150_369_Open_Text.style.display='none'; Codehighlighter1_150_369_Closed_Image.style.display='inline'; Codehighlighter1_150_369_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_150_369_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_150_369_Closed_Text.style.display='none'; Codehighlighter1_150_369_Open_Image.style.display='inline'; Codehighlighter1_150_369_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽void execute()聽</span><span id="Codehighlighter1_150_369_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_150_369_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽TODO聽Auto-generated聽method聽stub</span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">鎵ц鐨勬槸GnmkService</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /></span><span style="COLOR: #000000"><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div><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_44_167_Open_Image" onclick="this.style.display='none'; Codehighlighter1_44_167_Open_Text.style.display='none'; Codehighlighter1_44_167_Closed_Image.style.display='inline'; Codehighlighter1_44_167_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_44_167_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_44_167_Closed_Text.style.display='none'; Codehighlighter1_44_167_Open_Image.style.display='inline'; Codehighlighter1_44_167_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽UserService聽</span><span style="COLOR: #0000ff">implements</span><span style="COLOR: #000000">聽Service聽</span><span id="Codehighlighter1_44_167_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_44_167_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽<br /><img id="Codehighlighter1_81_165_Open_Image" onclick="this.style.display='none'; Codehighlighter1_81_165_Open_Text.style.display='none'; Codehighlighter1_81_165_Closed_Image.style.display='inline'; Codehighlighter1_81_165_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_81_165_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_81_165_Closed_Text.style.display='none'; Codehighlighter1_81_165_Open_Image.style.display='inline'; Codehighlighter1_81_165_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽void execute()聽</span><span id="Codehighlighter1_81_165_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_81_165_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽TODO聽Auto-generated聽method聽stub</span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽System.out.println(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">鎵ц鐨勬槸UserService</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div>絎叚姝?嫻嬭瘯綾?br /><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_25_131_Open_Image" onclick="this.style.display='none'; Codehighlighter1_25_131_Open_Text.style.display='none'; Codehighlighter1_25_131_Closed_Image.style.display='inline'; Codehighlighter1_25_131_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_25_131_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_25_131_Closed_Text.style.display='none'; Codehighlighter1_25_131_Open_Image.style.display='inline'; Codehighlighter1_25_131_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">聽testService聽</span><span id="Codehighlighter1_25_131_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_25_131_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽<br /><img id="Codehighlighter1_75_129_Open_Image" onclick="this.style.display='none'; Codehighlighter1_75_129_Open_Text.style.display='none'; Codehighlighter1_75_129_Closed_Image.style.display='inline'; Codehighlighter1_75_129_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_75_129_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_75_129_Closed_Text.style.display='none'; Codehighlighter1_75_129_Open_Image.style.display='inline'; Codehighlighter1_75_129_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">static</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000">聽main(String聽[]聽temp)聽</span><span id="Codehighlighter1_75_129_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_75_129_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽ServiceExecuteHelper.execute("UserService");<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />聽聽聽}</span></span><span style="COLOR: #000000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span></div><img src ="http://www.tkk7.com/senlin-blog/aggbug/161636.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2007-11-19 15:48 <a href="http://www.tkk7.com/senlin-blog/archive/2007/11/19/161636.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Hibernate瀹炵幇Clob鍜孊lob瀵硅薄鐨勫瓨鍙?/title><link>http://www.tkk7.com/senlin-blog/archive/2007/11/08/159053.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Thu, 08 Nov 2007 03:32:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2007/11/08/159053.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/159053.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2007/11/08/159053.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/159053.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/159053.html</trackback:ping><description><![CDATA[ <div id="qymuqya" class="posthead"> <h2>聽聽聽聽 鏈鏂扮殑oracle10g鐨刣river錛屽凡緇忚В鍐充簡榪欎簺闂銆傛垜欏圭洰鐢?span style="COLOR: red"><strong>ojdbc14-10.2.0.3.0.jar</strong></span>榪炴帴<span style="COLOR: red">oracle9i</span>鏁版嵁搴?鍙互姝e父璇誨啓CLOB銆?br />聽聽聽聽聽聽聽聽聽Hibernate瀛樺彇Clob鍜孊lob瀵硅薄錛屽皢 <font face="Arial">clob鐢?/font><span><font face="Arial">string</font></span><span>鏂瑰紡澶勭悊銆?br /></span>聽聽聽聽聽聽聽聽 Hibernate Annotations鏂瑰紡,鍙鏄犲皠鎴怢ob綾誨瀷灝卞彲浠ワ紝瀵硅瀛楁鐨勮鍐欙紝灝辨槸涓鑸殑鎿嶄綔鏂瑰紡銆?br /><br />聽聽聽聽聽聽聽<span style="COLOR: red"><strong>聽@Lob<br /></strong></span><img id="Codehighlighter1_105_133_Open_Image" onclick="this.style.display='none'; Codehighlighter1_105_133_Open_Text.style.display='none'; Codehighlighter1_105_133_Closed_Image.style.display='inline'; Codehighlighter1_105_133_Closed_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_105_133_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_105_133_Closed_Text.style.display='none'; Codehighlighter1_105_133_Open_Image.style.display='inline'; Codehighlighter1_105_133_Open_Text.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />聽聽聽聽<span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽<span style="COLOR: red"><span style="COLOR: red"><strong>String聽</strong></span></span>getTxt()聽</span><span id="Codehighlighter1_105_133_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 alt="" src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_105_133_Open_Text"><span style="COLOR: #000000">{<br /><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽txt;<br /><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />聽聽聽聽}<br /></span></span></h2> <h2> <span> <span style="COLOR: #000000">杞:http://www.tkk7.com/bluebillow/archive/2007/11/02/157775.html</span> </span> </h2> </div> <img src ="http://www.tkk7.com/senlin-blog/aggbug/159053.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2007-11-08 11:32 <a href="http://www.tkk7.com/senlin-blog/archive/2007/11/08/159053.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦╦s涓粰textarea璧嬪?/title><link>http://www.tkk7.com/senlin-blog/archive/2007/10/29/156693.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Mon, 29 Oct 2007 07:37:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2007/10/29/156693.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/156693.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2007/10/29/156693.html#Feedback</comments><slash:comments>13</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/156693.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/156693.html</trackback:ping><description><![CDATA[document.getElementById('bt').innerText="璧嬪?;<br />娉?bt 鎸噒extarea鐨刬d,涓嶆槸name<img src ="http://www.tkk7.com/senlin-blog/aggbug/156693.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2007-10-29 15:37 <a href="http://www.tkk7.com/senlin-blog/archive/2007/10/29/156693.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>紱佺敤嫻忚鍣ㄥ悗閫鏂規硶http://www.tkk7.com/senlin-blog/archive/2007/08/21/138425.htmlJJCEAJJCEATue, 21 Aug 2007 10:01:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/08/21/138425.htmlhttp://www.tkk7.com/senlin-blog/comments/138425.htmlhttp://www.tkk7.com/senlin-blog/archive/2007/08/21/138425.html#Feedback0http://www.tkk7.com/senlin-blog/comments/commentRss/138425.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/138425.html
2007-08-20 13:00
紱佺敤嫻忚鍣ㄥ悗閫涔嬫柟娉曟瘮杈?
history鍙湁back forward鍜実o鏂規硶
history.length
鏀瑰啓浠ヤ笂鏂規硶錛屾病鐢?br />location.replace


鍦ㄨ欏電殑澶撮儴鍔犱笂

Response.Expires = 0
Response.ExpiresAbsolute = Now - 1
Response.AddHeader "progma", "no-cache"
Response.AddHeader "cache-control", "private"
Response.CacheControl = "no-cache"

浣胯欏甸潰璁塊棶鍚?鍚庨鍗沖け鏁?br />


JJCEA 2007-08-21 18:01 鍙戣〃璇勮
]]>
hibernate(緲婚〉)鍙栧嚭鎸囧畾鏉℃暟鐨勮褰?/title><link>http://www.tkk7.com/senlin-blog/archive/2007/08/09/135594.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Thu, 09 Aug 2007 10:33:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2007/08/09/135594.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/135594.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2007/08/09/135594.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/135594.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/135594.html</trackback:ping><description><![CDATA[聽聽聽聽 /**<br />聽聽聽聽 * 鏍規嵁欏電爜鍙栧嚭褰撳墠欏甸潰鐨勮褰?br />聽聽聽聽 * @param stratCount 璧峰璁板綍鍙?br />聽聽聽聽 * @param maxCount 鍙栧嚭璁板綍涓暟<br />聽聽聽聽 * @param sql 鏌ヨ鏉′歡<br />聽聽聽聽 * @return 鍖呭惈Testcode瀵硅薄鐨凩ist<br />聽聽聽聽 */聽聽聽聽聽<br /><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_73_524_Open_Image" onclick="this.style.display='none'; Codehighlighter1_73_524_Open_Text.style.display='none'; Codehighlighter1_73_524_Closed_Image.style.display='inline'; Codehighlighter1_73_524_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_73_524_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_73_524_Closed_Text.style.display='none'; Codehighlighter1_73_524_Open_Image.style.display='inline'; Codehighlighter1_73_524_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽List聽getTestcodeList(</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽startCount,聽</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽Count,聽String聽whereSQL)聽</span><span id="Codehighlighter1_73_524_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_73_524_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽startCount聽璧峰璁板綍<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽count鏄劇ず璁板綍鐨勪釜鏁?/span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽String聽sqls聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">select聽{t.*}聽from聽Testcode聽t聽</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">whereSQL;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽SQLQuery聽query聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽getHibernateTemplate().getSessionFactory().getCurrentSession().createSQLQuery(sqls);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽query.addEntity(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">t</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,Testcode.</span><span style="COLOR: #0000ff">class</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽query.setFirstResult(startCount);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽query.setMaxResults(count);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽List聽topList聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽query.list();<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽topList;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />聽聽聽聽}</span></span></div><br /><br />聽聽聽聽 /**<br />聽聽聽聽 * 璁$畻璁板綍鐨勬繪暟<br />聽聽聽聽 * @param sql 鏌ヨ鏉′歡<br />聽聽聽聽 * @return 鎬繪暟<br />聽聽聽聽 */<br /><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_50_541_Open_Image" onclick="this.style.display='none'; Codehighlighter1_50_541_Open_Text.style.display='none'; Codehighlighter1_50_541_Closed_Image.style.display='inline'; Codehighlighter1_50_541_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_50_541_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_50_541_Closed_Text.style.display='none'; Codehighlighter1_50_541_Open_Image.style.display='inline'; Codehighlighter1_50_541_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /><span style="COLOR: #000000">聽聽聽聽聽</span><span style="COLOR: #0000ff">public</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽getTestcodeCount(String聽whereSQL)聽</span><span id="Codehighlighter1_50_541_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><img src="http://www.tkk7.com/images/dot.gif" /></span><span id="Codehighlighter1_50_541_Open_Text"><span style="COLOR: #000000">{<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽TODO聽Auto-generated聽method聽stub</span><span style="COLOR: #008000"><br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" /></span><span style="COLOR: #000000">聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">int</span><span style="COLOR: #000000">聽count</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽String聽sqls聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">select聽count(*)聽as聽countRow聽from聽Testcode聽t聽</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">+</span><span style="COLOR: #000000">whereSQL;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽SQLQuery聽query聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽getHibernateTemplate().getSessionFactory().getCurrentSession().createSQLQuery(sqls);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽query.addScalar(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">countRow</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">,聽Hibernate.INTEGER);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽List聽topList聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽query.list();<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(topList.get(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">)聽</span><span style="COLOR: #000000">!=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">null</span><span style="COLOR: #000000">)<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽count聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽(Integer)聽topList.get(</span><span style="COLOR: #000000">0</span><span style="COLOR: #000000">);<br /><img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" />聽聽聽聽聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽count;<br /><img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />聽聽聽聽}</span></span></div><img src ="http://www.tkk7.com/senlin-blog/aggbug/135594.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2007-08-09 18:33 <a href="http://www.tkk7.com/senlin-blog/archive/2007/08/09/135594.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>javascript璇誨啓Cookie鍑芥暟http://www.tkk7.com/senlin-blog/archive/2007/07/31/133608.htmlJJCEAJJCEATue, 31 Jul 2007 08:37:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/07/31/133608.htmlhttp://www.tkk7.com/senlin-blog/comments/133608.htmlhttp://www.tkk7.com/senlin-blog/archive/2007/07/31/133608.html#Feedback0http://www.tkk7.com/senlin-blog/comments/commentRss/133608.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/133608.html//鍐檆ookies鍑芥暟
function SetCookie(name,value)//涓や釜鍙傛暟錛屼竴涓槸cookie鐨勫悕瀛愶紝涓涓槸鍊?br />{
聽聽聽 var Days = 30; //姝?cookie 灝嗚淇濆瓨 30 澶?br />聽聽聽 var exp聽 = new Date();聽聽聽 //new Date("December 31, 9998");
聽聽聽 exp.setTime(exp.getTime() + Days*24*60*60*1000);
聽聽聽 document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString() +";path=/100class";//path鏄痗ookie鐨勮闂礬寰?br />}
//鍙朿ookies鍑芥暟聽聽
function getCookie(name)聽聽聽聽聽聽
{
聽聽聽 var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
聽聽聽 if(arr != null)
聽聽聽 return unescape(arr[2]);
聽聽聽 else
聽聽聽 return null;

}
//鍒犻櫎cookie
function deleteCookie(name)
{
聽聽聽 var exp = new Date();
聽聽聽 exp.setTime(exp.getTime() - 1);
聽聽聽 var cval=getCookie(name);
聽聽聽 if(cval!=null)
聽聽聽 document.cookie= name + "="+cval+";expires="+exp.toGMTString();
}



JJCEA 2007-07-31 16:37 鍙戣〃璇勮
]]>
鐢ㄥ洖杞︿唬鏇縯ab閿幏寰楃劍鐐?/title><link>http://www.tkk7.com/senlin-blog/archive/2007/07/17/130813.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Tue, 17 Jul 2007 06:10:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2007/07/17/130813.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/130813.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2007/07/17/130813.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/130813.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/130813.html</trackback:ping><description><![CDATA[<script language="javascript" for="document" event="onkeydown"><br>  if(event.keyCode==13 && event.srcElement.type!='button' && event.srcElement.type!='submit' && event.srcElement.type!='reset' && event.srcElement.type!='textarea' && event.srcElement.type!='')<br>     event.keyCode=9;<br></script> <img src ="http://www.tkk7.com/senlin-blog/aggbug/130813.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2007-07-17 14:10 <a href="http://www.tkk7.com/senlin-blog/archive/2007/07/17/130813.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>js涓璫heckbox澶勭悊http://www.tkk7.com/senlin-blog/archive/2007/06/26/126293.htmlJJCEAJJCEATue, 26 Jun 2007 02:59:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/06/26/126293.htmlhttp://www.tkk7.com/senlin-blog/comments/126293.htmlhttp://www.tkk7.com/senlin-blog/archive/2007/06/26/126293.html#Feedback0http://www.tkk7.com/senlin-blog/comments/commentRss/126293.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/126293.html //checkbox鍏ㄩ?br>function checkboxAll(itemName)
{
var item = document.getElementsByName(itemName);
for (var i=0; i<item.length; i++)
{
item[i].checked = true;
}
}

 //checkbox鍏ㄤ笉閫?br>function checkboxNoAll(itemName)
{
var item = document.getElementsByName(itemName);
for (var i=0; i<item.length; i++)
{
item[i].checked = false;
}
}
//checkbox涓夋嫨涓鏉?br>function checkCount(itemName)
{
   var intCount=0;
  var item = document.getElementsByName(itemName);
   if (item.length>1){
      for(i=0;i< item.length;i++)
      {
          if(item[i].checked)
          intCount=intCount+1;
      }
   } else {
      if(item[0].checked)
      intCount++;
   }
   return intCount;
}



JJCEA 2007-06-26 10:59 鍙戣〃璇勮
]]>
Log4j澶勭悊緋葷粺鏃ュ織http://www.tkk7.com/senlin-blog/archive/2007/05/24/119551.htmlJJCEAJJCEAThu, 24 May 2007 01:23:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/05/24/119551.htmlhttp://www.tkk7.com/senlin-blog/comments/119551.htmlhttp://www.tkk7.com/senlin-blog/archive/2007/05/24/119551.html#Feedback0http://www.tkk7.com/senlin-blog/comments/commentRss/119551.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/119551.html                                                                                        緋葷粺鏃ュ織鐨勫鐞?br>鍦ㄥ簲鐢ㄧ▼搴忎腑娣誨姞鏃ュ織璁板綍鎬葷殑鏉ヨ鍩轟簬涓変釜鐩殑錛氱洃瑙嗕唬鐮佷腑鍙橀噺鐨勫彉鍖栨儏鍐碉紝鍛ㄦ湡鎬х殑璁板綍鍒版枃浠朵腑渚涘叾浠栧簲鐢ㄨ繘琛岀粺璁″垎鏋愬伐浣滐紱璺熻釜浠g爜榪愯鏃惰建榪癸紝浣滀負鏃ュ悗瀹¤鐨勪緷鎹紱鎷呭綋闆嗘垚寮鍙戠幆澧冧腑鐨勮皟璇曞櫒鐨勪綔鐢紝鍚戞枃浠舵垨鎺у埗鍙版墦鍗頒唬鐮佺殑璋冭瘯淇℃伅銆?br>鏈鏅氱殑鍋氭硶灝辨槸鍦ㄤ唬鐮佷腑宓屽叆璁稿鐨勬墦鍗拌鍙ワ紝榪欎簺鎵撳嵃璇彞鍙互杈撳嚭鍒版帶鍒跺彴鎴栨枃浠朵腑錛屾瘮杈冨ソ鐨勫仛娉曞氨鏄瀯閫犱竴涓棩蹇楁搷浣滅被鏉ュ皝瑁呮綾繪搷浣滐紝鑰屼笉鏄涓緋誨垪鐨勬墦鍗拌鍙ュ厖鏂ヤ簡浠g爜鐨勪富浣撱?br>Log4j鏄疉pache鐨勪竴涓紑鏀炬簮浠g爜欏圭洰錛岄氳繃浣跨敤Log4j錛屾垜浠彲浠ユ帶鍒舵棩蹇椾俊鎭緭閫佺殑鐩殑鍦版槸鎺у埗鍙般佹枃浠躲丟UI緇勪歡銆佺敋鑷蟲槸濂楁帴鍙f湇鍔?鍣ㄣ丯T鐨勪簨浠惰褰曞櫒銆乁NIX Syslog瀹堟姢榪涚▼絳夛紱鎴戜滑涔熷彲浠ユ帶鍒舵瘡涓鏉℃棩蹇楃殑杈撳嚭鏍煎紡錛涢氳繃瀹氫箟姣忎竴鏉℃棩蹇椾俊鎭殑綰у埆錛屾垜浠兘澶熸洿鍔犵粏鑷村湴鎺у埗鏃ュ織鐨勭敓鎴愯繃紼嬨傛渶浠や漢鎰熷叴瓚g殑灝?鏄紝榪欎簺鍙互閫氳繃涓涓厤緗枃浠舵潵鐏墊椿鍦拌繘琛岄厤緗紝鑰屼笉闇瑕佷慨鏀瑰簲鐢ㄧ殑浠g爜銆?br>                                                                                  鏃ュ織鐨勭駭鍒?br>姣忔潯杈撳嚭鐨勬棩蹇楄姹?logging request)涔熼兘鏈変竴涓猯evel錛屽鏋滆request鐨刲evel澶т簬絳変簬璇?level錛屽垯璇equest灝嗚澶勭悊錛堢О涓篹nabled錛夛紱鍚﹀垯璇equest灝嗚蹇界暐銆傛晠鍙緱鐭ワ細

   1. logger鐨刲evel瓚婁綆錛岃〃紺鴻logger瓚婅緇?br>   2. logging request鐨刲evel瓚婇珮錛岃〃紺鴻logging request瓚婁紭鍏堣緭鍑?/p>

Level綾諱腑棰勫畾涔変簡浜斾釜level錛屽畠浠殑澶у皬鍏崇郴濡備笅錛?br>Level.DEBUG < Level.INFO < Level.WARN < Level.ERROR < Level.FATAL

                                                                      鍦ㄤ唬鐮佷腑鎵撳嵃鏃ュ織
絎竴姝ユ槸鍙栧緱LOG錛孡OG閲囩敤APACHE鐨凜OMMON-LOGGING鍖呮潵鑾峰緱銆?br>protected static Log log = LogFactory.getLog(XXX.class);

絎簩姝ュ氨鏄疞OG鐨勮緭鍑猴紝LOG杈撳嚭鍙渶瑕佸~鍐欐弿榪版ф枃瀛楋紝涓嶈鍦↙OG杈撳嚭涓寘鍚換浣曠被鍚嶏紝鏃墮棿錛屾棩蹇楃駭鍒瓑淇℃伅銆傝緭鍑篖OG鏃跺繀欏繪嫻嬪綋鍓峀OG鐨勮緭鍑洪厤緗儏鍐點?br>if (log.isDebugEnabled()) {
            log.debug("Initializing module path '" + config.getPrefix() +
                "' data sources");
}

                                                        淇敼LOG閰嶇疆鏂囦歡錛屾墦鍗拌嚜宸辨ā鍧楃殑LOG
鍦ㄧ郴緇熺殑configs鐩綍涓嬶紝宸茬粡鏈変簡緙虹渷鐨凩OG4J閰嶇疆鏂囦歡log4j.properties銆?br>緙虹渷閰嶇疆涓嬪寘鎷簡鎵撳嵃IBATIS鍜孞DBC鎵ц鎯呭喌
# JDBC logging configuration...
log4j.logger.com.ibatis=DEBUG
log4j.logger.java.sql=DEBUG
log4j.logger.org.springframework.jdbc.core=DEBUG

濡傛灉鎯寵褰曡嚜宸辯殑寮鍙戠被鐨勬棩蹇楋紝鍙互綆鍗曠殑澧炲姞涓琛?br>log4j.logger.com.spsoft.sample.service=DEBUG
log4j.logger.com.spsoft.sample.service.dao.SampleDao=INFO
com.spsoft.sample.service鏄寘鍚嶏紝褰撶劧涔熷彲浠ョ洿鎺ユ寚瀹氱被鍚嶃?br>



JJCEA 2007-05-24 09:23 鍙戣〃璇勮
]]>
絎竴涓猘jax渚嬪瓙鍑洪敊闂鐨勮В鍐?/title><link>http://www.tkk7.com/senlin-blog/archive/2007/04/30/114690.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Mon, 30 Apr 2007 00:47:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2007/04/30/114690.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/114690.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2007/04/30/114690.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/114690.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/114690.html</trackback:ping><description><![CDATA[鑷凡鎸塧jax鐨勬暀紼嬪啓鐨勪竴涓狧ello鐨勪緥瀛?鍦╰omcat 5.5 涓嬪彲浠ユ甯歌繍琛?鍙槸縐誨埌tomcat5.0涓嬫姤鑴氭湰閿欒,鍚庢潵鎶奷wr.jar1.1鎹㈡垚浜哾wr.jar2.0灝卞ソ浜? <img src ="http://www.tkk7.com/senlin-blog/aggbug/114690.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2007-04-30 08:47 <a href="http://www.tkk7.com/senlin-blog/archive/2007/04/30/114690.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>javamail鍙戦佹櫘閫氱數瀛愰偖浠?/title><link>http://www.tkk7.com/senlin-blog/archive/2007/04/05/108684.html</link><dc:creator>JJCEA</dc:creator><author>JJCEA</author><pubDate>Thu, 05 Apr 2007 05:43:00 GMT</pubDate><guid>http://www.tkk7.com/senlin-blog/archive/2007/04/05/108684.html</guid><wfw:comment>http://www.tkk7.com/senlin-blog/comments/108684.html</wfw:comment><comments>http://www.tkk7.com/senlin-blog/archive/2007/04/05/108684.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/senlin-blog/comments/commentRss/108684.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/senlin-blog/services/trackbacks/108684.html</trackback:ping><description><![CDATA[<p>package com.infoer.util;</p> <p><br>import java.util.Date;<br>import java.util.Properties;<br>import javax.mail.Address;<br>import javax.mail.Authenticator;<br>import javax.mail.Message;<br>import javax.mail.PasswordAuthentication;<br>import javax.mail.Session;<br>import javax.mail.Transport;<br>import javax.mail.internet.InternetAddress;<br>import javax.mail.internet.MimeMessage;</p> <p>/**<br> * 鍙戦佹櫘閫氶偖浠訛紝鎺ュ彈鏅氶偖浠?鍙戦佸甫鏈夐檮浠剁殑閭歡錛屾帴鏀跺甫鏈夐檮浠剁殑閭歡 鍙戦乭tml褰㈠紡鐨勯偖浠訛紝鎺ュ彈html褰㈠紡鐨勯偖浠?鍙戦佸甫鏈夊浘鐗囩殑閭歡絳夊仛浜嗕竴涓葷粨銆?br> */<br>public class sendmail {<br> private String host = "smtp.163.com";</p> <p> private String username = "myshiyh";</p> <p> private String password = "123456";</p> <p> private String mail_head_name = "this is head of this mail";</p> <p> private String mail_head_value = "this is head of this mail";</p> <p> private String mail_to = "<a href="mailto:myshiyh@126.com">myshiyh@126.com</a>";</p> <p> private String mail_from = "<a href="mailto:myshiyh@163.com">myshiyh@163.com</a>";</p> <p> private String mail_subject = "this is the subject of this test mail";</p> <p> private String mail_body = "this is the mail_body of this test mail";</p> <p> private String personalName = "鎴戠殑閭歡";</p> <p><br> public sendmail() {<br> }</p> <p> /**<br>  * 姝ゆ浠g爜鐢ㄦ潵鍙戦佹櫘閫氱數瀛愰偖浠?br>  */<br> public void send() throws SendMailException {<br>  try {<br>   Properties props = new Properties(); // 鑾峰彇緋葷粺鐜<br>   Authenticator auth = new Email_Autherticator(); // 榪涜閭歡鏈嶅姟鍣ㄧ敤鎴瘋璇?br>            props.put("mail.smtp.host", host);<br>   props.put("mail.smtp.auth", "true");<br>   Session session = Session.getDefaultInstance(props, auth);<br>   // 璁劇疆session,鍜岄偖浠舵湇鍔″櫒榪涜閫氳銆?br>   MimeMessage message = new MimeMessage(session);<br>   message.setContent("Hello", "text/plain"); // 璁劇疆閭歡鏍煎紡<br>   message.setSubject(mail_subject); // 璁劇疆閭歡涓婚<br>   message.setText(mail_body); // 璁劇疆閭歡姝f枃<br>   message.setHeader(mail_head_name, mail_head_value); // 璁劇疆閭歡鏍囬<br>   message.setSentDate(new Date()); // 璁劇疆閭歡鍙戦佹棩鏈?br>   Address address = new InternetAddress(mail_from, personalName);<br>   message.setFrom(address); // 璁劇疆閭歡鍙戦佽呯殑鍦板潃<br>   Address toAddress = new InternetAddress(mail_to); // 璁劇疆閭歡鎺ユ敹鏂圭殑鍦板潃<br>   message.addRecipient(Message.RecipientType.TO, toAddress);<br>   Transport.send(message); // 鍙戦侀偖浠?br>   System.out.println("send ok!");<br>  } catch (Exception ex) {<br>   ex.printStackTrace();<br>   throw new SendMailException(ex.getMessage());<br>  }<br> }</p> <p> /**<br>  * 鐢ㄦ潵榪涜鏈嶅姟鍣ㄥ鐢ㄦ埛鐨勮璇?br>  */<br> public class Email_Autherticator extends Authenticator {<br>  public Email_Autherticator() {<br>   super();<br>  }</p> <p>  public Email_Autherticator(String user, String pwd) {<br>   super();<br>   username = user;<br>   password = pwd;<br>  }</p> <p>  public PasswordAuthentication getPasswordAuthentication() {<br>   return new PasswordAuthentication(username, password);<br>  }<br> }</p> <p> public static void main(String[] args) {<br>  sendmail sendmail = new sendmail();<br>   try {<br>   sendmail.send();        <br>   }<br>   catch (Exception  ex) {<br>   }<br> }</p> <p>}<br></p> <img src ="http://www.tkk7.com/senlin-blog/aggbug/108684.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/senlin-blog/" target="_blank">JJCEA</a> 2007-04-05 13:43 <a href="http://www.tkk7.com/senlin-blog/archive/2007/04/05/108684.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍦╦ava涓疄鐜板excel鎿嶄綔http://www.tkk7.com/senlin-blog/archive/2007/03/30/107488.htmlJJCEAJJCEAFri, 30 Mar 2007 07:15:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/03/30/107488.htmlhttp://www.tkk7.com/senlin-blog/comments/107488.htmlhttp://www.tkk7.com/senlin-blog/archive/2007/03/30/107488.html#Feedback0http://www.tkk7.com/senlin-blog/comments/commentRss/107488.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/107488.html聽聽jsp欏甸潰涓婄殑浠g爜濡備笅:
聽response.setContentType("application/vnd.ms-excel;charset=GBK");
聽聽聽String filename = new String(("excel鍚嶇О.xls").getBytes(),
聽聽聽聽聽"ISO-8859-1");
聽聽聽response.setHeader("Content-Disposition", "attachment;"
聽聽聽聽聽+ " filename=" + filename);
聽聽聽 <%
聽聽聽 JavaBean bean = new JavaBean();
聽聽聽聽 bean .loadDataToExcel(response);
聽 %>
聽 JavaBean 欏甸潰涓婄殑浠g爜濡備笅:
聽聽聽
聽聽public boolean loadDataToExcel(HttpServletResponse response,
聽聽聽List items) {
聽聽聽 boolean flag = false;
聽聽聽 try {
聽聽聽WritableWorkbook wwb = Workbook.createWorkbook(response
聽聽聽聽聽.getOutputStream());
聽聽聽WritableSheet asheet = wwb.createSheet("澶勭悊淇℃伅緇熻琛?, 52);
聽聽聽// 瀹氫箟涓涓柊瀛椾綋錛屽弬鏁拌鏄庯細瀛椾綋錛屽ぇ灝忥紝鏍煎紡錛屾槸鍚︽枩浣擄紝棰滆壊錛堥粯璁ら粦鑹詫級
聽聽聽WritableFont wfc = new WritableFont(WritableFont.ARIAL, 12,
聽聽聽聽聽WritableFont.BOLD, false);
聽聽聽// 瀹氫箟涓涓柊瀛椾綋錛屽弬鏁拌鏄庯細瀛椾綋錛屽ぇ灝忥紝鏍煎紡錛屾槸鍚︽枩浣擄紝棰滆壊錛堥粯璁ら粦鑹詫級//涓嶅姞綺?br />聽聽聽WritableFont wf = new WritableFont(WritableFont.ARIAL, 12,
聽聽聽聽聽WritableFont.NO_BOLD, false);
聽聽聽// 璁劇疆鍗曞厓鏍兼牸寮?br />聽聽聽WritableCellFormat wchB = new WritableCellFormat(wfc);
聽聽聽// 浣垮崟鍏冩牸灞呬腑
聽聽聽wchB.setAlignment(Alignment.CENTRE);
聽聽聽// 璁劇疆鍒惰〃鍗曚綅錛嗗埗琛ㄦ棩鏈熸牸寮?br />聽聽聽WritableCellFormat date = new WritableCellFormat(wf);
聽聽聽// 璁劇疆琛ㄥご鏍煎紡
聽聽聽WritableCellFormat tTitle = new WritableCellFormat(wf);
聽聽聽tTitle.setAlignment(Alignment.CENTRE);
聽聽聽tTitle.setVerticalAlignment(VerticalAlignment.CENTRE);
聽聽聽tTitle.setWrap(true);
聽聽聽tTitle.setBorder(Border.ALL, BorderLineStyle.THIN);
聽聽聽// 璁劇疆鏁版嵁鏄劇ず鏍煎紡
聽聽聽WritableCellFormat data = new WritableCellFormat(wf);
聽聽聽data.setBorder(Border.ALL, BorderLineStyle.THIN);
聽聽聽// data.setb
聽聽聽// 鍒嗗埆璁劇疆鍗曞厓鏍肩殑楂樺害錛嗗搴?/p>

聽聽聽asheet.setColumnView(0, 12);
聽聽聽asheet.setColumnView(1, 12);
聽聽聽asheet.setColumnView(2, 8);
聽聽聽asheet.setColumnView(3, 8);
聽聽聽asheet.setColumnView(4, 8);
聽聽聽asheet.setColumnView(5, 8);
聽聽聽asheet.setColumnView(6, 8);
聽聽聽asheet.setColumnView(7, 7);
聽聽聽asheet.setColumnView(8, 7);
聽聽聽asheet.setColumnView(9, 7);
聽聽聽asheet.setColumnView(10, 7);
聽聽聽asheet.setColumnView(11, 7);
聽聽聽asheet.setColumnView(12, 7);
聽聽聽asheet.setColumnView(13, 7);
聽聽聽asheet.setColumnView(14, 7);

聽聽聽/* 寮濮嬪啓鍏ls鏂囦歡 */
聽聽聽// 瀵煎嚭excel鏂囦歡鏍囬
聽聽聽Label labelC = new Label(0, 0, "澶勭悊淇℃伅緇熻琛?, wchB);
聽聽聽asheet.addCell(labelC);
聽聽聽// 鍚堝茍絎竴琛?6涓崟鍏冩牸涓?涓綔涓烘爣棰樻爮
聽聽聽asheet.mergeCells(0, 0, 15, 0);
聽聽聽// 璁劇疆琛ㄥご
聽聽聽labelC = new Label(0, 1, "棰勬姤淇℃伅", tTitle);
聽聽聽asheet.addCell(labelC);
聽聽聽asheet.mergeCells(0, 1, 3, 1);

聽聽聽labelC = new Label(0, 2, "媯鏌ュ満", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(1, 2, "杞﹀瀷", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(2, 2, "杞﹀彿", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(3, 2, "杞翠綅鍙婂乏鍙?, tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(4, 1, "浣滀笟鍦哄鐞嗕俊鎭?, tTitle);
聽聽聽asheet.addCell(labelC);
聽聽聽asheet.mergeCells(4, 1, 15, 1);

聽聽聽labelC = new Label(4, 2, "棰勮綰у埆", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(5, 2, "媯鏌ユ椂闂?, tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(6, 2, "杞︽", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(7, 2, "緙栫粍", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(8, 2, "欏轟綅", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(9, 2, "杞綅", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(10, 2, "杞村彿", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(11, 2, "鏁呴殰鍘熷洜", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(12, 2, "瀹為檯嫻嬮噺鏁版嵁", tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(13, 2, "嫻嬮噺浜?, tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(14, 2, "澶嶆祴浜?, tTitle);
聽聽聽asheet.addCell(labelC);

聽聽聽labelC = new Label(15, 2, "澶勭悊鏂瑰紡", tTitle);
聽聽聽asheet.addCell(labelC);
聽聽聽wwb.write();
聽聽聽wwb.close();
聽聽聽flag = true;
聽聽} catch (Exception e) {
聽聽聽flag = false;
聽聽聽e.printStackTrace();
聽聽}
聽聽return flag;
聽}
娉?1.聽聽聽璇存槑asheet.mergeCells(鍒?, 琛?, 鍒?, 琛?)鍚堝茍鍗曞厓鏍?璧峰閮芥槸0
聽聽聽聽 2 .聽 鍦˙ean涓渶瑕佸鍏ヤ袱涓猨ar鍖卻ervlet.jar鍜宩xl.jar



JJCEA 2007-03-30 15:15 鍙戣〃璇勮
]]>
璇誨彇澶у浘鐗囧茍鐢熸垚涓涓皬鍥劇墖http://www.tkk7.com/senlin-blog/archive/2007/03/25/106163.htmlJJCEAJJCEASat, 24 Mar 2007 16:50:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/03/25/106163.htmlhttp://www.tkk7.com/senlin-blog/comments/106163.htmlhttp://www.tkk7.com/senlin-blog/archive/2007/03/25/106163.html#Feedback1http://www.tkk7.com/senlin-blog/comments/commentRss/106163.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/106163.html聽*聽Created聽on聽2004-10-11
聽*
聽*聽TODO聽To聽change聽the聽template聽for聽this聽generated聽file聽go聽to
聽*聽Window聽-聽Preferences聽-聽Java聽-聽Code聽Style聽-聽Code聽Templates
聽*/
package聽net.jspcn.test;

import聽java.io.File;聽
import聽java.io.FileOutputStream;聽
import聽java.awt.Image;聽
import聽java.awt.image.BufferedImage;聽

import聽com.sun.image.codec.jpeg.JPEGCodec;聽
import聽com.sun.image.codec.jpeg.JPEGImageEncoder;聽

public聽class聽JpgTest聽{聽

public聽void聽jpgTset()聽throws聽Exception{聽

File聽_file聽=聽new聽File("d:\\1.jpg");聽//璇誨叆鏂囦歡聽
Image聽src聽=聽javax.imageio.ImageIO.read(_file);聽//鏋勯營mage瀵硅薄聽
int聽wideth=src.getWidth(null);聽//寰楀埌婧愬浘瀹鉸?br />int聽height=src.getHeight(null);聽//寰楀埌婧愬浘闀柯?br />BufferedImage聽tag聽=聽new聽BufferedImage(wideth/2,height/2,BufferedImage.TYPE_INT_RGB);聽
tag.getGraphics().drawImage(src,0,0,wideth/2,height/2,null);聽//緇樺埗緙╁皬鍚庣殑鍥韭?br />FileOutputStream聽out=new聽FileOutputStream("D:\\newfile.jpg");聽//杈撳嚭鍒版枃浠舵祦聽
//File聽file聽=聽new聽File("D:\\newFile.jpg");聽
JPEGImageEncoder聽encoder聽=聽JPEGCodec.createJPEGEncoder(out);
//JPEGImageEncoder聽encoder聽=聽JPEGCodec.c
encoder.encode(tag);聽//榪慗PEG緙栫爜聽
out.close();聽
}聽
public聽static聽void聽main(String[]聽args){聽

try{聽
new聽JpgTest().jpgTset();聽
}catch(Exception聽e){聽

e.printStackTrace();聽
}聽
}聽
}聽


JJCEA 2007-03-25 00:50 鍙戣〃璇勮
]]>
Tomcat 涔辯爜闂http://www.tkk7.com/senlin-blog/archive/2007/03/25/106161.htmlJJCEAJJCEASat, 24 Mar 2007 16:47:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/03/25/106161.htmlhttp://www.tkk7.com/senlin-blog/comments/106161.htmlhttp://www.tkk7.com/senlin-blog/archive/2007/03/25/106161.html#Feedback0http://www.tkk7.com/senlin-blog/comments/commentRss/106161.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/106161.html鍦═omcat 5.0.28鐨剆erver.xml鏂囦歡涓鍔犺繖鏍蜂竴鍙ヨ瘽URIncoding="GBK"錛屽彲浠ラ槻姝㈠嚭鐜頒貢鐮?/p>

淇敼鍦版柟錛?/p>

聽聽聽 <Connector
port="8080"聽聽聽聽聽聽聽聽聽聽聽聽聽聽 maxHttpHeaderSize="8192"
聽聽聽聽聽聽聽聽聽聽聽聽聽聽 maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
聽聽聽聽聽聽聽聽聽聽聽聽聽聽 enableLookups="false" redirectPort="8443" acceptCount="100"
聽聽聽聽聽聽聽聽聽聽聽聽聽聽 connectionTimeout="20000" disableUploadTimeout="true" URIncoding="GBK"/>



JJCEA 2007-03-25 00:47 鍙戣〃璇勮
]]>
瑙e喅濡備綍璇誨彇.jar涓殑鏂囦歡璺緞 http://www.tkk7.com/senlin-blog/archive/2007/03/25/106154.htmlJJCEAJJCEASat, 24 Mar 2007 16:32:00 GMThttp://www.tkk7.com/senlin-blog/archive/2007/03/25/106154.htmlhttp://www.tkk7.com/senlin-blog/comments/106154.htmlhttp://www.tkk7.com/senlin-blog/archive/2007/03/25/106154.html#Feedback2http://www.tkk7.com/senlin-blog/comments/commentRss/106154.htmlhttp://www.tkk7.com/senlin-blog/services/trackbacks/106154.html鎯呭喌涓嬶紝鎴戜滑闇瑕佹妸鎴戜滑鐨刢lass鎵撳寘鎴恓ar鏂囦歡錛岃繘琛屼嬌鐢紝榪欐椂灝變細鍙戠幇錛屾垜浠厛鍓嶅鏋滄病鏈夎冭檻鍒拌繖浜涳紝鍙兘灝辮涓嶉氫簡錛岄偅涔堬紝璇ュ浣曡В鍐沖憿錛熸柟娉曞涓?br />錛?br />鏈夊涓嬭礬寰?錛?br />Web-info--|-->classes--->conf-->config.properties
聽聽 |-->lib
姝ゆ椂鍔犲叆鎴戜滑闇瑕佽鍙朿onfig.properties錛屽湪涓嶄嬌鐢╦ar鍖呮椂錛屼嬌鐢ㄥ涓嬫柟寮忚鍙栵紝涓嶅け涓轟竴縐嶆柟娉曪細
File f = new File(this.getClass().getResource("/").getPath());
f = new File(f.getPath() + "/conf/config.properties");
娉細f.getPath()鍗充負褰揷lass鎵鍦ㄧ殑緇濆璺緞銆傚錛歝:\javasrc\web-inf\classes
鐒跺悗,瀵規枃浠跺璞¤繘琛屽鐞嗭紝灝辮兘鎶婇厤緗俊鎭鍙栧嚭鏉ヤ簡錛屼絾鏄姞鍏ュ涓奵lass琚墦鍖呮垚jar鏂囦歡錛岄偅涔堬紝鍦ㄧ▼搴忔墽琛屽埌榪欓噷鏃訛紝灝變細鏃犳硶鎵懼埌閰嶇疆鏂囦歡錛岄偅涔堣濡備綍澶勭悊鍛紵
澶勭悊鏂規硶濡備笅錛?br />String s_config="conf/config.properties";
聽聽聽 File file= new File(String.valueOf(ClassLoader.getSystemResource(config)));
聽聽聽 String filepaths=聽 file.getPath();

JJCEA 2007-03-25 00:32 鍙戣〃璇勮
]]>
主站蜘蛛池模板: www.亚洲色图.com| 老司机亚洲精品影院无码| 国产午夜无码片免费| 78成人精品电影在线播放日韩精品电影一区亚洲 | 亚洲va中文字幕无码| 日韩免费在线视频| 亚洲爆乳成av人在线视菜奈实 | 亚洲最大的成人网| 亚洲精品无码精品mV在线观看| 18禁成人网站免费观看| 杨幂最新免费特级毛片| 亚洲一本综合久久| 全部免费a级毛片| 18禁黄网站禁片免费观看不卡| 免费观看又污又黄在线观看| 久久精品国产亚洲AV嫖农村妇女 | 亚洲综合精品伊人久久| 亚洲色欲久久久综合网| 黑人粗长大战亚洲女2021国产精品成人免费视频 | 亚洲国产精品xo在线观看| 亚洲精品线路一在线观看| 无遮免费网站在线入口| 三级网站免费观看| 免费在线观看亚洲| 亚洲av乱码一区二区三区| 久久综合图区亚洲综合图区| 少妇亚洲免费精品| 成人免费无码大片a毛片| 97国产在线公开免费观看| 美女无遮挡拍拍拍免费视频| 亚洲丶国产丶欧美一区二区三区| 久久久婷婷五月亚洲97号色 | 婷婷亚洲久悠悠色悠在线播放| 国产乱子伦片免费观看中字| 99久久99这里只有免费费精品| 成全视成人免费观看在线看| 特级毛片aaaa级毛片免费| 亚洲欧美日韩综合久久久久| 亚洲精品免费在线| 日韩亚洲Av人人夜夜澡人人爽| 综合久久久久久中文字幕亚洲国产国产综合一区首 |