锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产日韩在线人成下载,亚洲成网777777国产精品,中文国产成人精品久久亚洲精品AⅤ无码精品http://www.tkk7.com/cccp21/zh-cnSun, 11 May 2025 06:05:06 GMTSun, 11 May 2025 06:05:06 GMT60JDBC鏌ヨ鍔ㄦ佸皝瑁?/title><link>http://www.tkk7.com/cccp21/archive/2009/01/26/252588.html</link><dc:creator>cccp21</dc:creator><author>cccp21</author><pubDate>Mon, 26 Jan 2009 10:38:00 GMT</pubDate><guid>http://www.tkk7.com/cccp21/archive/2009/01/26/252588.html</guid><wfw:comment>http://www.tkk7.com/cccp21/comments/252588.html</wfw:comment><comments>http://www.tkk7.com/cccp21/archive/2009/01/26/252588.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.tkk7.com/cccp21/comments/commentRss/252588.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cccp21/services/trackbacks/252588.html</trackback:ping><description><![CDATA[JDBC閽堝鏉′歡涓暟涓嶅畾鐨勬煡璇紝涓鑸殑鍋氭硶鏄洿鎺ユ嫾瑁呮煡璇㈠瓧絎︿覆錛屼絾鏄繖鏍峰仛鏃犳硶鎶靛盡娉ㄥ叆鏀誨嚮錛岃繕鏄灝佽鎵嶅畨鍏紝浣嗘槸灝佽瀵規(guī)潯浠朵釜鏁般佺被鍨嬩笉瀹氾紝鏄緢鏈夊洶闅劇殑錛屾渶榪戠粓浜庢壘鍒頒簡瑙e喅鍔炴硶錛?br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000ff;">public</span><span style="color: #000000;"> </span><span style="color: #0000ff;">class</span><span style="color: #000000;"> queryDAOImpl </span><span style="color: #0000ff;">implements</span><span style="color: #000000;"> queryDAO {<br />     </span><span style="color: #008000;">/**</span><span style="color: #008000;"><br />      * 鍔ㄦ佹嫾瑁呮煡璇?br />      * </span><span style="color: #808080;">@param</span><span style="color: #008000;"> mq 灝佽鏌ヨ鏉′歡鐨勭被<br />      * </span><span style="color: #808080;">@return</span><span style="color: #008000;"><br />      * </span><span style="color: #808080;">@throws</span><span style="color: #008000;"> java.sql.SQLException<br />      </span><span style="color: #008000;">*/</span><span style="color: #000000;"><br />     </span><span style="color: #0000ff;">public</span><span style="color: #000000;"> List</span><span style="color: #000000;"><</span><span style="color: #000000;">Map</span><span style="color: #000000;">></span><span style="color: #000000;"> queryAll(MnewsQ mq) </span><span style="color: #0000ff;">throws</span><span style="color: #000000;"> SQLException {</span><span style="color: #000000;"><br />         List</span><span style="color: #000000;"><</span><span style="color: #000000;">Map</span><span style="color: #000000;">></span><span style="color: #000000;"> v </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> Vector</span><span style="color: #000000;"><</span><span style="color: #000000;">Map</span><span style="color: #000000;">></span><span style="color: #000000;">();<br />         Connection con </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">null</span><span style="color: #000000;">;<br />         PreparedStatement pstmt </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">null</span><span style="color: #000000;">;<br />         ResultSet rs </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">null</span><span style="color: #000000;">;<br />         Vector t </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> Vector();   </span><span style="color: #008000;">//</span><span style="color: #008000;">鍌ㄥ瓨鏌ヨ鏉′歡</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        Vector</span><span style="color: #000000;"><</span><span style="color: #000000;">String</span><span style="color: #000000;">></span><span style="color: #000000;"> t2 </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> Vector</span><span style="color: #000000;"><</span><span style="color: #000000;">String</span><span style="color: #000000;">></span><span style="color: #000000;">();   </span><span style="color: #008000;">//</span><span style="color: #008000;">鍌ㄥ瓨鏌ヨ鏉′歡綾誨瀷</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        String sql </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;">SELECT * FROM mnews WHERE mnews.sc=0</span><span style="color: #000000;">"</span><span style="color: #000000;">;<br />         </span><span style="color: #008000;">//</span><span style="color: #008000;">濡傛灉鎻愪氦浜嗘煡璇㈡潯浠秅j (int鍨?</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (mq.getGj() </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">) {<br />             sql </span><span style="color: #000000;">=</span><span style="color: #000000;"> sql </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;"> AND gj=?</span><span style="color: #000000;">"</span><span style="color: #000000;">;<br />             t.add(mq.getGj());<br />             t2.add(</span><span style="color: #000000;">"</span><span style="color: #000000;">int</span><span style="color: #000000;">"</span><span style="color: #000000;">);<br />         }<br />         </span><span style="color: #008000;">//</span><span style="color: #008000;">濡傛灉鎻愪氦浜嗘煡璇㈡潯浠秅jz4 (String鍨?</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">        </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (mq.getGjz4() </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;"> mq.getGjz4().length() </span><span style="color: #000000;">></span><span style="color: #000000;"> </span><span style="color: #000000;">0</span><span style="color: #000000;">) {<br />             sql </span><span style="color: #000000;">=</span><span style="color: #000000;"> sql </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #000000;">"</span><span style="color: #000000;"> AND gjz4=?</span><span style="color: #000000;">"</span><span style="color: #000000;">;<br />             t.add(mq.getGjz4());<br />             t2.add(</span><span style="color: #000000;">"</span><span style="color: #000000;">String</span><span style="color: #000000;">"</span><span style="color: #000000;">);<br />         }<br />         </span><span style="color: #0000ff;">try</span><span style="color: #000000;"> {<br />             con </span><span style="color: #000000;">=</span><span style="color: #000000;"> ConnectionMannagerJNDI.getCon();    </span><span style="color: #008000;">//</span><span style="color: #008000;">鍙栧緱鏁版嵁搴撹繛鎺?/span><span style="color: #008000;"><br /> </span><span style="color: #000000;">            pstmt </span><span style="color: #000000;">=</span><span style="color: #000000;"> con.prepareStatement(sql);<br />             </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> paramNum </span><span style="color: #000000;">=</span><span style="color: #000000;"> t.size();    </span><span style="color: #008000;">//</span><span style="color: #008000;">鏌ヨ鏉′歡鏁伴噺</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">            </span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> i</span><span style="color: #000000;">=</span><span style="color: #000000;">0</span><span style="color: #000000;">; i</span><span style="color: #000000;"><</span><span style="color: #000000;">paramNum; i</span><span style="color: #000000;">++</span><span style="color: #000000;">) {<br />                 </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (</span><span style="color: #000000;">"</span><span style="color: #000000;">int</span><span style="color: #000000;">"</span><span style="color: #000000;">.equals(t2.get(i).toString())) {<br />                     pstmt.setInt(i </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #000000;">1</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #000000;">2</span><span style="color: #000000;">, Integer.parseInt(t.get(i).toString()));<br />                 } </span><span style="color: #0000ff;">else</span><span style="color: #000000;"> </span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (</span><span style="color: #000000;">"</span><span style="color: #000000;">String</span><span style="color: #000000;">"</span><span style="color: #000000;">.equals(t2.get(i).toString())) {<br />                     pstmt.setString(i </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #000000;">1</span><span style="color: #000000;"> </span><span style="color: #000000;">+</span><span style="color: #000000;"> </span><span style="color: #000000;">2</span><span style="color: #000000;">, t.get(i).toString());<br />                 }</span><span style="color: #008000;">//</span><span style="color: #008000;">Date銆乫loat絳夌被鍨嬩緷姝ょ被鎺?/span><span style="color: #008000;"><br /> </span><span style="color: #000000;">            }<br />             rs </span><span style="color: #000000;">=</span><span style="color: #000000;"> pstmt.executeQuery();<br />             </span><span style="color: #008000;">//</span><span style="color: #008000;">浠ュ瓧孌靛悕涓洪敭錛屼互瀛楁鍊間負(fù)鍊鹼紝灝嗘煡璇㈢粨鏋滃瓨鍏ap錛屽啀瑁呰繘Vector</span><span style="color: #008000;"><br /> </span><span style="color: #000000;">            ResultSetMetaData rsmd </span><span style="color: #000000;">=</span><span style="color: #000000;"> rs.getMetaData();<br />             </span><span style="color: #0000ff;">int</span><span style="color: #000000;"> columnNum </span><span style="color: #000000;">=</span><span style="color: #000000;"> rsmd.getColumnCount();<br />             </span><span style="color: #0000ff;">while</span><span style="color: #000000;"> (rs.next()) {<br />                 Map map </span><span style="color: #000000;">=</span><span style="color: #000000;"> </span><span style="color: #0000ff;">new</span><span style="color: #000000;"> HashMap();<br />                 </span><span style="color: #0000ff;">for</span><span style="color: #000000;"> (</span><span style="color: #0000ff;">int</span><span style="color: #000000;"> i</span><span style="color: #000000;">=</span><span style="color: #000000;">1</span><span style="color: #000000;">; i</span><span style="color: #000000;"><=</span><span style="color: #000000;">columnNum; i</span><span style="color: #000000;">++</span><span style="color: #000000;">) {<br />                     map.put(rsmd.getColumnName(i),rs.getObject(i));<br />                 }<br />                 v.add(map);<br />             }<br />         } </span><span style="color: #0000ff;">finally</span><span style="color: #000000;"> {<br />             ConnectionMannagerJNDI.releaseConnection(rs, pstmt, </span><span style="color: #0000ff;">null</span><span style="color: #000000;">, con);<br />         }<br />         </span><span style="color: #0000ff;">return</span><span style="color: #000000;"> v;<br />     }<br /> }</span></div> <br /> <br /> <img src ="http://www.tkk7.com/cccp21/aggbug/252588.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cccp21/" target="_blank">cccp21</a> 2009-01-26 18:38 <a href="http://www.tkk7.com/cccp21/archive/2009/01/26/252588.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐮磋ВNetbeansGUI緙栬緫鍣ㄦ簮浠g爜涓嶅彲緙栬緫鐨勨滅瀵嗏?/title><link>http://www.tkk7.com/cccp21/archive/2008/07/31/219146.html</link><dc:creator>cccp21</dc:creator><author>cccp21</author><pubDate>Thu, 31 Jul 2008 11:43:00 GMT</pubDate><guid>http://www.tkk7.com/cccp21/archive/2008/07/31/219146.html</guid><wfw:comment>http://www.tkk7.com/cccp21/comments/219146.html</wfw:comment><comments>http://www.tkk7.com/cccp21/archive/2008/07/31/219146.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cccp21/comments/commentRss/219146.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cccp21/services/trackbacks/219146.html</trackback:ping><description><![CDATA[鍦ㄥ仛涓涓狦UI鏃訛紝紿佺劧鍙戠幇鍦ㄦ彃鍏ヤ竴涓寜閽柟娉曟椂鎬繪槸鎻掑埌浜嗗凡鏈夌殑涓涓柟娉曚唬鐮侀噷闈紝鍚庢潵浠旂粏涓鐪嬶紝鍘熸潵鏄唬鐮佷腑鐨勪竴琛屾樉紺轟負(fù)涓嶅彲緙栬緫鐨勭伆鑹詫紝鍙繖浠g爜鏄垜鑷繁鍐欑殑鑰屼笉鏄郴緇熺敓鎴愮殑錛屾庝箞涓嶅彲緙栬緫鍛紝榪欐槸鎬庝箞鍥炰簨鍛紵鍚庢潵鎴戝共鑴嗙敤璁頒簨鏈墦寮榪欎釜鏂囦歡錛岀粨鏋滃湪涓嶅彲緙栬緫琛屽彂鐜頒簡濡備笅浠g爜錛?br /> //GEN-LAST:event_jButton1ActionPerformed<br /> 榪欎釜鍙屾枩鏉犲強(qiáng)鍚庨潰鐨勫瓧絎﹀湪Netbeans緙栬緫鍣ㄤ腑涓嶆樉紺猴紝瀹冨氨鏄喅瀹氫笉鍙紪杈戝尯鍩熺殑鏍囪錛?br /> <br /> 鑷畾涔夊嚱鏁伴灝捐涓嶅彲緙栬緫錛?br /> 涓嶅彲緙栬緫鍗曡錛氶琛岋細(xì)<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008000;">//</span><span style="color: #008000;">GEN-FIRST:event_jButton1ActionPerformed</span></div> <br /> 娉細(xì)“event_”鍚庨潰鏄嚱鏁板悕<br /> 灝捐錛?br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008000;">//</span><span style="color: #008000;">GEN-LAST:event_jButton1ActionPerformed</span></div> <br /> 涓嶅彲緙栬緫鍖哄煙錛?br /> 寮濮嬶細(xì)<br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008000;">//</span><span style="color: #008000;"> <editor-fold defaultstate="collapsed" desc="Generated Code"></span><span style="color: #008000;">//</span><span style="color: #008000;">GEN-BEGIN:initComponents</span></div> <br /> 緇撴潫錛?br /> <div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; background-color: #eeeeee; font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008000;">//</span><span style="color: #008000;"> </editor-fold></span><span style="color: #008000;">//</span><span style="color: #008000;">GEN-END:initComponents</span></div> <br /> <img src ="http://www.tkk7.com/cccp21/aggbug/219146.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cccp21/" target="_blank">cccp21</a> 2008-07-31 19:43 <a href="http://www.tkk7.com/cccp21/archive/2008/07/31/219146.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Hibernate紼嬪簭浠?4浣嶈漿縐誨埌32浣嶆満涓婅繍琛岄亣鍒扮殑闂http://www.tkk7.com/cccp21/archive/2008/04/14/192889.htmlcccp21cccp21Mon, 14 Apr 2008 10:50:00 GMThttp://www.tkk7.com/cccp21/archive/2008/04/14/192889.htmlhttp://www.tkk7.com/cccp21/comments/192889.htmlhttp://www.tkk7.com/cccp21/archive/2008/04/14/192889.html#Feedback0http://www.tkk7.com/cccp21/comments/commentRss/192889.htmlhttp://www.tkk7.com/cccp21/services/trackbacks/192889.html 鍦ㄥ紑鍙戞満涓婅繍琛屾椂錛屾姤閿欙細(xì)
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
閿欏湪榪欎竴琛岋細(xì)
int count = ((Integer)o[0]).intValue();
浣嗘槸鍦ㄦ湇鍔″櫒涓婅繍琛屾椂姝e父銆?br /> 鎶婅繖涓琛屾敼涓?br /> int count = ((Long)o[0]).intValue();
鍚庯紝鍦ㄥ紑鍙戞満涓婅繍琛屾椂姝e父錛屼絾鏄湪鏈嶅姟鍣ㄤ笂榪愯鏃舵姤閿欙紝閿欒鍐呭灝辨槸鍙嶈繃鏉ョ殑錛氭暣鍨嬩笉鑳借漿鎹㈡垚甯告暣鍨嬨?br />
鍑洪敊鐨勮鎵鍦ㄧ殑鍑芥暟錛?br />
    /** *//**
     * 鎬繪帓琛屾
     * 
@return List綾誨瀷錛屽師鏈槸ArrayList鍨嬶紝鍏冪礌鏄寘鍚」鐩簭鍙峰拰鍚嶇О鐨凙rrayList鍨?br />      */
    
