锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品高清久久久,亚洲精品成人久久,亚洲AV无码日韩AV无码导航http://www.tkk7.com/apl330/category/48127.htmlzh-cnMon, 09 May 2011 00:18:14 GMTMon, 09 May 2011 00:18:14 GMT60JSTL鐨勪嬌鐢?/title><link>http://www.tkk7.com/apl330/archive/2011/05/08/349798.html</link><dc:creator>jack zhai</dc:creator><author>jack zhai</author><pubDate>Sun, 08 May 2011 15:16:00 GMT</pubDate><guid>http://www.tkk7.com/apl330/archive/2011/05/08/349798.html</guid><wfw:comment>http://www.tkk7.com/apl330/comments/349798.html</wfw:comment><comments>http://www.tkk7.com/apl330/archive/2011/05/08/349798.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/apl330/comments/commentRss/349798.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/apl330/services/trackbacks/349798.html</trackback:ping><description><![CDATA[1銆佸湪jsp鏂囦歡鐨勫ご閮ㄥ姞鍏?br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">%@ taglib </span><span style="color: #ff0000">prefix</span><span style="color: #0000ff">="c"</span><span style="color: #ff0000"> uri</span><span style="color: #0000ff">="http://java.sun.com/jstl/core_rt"</span><span style="color: #ff0000">%</span><span style="color: #0000ff">></span></div> <br /> 2銆?lt;c:froEach/>鐨勪嬌鐢?br /> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><span style="color: #008080"> 1</span><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">%<br /> </span><span style="color: #008080"> 2</span><span style="color: #800000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        OperationDAO </span><span style="color: #ff0000">opDao </span><span style="color: #0000ff">= new </span><span style="color: #ff0000">OperationDAOImpl();<br /> </span><span style="color: #008080"> 3</span><span style="color: #ff0000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        List<Operation</span><span style="color: #0000ff">></span><span style="color: #000000"> ops = opDao.getAll_();<br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        MenuDAO meDao = new MenuDAOImpl();<br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        List</span><span style="color: #0000ff"><</span><span style="color: #800000">Menu</span><span style="color: #0000ff">></span><span style="color: #000000"> mes = meDao.getAll_Lazy(1) ;<br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    %><br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">table </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="demoTable"</span><span style="color: #ff0000"> border</span><span style="color: #0000ff">="1"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">thead</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000">id</span><span style="color: #0000ff"></</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000">鏄劇ず鍚嶇О</span><span style="color: #0000ff"></</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000">閾炬帴</span><span style="color: #0000ff"></</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000">鎵灞炶彍鍗?/span><span style="color: #0000ff"></</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000">鏄惁鍙</span><span style="color: #0000ff"></</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000">鎿嶄綔</span><span style="color: #0000ff"></</span><span style="color: #800000">th</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff"></</span><span style="color: #800000">thead</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">tbody</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"><</span><span style="color: #800000">c:forEach </span><span style="color: #ff0000">var</span><span style="color: #0000ff">="op"</span><span style="color: #ff0000"> items</span><span style="color: #0000ff">="<%=ops %>"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                    </span><span style="color: #0000ff"><</span><span style="color: #800000">tr </span><span style="color: #ff0000">id</span><span style="color: #0000ff">="${op.op_Id}"</span><span style="color: #ff0000"><br /> </span><span style="color: #008080">19</span><span style="color: #ff0000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                        class</span><span style="color: #0000ff">="{op_Id:${op.op_Id},op_displayName:'${op.op_displayName}',op_link:'${op.op_link }',me_name:'${op.menu.me_displayName}',viewMode:'${op.viewMode}'}"</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                        </span><span style="color: #0000ff"><</span><span style="color: #800000">td </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="op_Id"</span><span style="color: #0000ff">></span><span style="color: #000000">${op.op_Id}</span><span style="color: #0000ff"></</span><span style="color: #800000">td</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                        </span><span style="color: #0000ff"><</span><span style="color: #800000">td </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="op_displayName"</span><span style="color: #0000ff">></span><span style="color: #000000">${op.op_displayName}</span><span style="color: #0000ff"></</span><span style="color: #800000">td</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                        </span><span style="color: #0000ff"><</span><span style="color: #800000">td </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="op_link"</span><span style="color: #0000ff">></span><span style="color: #000000">${op.op_link }</span><span style="color: #0000ff"></</span><span style="color: #800000">td</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                        </span><span style="color: #0000ff"><</span><span style="color: #800000">td </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="me_name"</span><span style="color: #0000ff">></span><span style="color: #000000">${op.menu.me_displayName}</span><span style="color: #0000ff"></</span><span style="color: #800000">td</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">24</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                        </span><span style="color: #0000ff"><</span><span style="color: #800000">td </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="viewMode"</span><span style="color: #0000ff">></span><span style="color: #000000">viewMode:${op.viewMode}</span><span style="color: #0000ff"></</span><span style="color: #800000">td</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">25</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                        </span><span style="color: #0000ff"><</span><span style="color: #800000">td</span><span style="color: #0000ff">><</span><span style="color: #800000">a </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="editRecord"</span><span style="color: #ff0000"> href</span><span style="color: #0000ff">="anotherPage.html"</span><span style="color: #0000ff">></span><span style="color: #000000">Edit</span><span style="color: #0000ff"></</span><span style="color: #800000">a</span><span style="color: #0000ff">></span><span style="color: #000000"> |<br /> </span><span style="color: #008080">26</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                            </span><span style="color: #0000ff"><</span><span style="color: #800000">a </span><span style="color: #ff0000">class</span><span style="color: #0000ff">="deleteRecord"</span><span style="color: #ff0000"> href</span><span style="color: #0000ff">="anotherPage.html"</span><span style="color: #0000ff">></span><span style="color: #000000">Delete</span><span style="color: #0000ff"></</span><span style="color: #800000">a</span><span style="color: #0000ff">></</span><span style="color: #800000">td</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">27</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                    </span><span style="color: #0000ff"></</span><span style="color: #800000">tr</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">28</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />                </span><span style="color: #0000ff"></</span><span style="color: #800000">c:forEach</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">29</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #0000ff"></</span><span style="color: #800000">tbody</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> </span><span style="color: #008080">30</span><span style="color: #000000"><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">table</span><span style="color: #0000ff">></span></div> <br /> <br /> <br /> <img src ="http://www.tkk7.com/apl330/aggbug/349798.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/apl330/" target="_blank">jack zhai</a> 2011-05-08 23:16 <a href="http://www.tkk7.com/apl330/archive/2011/05/08/349798.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JQuery鎻掍歡錛歍ableEditor璇曠敤http://www.tkk7.com/apl330/archive/2011/04/09/347925.htmljack zhaijack zhaiFri, 08 Apr 2011 22:27:00 GMThttp://www.tkk7.com/apl330/archive/2011/04/09/347925.htmlhttp://www.tkk7.com/apl330/comments/347925.htmlhttp://www.tkk7.com/apl330/archive/2011/04/09/347925.html#Feedback0http://www.tkk7.com/apl330/comments/commentRss/347925.htmlhttp://www.tkk7.com/apl330/services/trackbacks/347925.html榪欎釜鎻掍歡鍦↗Query1.5.1鐗堜笅鏃犳硶浣跨敤銆?/p>

欏圭洰鍦板潃錛?a title="http://dev.iceburg.net/jquery/tableEditor/demo.php" >http://dev.iceburg.net/jquery/tableEditor/demo.php

html鏂囦歡錛?/p>

html


js鏂囦歡

js



jack zhai 2011-04-09 06:27 鍙戣〃璇勮
]]>
鐢ㄤ簬Request鐨勫伐鍏風被 from DLOG4Jhttp://www.tkk7.com/apl330/archive/2011/03/31/347341.htmljack zhaijack zhaiThu, 31 Mar 2011 00:33:00 GMThttp://www.tkk7.com/apl330/archive/2011/03/31/347341.htmlhttp://www.tkk7.com/apl330/comments/347341.htmlhttp://www.tkk7.com/apl330/archive/2011/03/31/347341.html#Feedback0http://www.tkk7.com/apl330/comments/commentRss/347341.htmlhttp://www.tkk7.com/apl330/services/trackbacks/347341.html浠嶥LOG4J璇誨埌鐨凴equest鐨勫伐鍏風被錛?/p>

 

java



jack zhai 2011-03-31 08:33 鍙戣〃璇勮
]]>
榪囨護鏁忔劅璇嶆眹綾?/title><link>http://www.tkk7.com/apl330/archive/2011/03/31/347339.html</link><dc:creator>jack zhai</dc:creator><author>jack zhai</author><pubDate>Thu, 31 Mar 2011 00:16:00 GMT</pubDate><guid>http://www.tkk7.com/apl330/archive/2011/03/31/347339.html</guid><wfw:comment>http://www.tkk7.com/apl330/comments/347339.html</wfw:comment><comments>http://www.tkk7.com/apl330/archive/2011/03/31/347339.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/apl330/comments/commentRss/347339.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/apl330/services/trackbacks/347339.html</trackback:ping><description><![CDATA[<div id="880u000" class="cnblogs_code"><pre><img id="Code_Closed_Image_200867" onclick="this.style.display='none'; document.getElementById('Code_Closed_Text_200867').style.display='none'; document.getElementById('Code_Open_Image_200867').style.display='inline'; document.getElementById('Code_Open_Text_200867').style.display='inline';" align="top" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" width="11" height="16"><img style="display: none" id="Code_Open_Image_200867" onclick="this.style.display='none'; document.getElementById('Code_Open_Text_200867').style.display='none'; getElementById('Code_Closed_Image_200867').style.display='inline'; getElementById('Code_Closed_Text_200867').style.display='inline';" align="top" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" width="11" height="16"><span id="Code_Closed_Text_200867" class="cnblogs_code_Collapse">java</span><span style="display: none" id="Code_Open_Text_200867"><span style="color: #008000">/* * SiteAction.java * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Author: Winter Lau * http://dlog4j.sourceforge.net */</span> package com.liusoft.dlog4j; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import javax.servlet.ServletContext; import org.apache.commons.lang.StringUtils; <span style="color: #008000">/** * DLOG鍦ㄥ畨鍏ㄦ柟闈㈢殑涓浜涘鐞嗘柟娉? * 鏁忔劅璇嶆眹琛細/WEB-INF/conf/illegal_glossary.dat * * @author Winter Lau */</span> <a style="color: #0000ff" >public</a> class DLOGSecurityManager { <span style="color: #008000">/** * 鍒濆鍖? * @param sc * @throws IOException * * @see com.liusoft.dlog4j.servlet.DLOG_ActionServlet#init() */</span> <a style="color: #0000ff" >public</a> static void init(ServletContext sc) throws IOException { IllegalGlossary.init(sc); } <a style="color: #0000ff" >public</a> static void destroy(){ IllegalGlossary.destroy(); } <span style="color: #008000">/** * 鏁忔劅瀛楁眹 * @author Winter Lau */</span> <a style="color: #0000ff" >public</a> static class IllegalGlossary { private final static String file_glossary = "<span style="color: #8b0000">/WEB-INF/conf/illegal_glossary.dat</span>"; private static List glossary = <a style="color: #0000ff" >null</a>; <a style="color: #0000ff" >public</a> static void init(ServletContext sc) throws IOException { glossary = new ArrayList(1000); <a style="color: #0000ff" >if</a>(sc!=<a style="color: #0000ff" >null</a>) loadIllegalGlossary(sc); } <a style="color: #0000ff" >public</a> static void destroy(){ <a style="color: #0000ff" >if</a>(glossary!=<a style="color: #0000ff" >null</a>) glossary.clear(); } <span style="color: #008000">/** * 鍔犺澆鏁忔劅璇嶆眹琛? * @param sc * @throws IOException */</span> private synchronized static void loadIllegalGlossary(ServletContext sc) throws IOException { InputStream <a style="color: #0000ff" >in</a> = sc.getResourceAsStream(file_glossary); BufferedReader reader = <a style="color: #0000ff" >null</a>; try{ reader = new BufferedReader(new InputStreamReader(<a style="color: #0000ff" >in</a>)); do{ String line = reader.readLine(); <a style="color: #0000ff" >if</a>(line==<a style="color: #0000ff" >null</a>) <a style="color: #0000ff" >break</a>; glossary.<a style="color: #0000ff" >add</a>(line.<a style="color: #0000ff" >trim</a>()); }<a style="color: #0000ff" >while</a>(<a style="color: #0000ff" >true</a>); }finally{ <a style="color: #0000ff" >in</a>.<a style="color: #0000ff" >close</a>(); } } <span style="color: #008000">/** * 鑷姩灝嗘晱鎰熻瘝姹囩敤XXX鏇挎崲 * * @param content * @return */</span> <a style="color: #0000ff" >public</a> static String autoGlossaryFiltrate(String content) { <a style="color: #0000ff" >if</a>(StringUtils.isEmpty(content)) <a style="color: #0000ff" >return</a> content; <a style="color: #0000ff" >for</a> (<a style="color: #0000ff" >int</a> i = 0; i < glossary.<a style="color: #0000ff" >size</a>(); i++) { String word = (String)glossary.<a style="color: #0000ff" >get</a>(i); content = StringUtils.replace(content, word, StringUtils .repeat("<span style="color: #8b0000">X</span>", word.length())); } <a style="color: #0000ff" >return</a> content; } <span style="color: #008000">/** * 鍒ゆ柇鏄惁瀛樺湪闈炴硶鍐呭 * @param content * @return */</span> <a style="color: #0000ff" >public</a> static boolean existIllegalWord(String content){ <a style="color: #0000ff" >if</a>(StringUtils.isEmpty(content)) <a style="color: #0000ff" >return</a> <a style="color: #0000ff" >false</a>; <a style="color: #0000ff" >for</a> (<a style="color: #0000ff" >int</a> i = 0; i < glossary.<a style="color: #0000ff" >size</a>(); i++) { String word = (String) glossary.<a style="color: #0000ff" >get</a>(i); <a style="color: #0000ff" >if</a>(content.indexOf(word)>=0) <a style="color: #0000ff" >return</a> <a style="color: #0000ff" >true</a>; } <a style="color: #0000ff" >return</a> <a style="color: #0000ff" >false</a>; } <span style="color: #008000">/** * 鍒犻櫎鍐呭涓瓨鍦ㄧ殑鍏抽敭瀛? * @param content * @return */</span> <a style="color: #0000ff" >public</a> static String deleteIllegalWord(String content){ <a style="color: #0000ff" >if</a>(StringUtils.isEmpty(content)) <a style="color: #0000ff" >return</a> content; <a style="color: #0000ff" >for</a> (<a style="color: #0000ff" >int</a> i = 0; i < glossary.<a style="color: #0000ff" >size</a>(); i++) { String word = (String) glossary.<a style="color: #0000ff" >get</a>(i); content = StringUtils.remove(content, word); } <a style="color: #0000ff" >return</a> content; } } <a style="color: #0000ff" >public</a> static void main(String[] args) throws IOException{ init(<a style="color: #0000ff" >null</a>); String <a style="color: #0000ff" >text</a> = "<span style="color: #8b0000">涓崕浜烘皯鍏卞拰鍥藉浗瀹朵富甯瘺娉戒笢錛屾垜浠彨浠栨瘺涓誨腑</span>"; System.out.println(IllegalGlossary.autoGlossaryFiltrate(<a style="color: #0000ff" >text</a>)); } } </pre></div><br></span> <p>榪欎釜綾伙紝鏄粠DLOG4J涓婂鍒扮殑銆?/p><img src ="http://www.tkk7.com/apl330/aggbug/347339.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/apl330/" target="_blank">jack zhai</a> 2011-03-31 08:16 <a href="http://www.tkk7.com/apl330/archive/2011/03/31/347339.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>commons-FileUpload涓婁紶榪囩▼http://www.tkk7.com/apl330/archive/2011/03/23/346849.htmljack zhaijack zhaiWed, 23 Mar 2011 05:01:00 GMThttp://www.tkk7.com/apl330/archive/2011/03/23/346849.htmlhttp://www.tkk7.com/apl330/comments/346849.htmlhttp://www.tkk7.com/apl330/archive/2011/03/23/346849.html#Feedback0http://www.tkk7.com/apl330/comments/commentRss/346849.htmlhttp://www.tkk7.com/apl330/services/trackbacks/346849.html1銆?/p>