public List getZong() {
        ArrayList alist 
= new ArrayList();
        org.hibernate.Session s 
= HibernateSessionFactory.currentSession();
        String hql 
= "select count(x.xmh),x,m from Xzb x,Xmb m where x.xmh=m.xh and m.sc=0 group by x.xmh order by col_0_0_ desc";
        org.hibernate.Query query 
= s.createQuery(hql);
        query.setMaxResults(
7);
        List list 
= query.list();
        Object[] o 
= null;
        
for (Iterator its = list.iterator(); its.hasNext(); ) {
            o 
= (Object[])its.next();
            Xzb xzb 
= (Xzb)o[1];
            ArrayList tmplist 
= new ArrayList();
            Xmb xmb 
= xzb.getXmh();
            tmplist.add(xmb.getXh());
            tmplist.add(xmb.getXmm());

            
int count = ((Integer)o[0]).intValue();    //int count = ((Long)o[0]).intValue();

            tmplist.add(count);
            alist.add(tmplist);
        }
        HibernateSessionFactory.closeSession();
        
return alist;
    }



鍚庢潵娉ㄦ剰鍒扮幇鍦ㄧ敤鐨勬満鍣ㄧ殑cpu鏄疍ualCore Pentium E2140錛屾槸64浣嶇殑錛岃屾湇鍔″櫒鏄疿eon Prestonia 2.8GHz錛屾槸32浣嶃傚緢鍙兘鏄?4浣嶄笌32浣嶇殑闂錛屽彲鑳?4浣嶆満涓婄殑鏁村瀷鍒頒簡32浣嶆満涓婂氨琚涓烘槸闀挎暣鍨嬨傜粡璇㈤棶鍚庡緱鐭ワ紝鎶婂嚭閿欒鏀逛負(fù)錛?br /> ((Number)o[0]).intValue();
鐢↖nteger鍜孡ong鐨勮秴綾籒umber錛岄棶棰樿В鍐熾?br /> 鍘熸潵浠ュ墠鍚鐨勭被瀹氫箟灝介噺瀹芥硾涓浜涙槸榪欎釜濂藉鍟娿?br />