ServletFileUpload.isMultipartContent(request)

媯嫻媟equest涓槸鍚﹀寘鍚湁multipart鍐呭

2銆佸鏋滄湁錛岀敓鎴怐iskFileItemFactory宸ュ巶灝嗚繘琛岀浉鍏崇殑璁劇疆

         DiskFileItemFactory factory = new DiskFileItemFactory();
        // maximum size that will be stored in memory
        factory.setSizeThreshold(maxMemSize);
        // Location to save data that is larger than maxMemSize.
        factory.setRepository(new File("d:/"));

3銆佺敓鎴愪笂浼燬ervletFileUpload綾伙紝騫跺皢DiskFileFactory宸ュ巶浼犵粰瀹冿紝騫跺ServletFileUpload榪涜閰嶇疆

       // Create a new file upload handler
        ServletFileUpload upload = new ServletFileUpload(factory);
        // maximum file size to be uploaded.
        upload.setSizeMax(maxFileSize);

4銆佷粠request寰楀埌涓婁紶鐨勬枃浠跺垪琛?/p>

            // Parse the request to get file items.
            List fileItems = upload.parseRequest(request);

            // Process the uploaded file items
            Iterator i = fileItems.iterator();

5銆佸鐞嗘枃浠訛細鍐欏叆鎴栬呭叾浠栨搷浣?/p>