cccp21 2008-04-14 18:50 鍙戣〃璇勮
]]>
鍙栧緱褰撳墠璺緞http://www.tkk7.com/cccp21/articles/170720.htmlcccp21cccp21Wed, 26 Dec 2007 13:09:00 GMThttp://www.tkk7.com/cccp21/articles/170720.htmlhttp://www.tkk7.com/cccp21/comments/170720.htmlhttp://www.tkk7.com/cccp21/articles/170720.html#Feedback0http://www.tkk7.com/cccp21/comments/commentRss/170720.htmlhttp://www.tkk7.com/cccp21/services/trackbacks/170720.html 鈶?br /> 鈻?br />
String path1 = this.getClass().getClassLoader().getResource(".").getPath();     //鍙栧緱鏍圭洰褰曪紙classes錛夎礬寰?F:/zzd/java/test/p_test/build/classes/

鈻?
getResource("XXX")     //鍙栧緱鏍圭洰褰曚笅鐨勭洰褰曘佹枃浠剁殑璺緞錛圶X涓虹洰褰曘佹枃浠跺悕/F:/zzd/java/test/p_test/build/classes/Notepad.class錛夛紝鏇存繁鐨勭洰褰曘佹枃浠朵笉琛?/span>
鈻?
getResource("/")     //涓嶈