while (i.hasNext()) {
                FileItem fi = (FileItem) i.next();
                if (!fi.isFormField()) {
                    // Get the uploaded file parameters
                    String fieldName = fi.getFieldName();
                    String fileName = fi.getName();
                    String contentType = fi.getContentType();
                    boolean isInMemory = fi.isInMemory();
                    long sizeInBytes = fi.getSize();
                    // Write the file
                    if (fileName.lastIndexOf("\\") >= 0) {
                        file = new File(
                                filePath
                                        + fileName.substring(fileName
                                                .lastIndexOf("\\")));
                    } else {
                        file = new File(
                                filePath
                                        + fileName.substring(fileName
                                                .lastIndexOf("\\") + 1));
                    }
                    fi.write(file);
                    out.println("Uploaded Filename: " + fileName + "<br>");
                }
            }

}

 

璇存槑錛?/font>

FileItem鎺ュ彛鏄鐢ㄦ埛涓婁紶鏂囦歡鐨勫皝瑁?/font>

DiskFileItemFactory瀹炵幇浜咶ileItemFactory鎺ュ彛錛屼富瑕佹柟娉曟湁public FileItem createItem(String fieldName, String contentType, boolean isFormField, String fileName)

ServletFileUpload浠嶧ileUpload緇ф壙錛岃孎ileUpload鍙堜粠FileUploadBase緇ф壙錛屽姛鑳斤細鍒嗘瀽浼犲叆鐨剅equest瀵硅薄銆佸緱鍒版枃浠跺垪琛‵ileItemIterator鈥︹?/font>



jack zhai 2011-03-23 13:01 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲人片在线观看天堂无码| 亚洲黄色免费在线观看| 亚洲成av人片天堂网无码】| 免费人成网站在线观看10分钟| 久久亚洲精品成人AV| 嫩草在线视频www免费看| 国产精品久久久亚洲| 午夜不卡久久精品无码免费| 亚洲高清不卡视频| 蜜臀98精品国产免费观看| 日韩亚洲产在线观看| 国产成人免费片在线观看| 黄人成a动漫片免费网站| 亚洲国产精品视频| 久久久精品午夜免费不卡| 久久久久亚洲av无码专区喷水 | 性xxxx黑人与亚洲| 嫩草视频在线免费观看| 特级毛片A级毛片100免费播放| 亚洲国产精品嫩草影院久久| 国产成人免费AV在线播放| 亚洲毛片一级带毛片基地| 四虎影院在线免费播放| eeuss影院免费92242部| 亚洲麻豆精品果冻传媒| 国产伦一区二区三区免费| 99热在线日韩精品免费| 亚洲w码欧洲s码免费| 婷婷综合缴情亚洲狠狠尤物| 久艹视频在线免费观看| avtt天堂网手机版亚洲| 区久久AAA片69亚洲| 999国内精品永久免费观看| 免费国产污网站在线观看不要卡| 日韩精品一区二区亚洲AV观看 | 亚洲高清无码在线观看| 免费高清国产视频| 亚洲精品动漫免费二区| 久久精品亚洲一区二区| 免费人成在线观看网站视频| 99精品热线在线观看免费视频|