String path = path1.substring(path1.indexOf('/'+ 1, path1.indexOf("/WEB-INF")) + "/tp/" + tpb.getWjm();    //蹇呴』path1.indexOf('/') + 1鑰屼笉鑳?錛屽洜涓簆ath1鍙兘浠ile:/寮澶?/span>


鈻?br />
getClass().getName();     //鍖呮嫭鍖呯殑綾誨悕
鈻?br />
getClass().getPackage().getName();     //鍖呭悕


浜屻丼ervlet
鈶?br /> 鈻?br />
String filePath = this.getServletContext().getRealPath("/");    //鍙兘寰楀埌web鐩綍F:\zzd\java\softdown\build\web\錛屽叾浠栨棤鏁?/span>
鈻?br />
getRealPath(".")           //鏃犳晥
鈻?br />
getRealPath("XXX")          //鏃犳晥

鈶?br /> 鈻?br />
String path = this.getClass().getClassLoader().getResource("/").getPath();    //寰楀埌綾葷洰褰?F:/zzd/java/softdown/build/web/WEB-INF/classes/
鈻?br />
getResource("XXX")        //(鍚?#8220;涓”)
鈻?br />
getResource(".")        //鍙栧緱/D:/Tomcat/common/classes/

String s = request.getServletPath();    //寰楀埌鏈琒ervlet鐨剋eb鐩稿璺緞錛?pathTest
String s = request.getRequestURI();    //寰楀埌鏈琒ervlet鐨剋eb緇濆璺緞錛?strutsTest/pathTest


涓夈丄ction
鈶?br />
String filePath = this.getServlet().getServletContext().getRealPath("/");    //寰楀埌web鐩綍F:\zzd\java\softdown\build\web\
鈶?br /> 鈻?br />
String path = this.getClass().getClassLoader().getResource("/").getPath();    //鍙栧緱鏍圭洰褰曪紙classes錛夎礬寰?F:/zzd/java/test/strutsTest2/build/web/WEB- INF/classes/
鈻?br />
getResource("XXX")         //鍚?#8220;涓”錛孹XX鍙負(fù)classes鐩綍涓嬬殑鏂囦歡錛屾洿娣辯洰褰曚笅鐨勬枃浠墮』鍐欏嚭瀹屾暣鐨勭浉瀵規(guī)牴鐩綍錛坈lasses錛夌殑璺緞錛屽錛歝om.myapp.struts

String path = p1.substring(p1.indexOf('/'+ 1, p1.lastIndexOf('/')) + "鐩稿璺緞";    //寰楀埌鐨勮礬寰勪互'/'寮澶達(dá)紝鎵浠ラ渶p1.indexOf('/') + 1澶勭悊錛涚敤p1.lastIndexOf('/')鍘繪帀鏈鍚庣殑"/XXX"


涓夈丣SP
鍙兘寰楀埌web鐩綍F:\zzd\java\test\strutsTest\build\web\錛屽叾浠栨棤鏁?br /> 鈶?br /> 鈻?br />
String path = pageContext.getServletContext().getRealPath("");               //寰楀埌web鐩綍F:\zzd\java\test\strutsTest\build\web錛堟病鏈夋渶鍚庣殑“\”錛?/span>
鈻?br />
String path = pageContext.getServletContext().getRealPath("/");          //寰楀埌web鐩綍F:\zzd\java\test\strutsTest\build\web
鈶?br /> 鈻?br />
String strPathFile2 = application.getRealPath("");        //寰楀埌web鐩綍F:\zzd\java\test\strutsTest\build\web錛堟病鏈夋渶鍚庣殑“\”錛?/span>
鈻?br />
String strPathFile2 = application.getRealPath("/");       //寰楀埌web鐩綍F:\zzd\java\test\strutsTest\build\web\

=======================
1銆佹湇鍔″櫒绔殑鍦板潃

鏈嶅姟鍣ㄧ鐨勭浉瀵瑰湴鍧鎸囩殑鏄浉瀵逛簬浣犵殑web搴旂敤鐨勫湴鍧錛岃繖涓湴鍧鏄湪鏈嶅姟鍣ㄧ瑙f瀽鐨勶紝涔熷氨鏄榪欐椂鍊欏湪jsp鍜宻ervlet涓殑鐩稿鍦板潃搴旇鏄浉瀵逛簬浣犵殑web搴旂敤錛屽嵆鐩稿浜巋ttp: //192.168.0.1/webapp/鐨勩?br />
鍏剁敤鍒扮殑鍦版柟鏈夛細(xì)

forwarder錛?br /> ervlet涓殑request.getRequestDispatcher(address);
榪欎釜address鏄湪鏈嶅姟鍣ㄧ瑙f瀽鐨勶紝鎵浠ワ紝浣犺 forwarder鍒癮.jsp搴旇榪欎箞鍐欙細(xì)request.getRequestDispatcher(“/user/a.jsp”)榪欎釜/鐩稿浜庡綋鍓嶇殑web搴旂敤webapp錛屽叾緇濆鍦板潃灝辨槸錛歨ttp://192.168.0.1/webapp/user/a.jsp銆?br />
sendRedirect錛?br /> 鍦╦sp涓?lt;%response.sendRedirect("/rtccp/user/a.jsp");%>

struts鐨勯厤緗枃浠朵腑錛宖orward璺緞搴斿綋浠?/"寮澶?br /> =====

瀵筩lass紼嬪簭鏂囦歡鏉ヨ錛宑lasses鐩綍鏄牴鐩綍


cccp21 2007-12-26 21:09 鍙戣〃璇勮
]]>
杈撳嚭姹夊瓧鐨刄nicode鍊?/title><link>http://www.tkk7.com/cccp21/archive/2007/12/05/165440.html</link><dc:creator>cccp21</dc:creator><author>cccp21</author><pubDate>Wed, 05 Dec 2007 03:50:00 GMT</pubDate><guid>http://www.tkk7.com/cccp21/archive/2007/12/05/165440.html</guid><wfw:comment>http://www.tkk7.com/cccp21/comments/165440.html</wfw:comment><comments>http://www.tkk7.com/cccp21/archive/2007/12/05/165440.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cccp21/comments/commentRss/165440.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cccp21/services/trackbacks/165440.html</trackback:ping><description><![CDATA[鏈夋椂鍊欓渶瑕佽緭鍑烘眽瀛楃殑Unicode鍊鹼紝鑰屼笖涓嶆槸鍦╬roperty鏂囦歡涓紝榪欐牱灝辨病鏈夌幇鎴愮殑鏂規(guī)硶錛屽叾瀹烇紝<br /> System.out.println((int)'鎴?);<br /> 杈撳嚭鐨勬暟瀛楀氨鏄?0榪涘埗鐨剈nicode鍊?杞負(fù)16榪涘埗鍗沖彲銆?br /> <br /> 鑷繁鍐欑殑杞崲鍑芥暟錛?br /> <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">/**</span><span style="color: rgb(0, 128, 0);"><br />      * 榪斿洖16榪涘埗瀛楃涓?br />      * </span><span style="color: rgb(128, 128, 128);">@param</span><span style="color: rgb(0, 128, 0);"> k 寰呰漿鎹㈢殑10榪涘埗鏁存暟<br />      * </span><span style="color: rgb(128, 128, 128);">@return</span><span style="color: rgb(0, 128, 0);"> 16榪涘埗瀛楃涓?br />      * </span><span style="color: rgb(128, 128, 128);">@param</span><span style="color: rgb(0, 128, 0);"> headOrNo 鏄惁鍔?0x"寮澶達(dá)紝鏄垯鍔狅紝鍚﹀垯涓嶅姞<br />      </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />     </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);">static</span><span style="color: rgb(0, 0, 0);"> String toHex(</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> k, </span><span style="color: rgb(0, 0, 255);">boolean</span><span style="color: rgb(0, 0, 0);"> headOrNo) {<br />         StringBuffer sb </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> StringBuffer(</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">);<br />         String flag </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">0x</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />         </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (k </span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">) {<br />             flag </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">-0x</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br />             k </span><span style="color: rgb(0, 0, 0);">*=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">;<br />         }<br />         </span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> t;<br />        <br />         </span><span style="color: rgb(0, 0, 255);">do</span><span style="color: rgb(0, 0, 0);"> {<br />             t </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> k </span><span style="color: rgb(0, 0, 0);">%</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">16</span><span style="color: rgb(0, 0, 0);">;<br />             </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (t </span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">9</span><span style="color: rgb(0, 0, 0);">) {<br />                 </span><span style="color: rgb(0, 0, 255);">char</span><span style="color: rgb(0, 0, 0);"> c </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">A</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">;<br />                 </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);"> (</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">; i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">t</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">10</span><span style="color: rgb(0, 0, 0);">; i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">,c</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">);<br />                 sb.insert(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,c);<br />             } </span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"> {<br />                 sb.insert(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,t);<br />             }<br />             k </span><span style="color: rgb(0, 0, 0);">/=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">16</span><span style="color: rgb(0, 0, 0);">;<br />         } </span><span style="color: rgb(0, 0, 255);">while</span><span style="color: rgb(0, 0, 0);">(k </span><span style="color: rgb(0, 0, 0);">></span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">);<br />         </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> (headOrNo) {<br />             sb.insert(</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">,flag);<br />         } </span><span style="color: rgb(0, 0, 255);">else</span><span style="color: rgb(0, 0, 0);"> {<br />             </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> sb.toString();<br />         }<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> sb.toString();<br />     }</span></div> <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">/**</span><span style="color: rgb(0, 128, 0);"><br />      * 榪斿洖瀛楃鐨剈nicode鐮佸瓧絎︿覆<br />      * </span><span style="color: rgb(128, 128, 128);">@param</span><span style="color: rgb(0, 128, 0);"> c 寰呰漿鎹㈢殑瀛楃<br />      * </span><span style="color: rgb(128, 128, 128);">@return</span><span style="color: rgb(0, 128, 0);"> 瀛楃鐨剈nicode鐮侊細(xì)/uXXXX<br />      </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />     </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);">static</span><span style="color: rgb(0, 0, 0);"> String char2Unicode(</span><span style="color: rgb(0, 0, 255);">char</span><span style="color: rgb(0, 0, 0);"> c) {<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/u</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);"> toHex(c, </span><span style="color: rgb(0, 0, 255);">false</span><span style="color: rgb(0, 0, 0);">);<br />     }</span></div>     <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">    </span><span style="color: rgb(0, 128, 0);">/**</span><span style="color: rgb(0, 128, 0);"><br />      * 榪斿洖瀛楃涓茬殑unicode鐮佸瓧絎︿覆<br />      * </span><span style="color: rgb(128, 128, 128);">@param</span><span style="color: rgb(0, 128, 0);"> s 寰呰漿鎹㈢殑瀛楃涓?br />      * </span><span style="color: rgb(128, 128, 128);">@return</span><span style="color: rgb(0, 128, 0);"> 瀛楃涓茬殑unicode鐮侊細(xì)/uXXXX/uXXXX<img src="http://www.tkk7.com/Images/dot.gif" alt="" /><img src="http://www.tkk7.com/Images/dot.gif" alt="" /><br />      </span><span style="color: rgb(0, 128, 0);">*/</span><span style="color: rgb(0, 0, 0);"><br />     </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);">static</span><span style="color: rgb(0, 0, 0);"> String getUnicode2(String s) {<br />         StringBuffer sb </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">new</span><span style="color: rgb(0, 0, 0);"> StringBuffer(</span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">);<br />         </span><span style="color: rgb(0, 0, 255);">char</span><span style="color: rgb(0, 0, 0);"> c[] </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> s.toCharArray();<br />         </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);"> (</span><span style="color: rgb(0, 0, 255);">int</span><span style="color: rgb(0, 0, 0);"> i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">; i</span><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">c.length; i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">) {<br />             sb.append(char2Unicode(c[i]));<br />         }<br />         </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> sb.toString();<br />     }</span></div> <br /> <br /> Unicode鑱旂洘鐨勭綉绔欐湁涓涓埌鐮佽〃鐨勯摼鎺ワ紝鍒楀嚭浜?6浣嶇爜鍊箋傝嫳璇紝娉曡錛屽痙璇紝钁¤悇鐗欒鍜岃タ鐝墮璇瓧絎﹂兘鍦˙asic Latin鍖猴紝鏃ヨ瀛楃鍦℉iragana鍖猴紝淇勮瀛楃鍦–yrillic鍖猴紝姹夎瀛楃鍦–JK Unified Ideographs 鍖恒?br /> <img src ="http://www.tkk7.com/cccp21/aggbug/165440.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cccp21/" target="_blank">cccp21</a> 2007-12-05 11:50 <a href="http://www.tkk7.com/cccp21/archive/2007/12/05/165440.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Apache jakarta鍖呯殑涓浜涗緷璧栨ч棶棰?/title><link>http://www.tkk7.com/cccp21/archive/2007/11/11/159757.html</link><dc:creator>cccp21</dc:creator><author>cccp21</author><pubDate>Sun, 11 Nov 2007 08:42:00 GMT</pubDate><guid>http://www.tkk7.com/cccp21/archive/2007/11/11/159757.html</guid><wfw:comment>http://www.tkk7.com/cccp21/comments/159757.html</wfw:comment><comments>http://www.tkk7.com/cccp21/archive/2007/11/11/159757.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cccp21/comments/commentRss/159757.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cccp21/services/trackbacks/159757.html</trackback:ping><description><![CDATA[commons-net渚濊禆jakarta-oro<br /> commons-fileupload渚濊禆commons-io <img src ="http://www.tkk7.com/cccp21/aggbug/159757.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cccp21/" target="_blank">cccp21</a> 2007-11-11 16:42 <a href="http://www.tkk7.com/cccp21/archive/2007/11/11/159757.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>灝佽涓庡伐鍘傛柟娉曠殑鎰忎箟http://www.tkk7.com/cccp21/archive/2007/08/13/136296.htmlcccp21cccp21Mon, 13 Aug 2007 02:03:00 GMThttp://www.tkk7.com/cccp21/archive/2007/08/13/136296.htmlhttp://www.tkk7.com/cccp21/comments/136296.htmlhttp://www.tkk7.com/cccp21/archive/2007/08/13/136296.html#Feedback0http://www.tkk7.com/cccp21/comments/commentRss/136296.htmlhttp://www.tkk7.com/cccp21/services/trackbacks/136296.html 鍙互瀵瑰璞′腑鐨勬煇涓涓睘鎬ц繘琛屾搷浣滐紝璁塊棶榪欎簺鏁版嵁瀵瑰鍙彁渚涗簡榪欎箞涓涓帴鍙c?br />
濡傛灉涓嶆彁渚涜繖浜涙柟娉曪紝灞炴ц嫢涓?private 灝卞彉寰楁棤娉曡闂簡銆?br />
濡傛灉灞炴у彉涓?public錛屽氨濂芥瘮錛屽埌閾惰鍘誨瓨閽憋紝涓嶆槸閫氳繃鏌滈潰榪涜鎿嶄綔鐨勶紝鑰屾槸鐩存帴璺戝埌閾惰鐨勯噾搴撻噷闈㈣嚜宸卞幓鎷塊挶浜嗭紝榪欐牱灝卞緢涓嶅畨鍏紝榪欎釜渚嬪瓙涓紝鍙互鎶婇摱琛岄噾搴撲腑鐨勯挶鐪嬩綔鏄煇涓瀵硅薄鐨勫睘鎬э紝鑰屾煖闈㈢殑宸ヤ綔浜哄憳銆佸嚭綰蟲煖鍙板氨鍙互鐪嬩綔鏄?set / get 鏂規(guī)硶浜嗭紝涔熷氨鏄瀵瑰鏈嶅姟鎻愪緵鏌愪簺鎺ュ彛錛屽叿浣撻噷闈㈢殑鎿嶄綔灝遍殣钘忚搗鏉ヤ簡銆?br />


浜屻佸伐鍘傛柟娉?br /> 鎸囩殑鏄牴鎹笉鍚岀殑鎯呭喌浜х敓涓嶅悓鐨勫璞★紝姣斿錛?br />
public static Dao getDao(String dbmsName) throws UnsupportDatabaseException {
if( dbmsName.equalsIgnoreCase("SQL Server") ) {
return new SqlServerDao();
else if( dbmsName.equalsIgnoreCase("Oracle") ) {
return new OracleDao();
else if( dbmsName.equalsIgnoreCase("MySQL") ) {
return new MySQLDao();
else {
throw new UnsupportDatabaseException(dbmsName);
}
}


鍏朵腑 Dao 鏄?SqlServerDao銆丱racleDao銆丮ySQLDao 鐨勬帴鍙c?br />
涓婇潰榪欐浠g爜灝辨槸涓涓吀鍨嬬殑宸ュ巶鏂規(guī)硶錛岄氳繃浼犲叆鐨勬暟鎹簱鍚嶇О鏉ョ‘瀹氾紝騫惰幏寰椾笉鍚岀殑鏁版嵁搴撳鐞嗗疄鐜般傝嫢浣跨敤鐨勬暟鎹簱騫舵病鏈夊疄鐜幫紝鍒欒繘琛屽紓甯稿鐞嗐?br />

cccp21 2007-08-13 10:03 鍙戣〃璇勮
]]>
jdom1.0甯哥敤鐢ㄦ硶http://www.tkk7.com/cccp21/archive/2007/08/10/135681.htmlcccp21cccp21Fri, 10 Aug 2007 00:33:00 GMThttp://www.tkk7.com/cccp21/archive/2007/08/10/135681.htmlhttp://www.tkk7.com/cccp21/comments/135681.htmlhttp://www.tkk7.com/cccp21/archive/2007/08/10/135681.html#Feedback0http://www.tkk7.com/cccp21/comments/commentRss/135681.htmlhttp://www.tkk7.com/cccp21/services/trackbacks/135681.html
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;


鈶?br />
String path = xml鏂囨。璺緞;

鈶?br />
SAXBuilder builder = new SAXBuilder();
Document doc 
= builder.build(path);

鈶㈠緱鍒版牴鑺傜偣錛?br />
Element e = doc.getRootElement();


浜屻佹搷浣?br /> 錛?錛夎鍙?br /> 1銆?br /> 鈶犲緱鍒版寚瀹氬瓙鑺傜偣錛?br />
e.getChild("鑺傜偣鍚?/span>");

鈶″緱鍒版寚瀹氬瓙鑺傜偣鍐呭錛?br />
e.getChild(鑺傜偣鍚?.getValue();
鎴?br />
e.getChildText(鑺傜偣鍚?;

鈶㈠緱鍒版寚瀹氬睘鎬у鹼細(xì)
e.getAttributeValue(灞炴у悕);

鈶i亶鍘嗗瓙鑺傜偣錛?br />
java.util.List l = e.getChildren();    //寰楀埌鎵鏈夊瓙鑺傜偣鍒?/span>

鎴?br />
java.util.List l = e.getChildren();    //寰楀埌鎸囧畾鍚嶅瓧鐨勫瓙鑺傜偣鍒?/span>

閬嶅巻錛?br />
        for (int i=0; i<l.size(); i++) {
            Element e2 
= (Element)l.get(i);
            ArrayList tl 
= new ArrayList();
            tl.add(e2.getChildText(
"url"));
            tl.add(e2.getChildText(
"sm"));
            list.add(tl);
        }


錛?錛夌紪杈?br />
e.getChild(鑺傜偣鍚?.setText(鍐呭);


錛?錛夋坊鍔?br /> 鈶犳柊寤鴻妭鐐?br />
Element newE = new Element(鑺傜偣鍚?;
Element sm 
= new Element(鑺傜偣鍚?;

鈶′負(fù)鑺傜偣娣誨姞鍐呭
sm.addContent(鍐呭);

鈶㈠皢涓涓妭鐐瑰姞鍏ュ彟涓涓妭鐐?br />
newE.addContent(sm);
root.addContent(newE);

鈶d負(fù)鑺傜偣娣誨姞灞炴у強(qiáng)鍊?br />
newE.setAttribute("id",id);


錛?錛夊垹闄?br /> 鍒犻櫎褰撳墠鑺傜偣錛?br />
e.getParentElement().removeContent(e);


涓夈佸啓鏂囦歡
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;

XMLOutputter outputter 
= new XMLOutputter(Format.getPrettyFormat().setEncoding("gb2312"));    //璁懼埗緙栫爜涓篻b2312浠ュ啓鍏ヤ腑鏂?/span>
java.io.OutputStream outStream = new java.io.FileOutputStream(path);
outputter.output(doc, outStream);
outStream.flush();
outStream.close();



cccp21 2007-08-10 08:33 鍙戣〃璇勮
]]>
web宸ョ▼涓嬌鐢╬roxool榪炴帴姹?/title><link>http://www.tkk7.com/cccp21/archive/2007/08/10/135680.html</link><dc:creator>cccp21</dc:creator><author>cccp21</author><pubDate>Fri, 10 Aug 2007 00:32:00 GMT</pubDate><guid>http://www.tkk7.com/cccp21/archive/2007/08/10/135680.html</guid><wfw:comment>http://www.tkk7.com/cccp21/comments/135680.html</wfw:comment><comments>http://www.tkk7.com/cccp21/archive/2007/08/10/135680.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/cccp21/comments/commentRss/135680.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/cccp21/services/trackbacks/135680.html</trackback:ping><description><![CDATA[<p><strong>1</strong>銆佷粠http://proxool.sourceforge.net/涓嬭澆proxool錛岄噴鏀緋roxool.jar鍒癢EB-INF/<span id="1661611" class="style1">lib</span><br /> <br /> <strong>2</strong>銆?1)Hibernate錛?/p> <p>銆銆鈶犮佸湪<span id="1111616" class="style1">hibernate.cfg.xml</span>涓鍔狅細(xì)<br /> </p> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.proxool.pool_alias"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">dbpool</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="hibernate.proxool.xml"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">proxool.xml</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="connection.provider_class"</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">org.hibernate.connection.ProxoolConnectionProvider</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">property</span><span style="color: rgb(0, 0, 255);">></span></div> <br /> <br /> 鈶°佸湪涓巋ibernate.cfg.xml鍚岀駭鐩綍錛坰rc鏍圭洰褰曚笅錛夊鍔?span class="style1">proxool.xml</span>鏂囦歡錛?br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><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 /> </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> the proxool configuration can be embedded within your own application's.<br />     Anything outside the "proxool" tag is ignored. </span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">something-else-entirely</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />     </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">proxool</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">alias</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">dbpool</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">alias</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);">proxool鍙兘綆$悊鐢辮嚜宸變駭鐢熺殑榪炴帴</span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">driver-url</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />             jdbc:mysql://localhost:3306/msms<br />         </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">driver-url</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">driver-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">com.mysql.jdbc.Driver</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">driver-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">driver-properties</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />             </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="user"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="sqh"</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 />             </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">property </span><span style="color: rgb(255, 0, 0);">name</span><span style="color: rgb(0, 0, 255);">="password"</span><span style="color: rgb(255, 0, 0);"> value</span><span style="color: rgb(0, 0, 255);">="sqh"</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 />         </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">driver-properties</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> proxool鑷姩渚﹀療鍚勪釜榪炴帴鐘舵佺殑鏃墮棿闂撮殧(姣),渚﹀療鍒扮┖闂茬殑榪炴帴灝遍┈涓婂洖鏀?瓚呮椂鐨勯攢姣?/span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">house-keeping-sleep-time</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">90000</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">house-keeping-sleep-time</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> 鏈灝戜繚鎸佺殑絀洪棽榪炴帴鏁?/span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">prototype-count</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">5</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">prototype-count</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> 鍏佽鏈澶ц繛鎺ユ暟,瓚呰繃浜嗚繖涓繛鎺ワ紝鍐嶆湁璇鋒眰鏃訛紝灝辨帓鍦ㄩ槦鍒椾腑絳夊欙紝鏈澶х殑絳夊緟璇鋒眰鏁扮敱maximum-new-connections鍐沖畾</span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">maximum-connection-count</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">100</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">maximum-connection-count</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 128, 0);"><!--</span><span style="color: rgb(0, 128, 0);"> 鏈灝忚繛鎺ユ暟</span><span style="color: rgb(0, 128, 0);">--></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">minimum-connection-count</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">10</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">minimum-connection-count</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />         </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">house-keeping-test-sql</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">select CURRENT_DATE</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">house-keeping-test-sql</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />     </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">proxool</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">something-else-entirely</span><span style="color: rgb(0, 0, 255);">></span></div> <br /> <p> </p> <p>銆銆錛?錛夆憼銆佸湪WEB-INF鐩綍涓嬪鍔?span class="style1">proxool.xml</span>鏂囦歡銆?/p> <p>銆銆銆鈶°侀厤緗畐eb.xml <br /> 鍦╳eb.xml涓鍔狅細(xì) 錛堣繖涓浉褰撲簬紼嬪簭涓嬌鐢↗AXPConfigurator.configure("proxool.xml", false)銆傚湪Hibernate涓笉闇瑕佽繖涓姝ワ級 <br /> <!-- 閰嶇疆鍒濆鍖杝ervlet,鍦╳eb瀹瑰櫒鍔犺澆鐨勬椂鍊欒嚜鍔ㄥ姞杞介厤緗枃浠訛紝濡傛灉涓嶆槸web紼嬪簭錛岃繖涓儴鍒嗗氨闇瑕侀氳繃寮鍙戞帴鍙f潵鍒濆鍖栦簡 --> <br /> </p> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">proxoolInitialServlet</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">org.logicalcobwebs.proxool.configuration.ServletConfigurator</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">init-param</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">param-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">xmlFile</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">param-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">param-value</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">WEB-INF/proxool.xml</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">param-value</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">init-param</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">load-on-startup</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">load-on-startup</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet</span><span style="color: rgb(0, 0, 255);">></span></div> <br /> <p> </p> <p>3銆?lt;!--閰嶇疆<span id="1111116" class="style1">鐩戞帶servlet</span>,鍏跺疄濡傛灉涓嶆兂鐩戞帶鐨勮瘽錛屽彲浠ヤ笉閰?-> <br /> </p> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">dbpoolAdmin</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">org.logicalcobwebs.proxool.admin.servlet.AdminServlet</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-class</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-mapping</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">dbpoolAdmin</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-name</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">url-pattern</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);">/dbpool</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">url-pattern</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">servlet-mapping</span><span style="color: rgb(0, 0, 255);">></span></div> <br /> <p> </p> <p>4銆侀噸璧穞omcat </p> <p>5銆佸湪紼嬪簭涓皟鐢?</p> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: rgb(0, 0, 0);">Connection con </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> DriverManager.getConnection(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">proxool.鍒悕</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);</span></div> <img src ="http://www.tkk7.com/cccp21/aggbug/135680.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/cccp21/" target="_blank">cccp21</a> 2007-08-10 08:32 <a href="http://www.tkk7.com/cccp21/archive/2007/08/10/135680.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://ebhqd.com" target="_blank">亚洲中文字幕成人在线</a>| <a href="http://quxx10.com" target="_blank">亚洲高清免费视频</a>| <a href="http://28896543.com" target="_blank">免费看国产精品麻豆</a>| <a href="http://yzxjk.com" target="_blank">亚洲色偷偷狠狠综合网</a>| <a href="http://344zx.com" target="_blank">久久亚洲成a人片</a>| <a href="http://jastrelax.com" target="_blank">久久夜色精品国产噜噜亚洲a</a>| <a href="http://sdhgjscl.com" target="_blank">日本系列1页亚洲系列</a>| <a href="http://cn-zggx.com" target="_blank">波多野结衣免费一区视频</a>| <a href="http://w6446.com" target="_blank">**真实毛片免费观看</a>| <a href="http://kouchoubao.com" target="_blank">免费毛片在线播放</a>| <a href="http://4438xx21.com" target="_blank">美腿丝袜亚洲综合</a>| <a href="http://wjjccw.com" target="_blank">亚洲精品电影在线</a>| <a href="http://www19977.com" target="_blank">校园亚洲春色另类小说合集</a>| <a href="http://xiaochidaquan.com" target="_blank">中文字幕永久免费</a>| <a href="http://tqdrhj.com" target="_blank">真人做人试看60分钟免费视频</a>| <a href="http://ksyy888.com" target="_blank">国产片免费福利片永久</a>| <a href="http://kmp77.com" target="_blank">亚洲AV无码精品色午夜在线观看</a>| <a href="http://xmjcjc.com" target="_blank">亚洲伊人久久大香线蕉啊</a>| <a href="http://meijibear.com" target="_blank">亚洲av色香蕉一区二区三区</a>| <a href="http://3344088.com" target="_blank">久久免费国产精品</a>| <a href="http://86trader.com" target="_blank">无码国产精品一区二区免费</a>| <a href="http://dzhyyy.com" target="_blank">亚洲毛片av日韩av无码</a>| <a href="http://maomi02.com" target="_blank">亚洲美女一区二区三区</a>| <a href="http://sxwlhg.com" target="_blank">美女被免费网站在线视频免费 </a>| <a href="http://www-qwh.com" target="_blank">日本免费中文字幕在线看</a>| <a href="http://www827556.com" target="_blank">色久悠悠婷婷综合在线亚洲</a>| <a href="http://tom-erc20.com" target="_blank">亚洲黄色三级网站</a>| <a href="http://kingco-glaze.com" target="_blank">看全免费的一级毛片</a>| <a href="http://yw5168.com" target="_blank">精品一区二区三区免费毛片爱 </a>| <a href="http://heifengmi.com" target="_blank">免费毛片网站在线观看</a>| <a href="http://cuuka.com" target="_blank">亚洲成AV人片在线观看无码 </a>| <a href="http://331927.com" target="_blank">亚洲手机中文字幕</a>| <a href="http://bjqhkf.com" target="_blank">草久免费在线观看网站</a>| <a href="http://jujiamy.com" target="_blank">久草视频在线免费</a>| <a href="http://222222se.com" target="_blank">狠狠亚洲婷婷综合色香五月排名 </a>| <a href="http://linmh.com" target="_blank">亚洲自偷自拍另类12p</a>| <a href="http://klno1.com" target="_blank">国产亚洲综合久久</a>| <a href="http://goldwellib.com" target="_blank">亚欧色视频在线观看免费</a>| <a href="http://aiwoqi.com" target="_blank">久久国产成人亚洲精品影院</a>| <a href="http://jj5c.com" target="_blank">亚洲熟妇无码AV不卡在线播放</a>| <a href="http://czshenyue.com" target="_blank">免费观看一区二区三区</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>