锘??xml version="1.0" encoding="utf-8" standalone="yes"?>色偷偷亚洲第一综合网,亚洲日韩国产欧美一区二区三区,激情内射亚洲一区二区三区爱妻 http://www.tkk7.com/youngturk/category/51360.htmlThe world is a fine place , and worth fighting for it.zh-cnSun, 04 Sep 2016 19:58:52 GMTSun, 04 Sep 2016 19:58:52 GMT60webwork 瀹炵幇鏁版嵁鐢熸垚text鏂囦歡錛屽茍榪涜鍘嬬緝錛屽茍榪涜涓嬭澆http://www.tkk7.com/youngturk/archive/2016/08/09/431509.htmlyoungturkyoungturkTue, 09 Aug 2016 09:49:00 GMThttp://www.tkk7.com/youngturk/archive/2016/08/09/431509.htmlhttp://www.tkk7.com/youngturk/comments/431509.htmlhttp://www.tkk7.com/youngturk/archive/2016/08/09/431509.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/431509.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/431509.html
//瀹炵幇鍘嬬緝鏂囦歡鍔熻兘錛岄噰鐢?/span>commons-io-2.0.1.jar 錛?/span>commons-compress-1.5.jar鎻掍歡
        final OutputStream out = new FileOutputStream("D:/EDI/EDi.zip");  //瀹炰緥鏂囦歡杈撳嚭嫻?/span>
        ArchiveOutputStream os = new ArchiveStreamFactory().createArchiveOutputStream(ArchiveStreamFactory.ZIP, out);  
        //瀹炰緥鍖栧瓨妗h緭鍑烘祦錛屽伐鍘傛柟娉曞垱寤簔ip鐨勫瓨妗h緭鍑烘祦
//        File f1 = new File(file.getPath());
        os.putArchiveEntry(new ZipArchiveEntry(file.getName()));  //鐢熸垚瀛樻。鏂囦歡鍚?/span>
        IOUtils.copy(new FileInputStream(file), os);  //娣誨姞鎷瘋礉瀛樻。鏂囦歡
        
        os.closeArchiveEntry();  
        os.close();  
        
        //*************************
        try {
            File input = new File("D:/EDI/EDi.zip");//鑾峰緱涓嬭澆鏂囦歡璺緞
            contentType="application/octet-stream";
            docStream = new FileInputStream(input);//鑾峰緱杈撳叆嫻佸悕縐?/span>
            contentDisposition =URLEncoder.encode(input.getName() ,"UTF-8");
           } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
           }  
           return "download";
WEBWORK鐨勬枃浠朵笅杞芥満鍒躲備嬌鐢ㄨ搗鏉ヨ繕鏄瘮杈冪畝鍗曠殑銆?/span>
涓嬮潰鏄敤娉曡鏄庯細
棣栧厛鍦ㄤ竴涓狝CTION涓紝濡傛灉鍒ゆ柇鏈夋潈闄愯繘琛屾枃浠朵笅杞姐?/span>
鍒欙細
1銆佽鍑鴻涓嬭澆鏂囦歡錛屽茍鐢熸垚涓涓祦銆?鏂囦歡鍚嶅簲褰撲粠璇鋒眰鐨剅equest涓鍑猴紝鎴栦粠鐢ㄦ埛鐨勮〃涓彇鍑恒?/span>
public String downLoadFile(String fileName){
   try {
    File input = new File("e:/engilish literature.doc");
    docStream = new FileInputStream(input);
    contentDisposition = "test.txt";
   } catch (FileNotFoundException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
   }  
   return "download";
}
2銆佸皢杈撳嚭瀵煎悜鍒頒竴涓壒孌婄殑RESULT涓幓銆傚彨鍋歋team Result銆?/span>
         <action name="register" class="com.job2easy.web.user.RegisterAction">
             <result name="success" type="dispatcher">
                 <param name="location">/home/register-result.jsp</param>
             </result>
             <result name="input">
                 <param name="location">/home/register.jsp</param>
             </result>
             <result name="download" type="stream">
                 <param name="contentType">application/x-msdownload</param>
                 <param name="inputName">docStream</param>
                 <param name="bufferSize">1024</param>              
                 <param name="contentDisposition">attachment;filename="${contentDisposition}"</param>
             </result>

             <interceptor-ref name="params"/>
         </action>
3銆佽繖涓棿鏈夊嚑涓弬鏁伴渶瑕侀厤緗細
     contentType璁炬垚 application/x-msdownload 灝卞彲浠ャ傝繖鏍鋒祻瑙堝櫒浼氫繚璇佸脊鍑轟竴涓笅杞芥枃浠剁殑瀵硅瘽妗嗐?/span>
    inputName 榪欎釜姣旇緝閲嶈錛岃繖涓悕瀛楁槸杈撳叆嫻佺殑鍚嶇О錛?浠ュ悗瑕乻team result鐨勫疄鐜扮被涓負鏍規(guī)嵁OGNL鐨勮〃杈懼紡鍘繪煡鎵劇殑銆?/span>
    contentDisposition 榪欎釜鏄笅杞戒箣鍚庯紝淇濆瓨鍦ㄧ敤鎴風(fēng)鐨勬枃浠跺悕縐般?span style="color: #ff0000;">${contentDisposition} 鐪嬩竴涓嬩唬鐮併傚鏋滃啓鎴愪笂榪扮殑鏂瑰紡錛屽氨鏈夋満浼氬湪ACTION涓緗枃浠跺悕銆?/span>
4銆佸彟澶栦竴涓弬鏁幫細contentLength灝辨槸涓嬭澆鏂囦歡鐨勫ぇ灝忥紝webwork鐨剆tream result浼間箮瀹炵幇鏈夐棶棰橈紝涓嶈兘鏍規(guī)嵁鏂囦歡鐨勫ぇ灝忓姩鎬佽繘琛岃緗紝鍙兘鍐欐銆?/span>
     榪欎釜鍙傛暟鐨勬剰涔夋槸鍛婅瘔嫻忚涓嬭澆鐨勬枃浠舵湁澶氬ぇ錛屼互渚挎祻瑙堝櫒姝g‘鐨勬樉紺鴻繘搴︽潯銆傚鏋滆繖涓姛鑳藉緢閲嶈鐨勮瘽錛屽彲浠ラ噸鏂板啓涓涓猂ESULT鏉ュ疄鐜般?/span>
欏?/dt>
0
韙?/dt>


youngturk 2016-08-09 17:49 鍙戣〃璇勮
]]>
鐩存帴璁塊棶鍚庡彴錛岃煩榪噁ilter榪囨護鍣?AuthorizationFilter.java錛宖ilter涓虹壒瀹氭潈闄愯繃婊ゅ櫒http://www.tkk7.com/youngturk/archive/2013/07/12/401496.htmlyoungturkyoungturkFri, 12 Jul 2013 05:15:00 GMThttp://www.tkk7.com/youngturk/archive/2013/07/12/401496.htmlhttp://www.tkk7.com/youngturk/comments/401496.htmlhttp://www.tkk7.com/youngturk/archive/2013/07/12/401496.html#Feedback1http://www.tkk7.com/youngturk/comments/commentRss/401496.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/401496.htmlweb.xml
<filter>
        
<filter-name>AuthorizationFilter</filter-name>
        
<filter-class>com.cenin.util.filter.AuthorizationFilter</filter-class>
    
</filter>
<filter-mapping>
        
<filter-name>AuthorizationFilter</filter-name>
        
<url-pattern>/*</url-pattern>
    </filter-mapping>
AuthorizationFilter.java
public class AuthorizationFilter implements Filter
{

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException
    {

        HttpServletRequest request = (HttpServletRequest) req;
        HttpServletResponse response = (HttpServletResponse) resp;
        HttpSession session = request.getSession();

        String servletPath = request.getServletPath();//鑾峰緱濡傦細 /baseinfo/codeBillTypeList.action

        Object user = session.getAttribute(Config.getConfig().getSessionUser());

        //鍒ゆ柇鏉冮檺
        boolean passed = true;


        /*if(user == null && (servletPath.indexOf("action")>=0 )){
            passed = false;
            String[] noLimit = Config.getConfig().getNoFilter().split(";");
            for(int i=0;i<noLimit.length;i++){
                if(servletPath.matches(noLimit[i])){
                    System.out.println(servletPath + "  " + noLimit[i]);
                    passed = true;
                    break;
                }
            }
        }
*/

        request.getRequestDispatcher(servletPath).forward(request, response);
//鎺у埗struts or xwork璺寵漿

//        if(passed)
//            chain.doFilter(request, response);
//        else
//        {
//            String modelType = request.getParameter("model.bmoduleType");
//            String particalUrl = request.getParameter("particalUrl");
//            session.setAttribute("model.bmoduleType", modelType);
//            session.setAttribute("particalUrl", particalUrl);
//            String url = Config.getConfig().getPageLogin();
//            RequestDispatcher dispatcher = request.getRequestDispatcher(url);
//            dispatcher.forward(request, response);
//        }
    }
    
public void init(FilterConfig filterConfig) throws ServletException
    
{

    }

    
public void destroy()
    
{

    }


}
xwork.xml娣誨姞
<include file="xwork-onlinehall.xml"/>
xwork
-onlinehall.xml鏂囦歡鍐呭錛?br /><package name="onlinehall" extends="cenin" namespace="/onlinehall" externalReferenceResolver="com.atlassian.xwork.ext.SpringServletContextReferenceResolver">
<action name="myOrderLoadList" class="com.cenin.web.action.onlinehall.MyOrderAction" method="myOrderLoadList">
            
<result name="success" type="freemarker">/onlinehall/myOrder.ftl</result>
        
</action>   
</package>
MyOrder.java鍐呭
public class MyOrderAction extends BaseActionSupport {
public String myOrderLoadList() throws Exception {}
}


youngturk 2013-07-12 13:15 鍙戣〃璇勮
]]>
鐢↗SP瀹炵幇涓婁紶鏂囦歡鐨勪袱縐嶆柟娉?http://www.tkk7.com/youngturk/archive/2013/01/22/394570.htmlyoungturkyoungturkTue, 22 Jan 2013 09:27:00 GMThttp://www.tkk7.com/youngturk/archive/2013/01/22/394570.htmlhttp://www.tkk7.com/youngturk/comments/394570.htmlhttp://www.tkk7.com/youngturk/archive/2013/01/22/394570.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/394570.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/394570.html闃呰鍏ㄦ枃

youngturk 2013-01-22 17:27 鍙戣〃璇勮
]]>
Struts2鏂囦歡涓婁紶鍔熻兘寮鍙?http://www.tkk7.com/youngturk/archive/2012/11/29/392239.htmlyoungturkyoungturkThu, 29 Nov 2012 15:47:00 GMThttp://www.tkk7.com/youngturk/archive/2012/11/29/392239.htmlhttp://www.tkk7.com/youngturk/comments/392239.htmlhttp://www.tkk7.com/youngturk/archive/2012/11/29/392239.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/392239.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/392239.html鎶鏈鐐?
鏈妭浠g爜璇︾粏璇存槑鏂囦歡涓婁紶鍔熻兘鐨勫紑鍙戞祦紼嬶紝浠嬬粛鐭ヨ瘑鐐瑰涓嬶細
1. 鏂囦歡涓婁紶欏甸潰鍜屾樉紺轟笂浼犳垚鍔熼〉闈唬鐮佸唴瀹廣?
2. UploadAction綾諱腑瀹炵幇涓婁紶鍔熻兘鏂規(guī)硶鍜屼笂浼犳枃浠跺睘鎬т粙緇嶃?
3. struts.xml涓璘ploadAction閰嶇疆錛屼互鍙婂瓧絎︾紪鐮併佹枃浠朵復(fù)鏃跺瓨鏀捐礬寰勯厤緗?
4. 涓婁紶鍚庢墍澶勮礬寰勫拰鏈緇堜笂浼犳垚鍔熷悗鏁堟灉灞曠ず銆?
<!---------------------鏂囦歡鍚嶏細upload.jsp----------------->
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
    
<head>
        
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
        
<title>涓婁紶鏂囦歡</title>
    
</head>
    
<body>
    
<!-- 涓婁紶鏂囦歡琛ㄥ崟瀹氫箟 -->
    
<s:form action="upload" method="post" enctype="multipart/form-data">
        
<tr>
    
<!-- 涓婁紶鏂囦歡鏍囩瀹氫箟 -->
    
<td>涓婁紶鏂囦歡:<s:file name="file"></s:file></td>
    
</tr>
    
<tr>
    
<td>鍐嶆涓婁紶鏂囦歡:<s:file name="file"></s:file></td>
    
</tr>
    
<tr>
    
<td align="left"><s:submit name="submit" value="鎻愪氦"></s:submit></td>
    
</tr>
    
</s:form>
    
</body>
</html>
 
<!-------------------涓婁紶鏂囦歡鎴愬姛鍚庣粨鏋滈〉闈㈡枃浠跺悕錛歳esult.jsp ----------------->
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
    
<head>
        
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
        
<title>涓婁紶緇撴灉</title>
    
</head>
    
<body>
        涓婁紶鏂囦歡錛?br />        
<!-- 鏄劇ず涓婁紶鎴愬姛鏂囦歡鍚?nbsp;-->
        
<s:property value="fileFileName" />
    
</body>
</html>
<!------------------鏂囦歡鍚嶏細UploadAction.java ------------------>
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;

import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;

//鏂囦歡涓婁紶Action
public class UploadAction extends ActionSupport {
    
//涓婁紶鏂囦歡瀛樻斁璺緞
    private final static String UPLOADDIR = "/upload";
    
//涓婁紶鏂囦歡闆嗗悎
    private List<File> file;
    
//涓婁紶鏂囦歡鍚嶉泦鍚?/span>
    private List<String> fileFileName;
    
//涓婁紶鏂囦歡鍐呭綾誨瀷闆嗗悎
    private List<String> fileContentType;

    
public List<File> getFile() {
        
return file;
    }


    
public void setFile(List<File> file) {
        
this.file = file;
    }


    
public List<String> getFileFileName() {
        
return fileFileName;
    }


    
public void setFileFileName(List<String> fileFileName) {
        
this.fileFileName = fileFileName;
    }


    
public List<String> getFileContentType() {
        
return fileContentType;
    }


    
public void setFileContentType(List<String> fileContentType) {
        
this.fileContentType = fileContentType;
    }


    
public String execute() throws Exception {
        
for (int i = 0; i < file.size(); i++{
            
//寰幆涓婁紶姣忎釜鏂囦歡
            uploadFile(i);
        }

        
return "success";
    }


    
//鎵ц涓婁紶鍔熻兘
    private void uploadFile(int i) throws FileNotFoundException, IOException {
        
try {
            InputStream in 
= new FileInputStream(file.get(i));
            String dir 
= ServletActionContext.getRequest().getRealPath(UPLOADDIR);
            File uploadFile 
= new File(dir, this.getFileFileName().get(i));
            OutputStream out 
= new FileOutputStream(uploadFile);
            
byte[] buffer = new byte[1024 * 1024];
            
int length;
            
while ((length = in.read(buffer)) > 0{
                out.write(buffer, 
0, length);
            }


            in.close();
            out.close();
        }
 catch (FileNotFoundException ex) {
            ex.printStackTrace();
        }
 catch (IOException ex) {
            ex.printStackTrace();
        }

    }

}
struts.xml閰嶇疆鏂囦歡涓湁鍏蟲枃浠朵笂浼犵殑閰嶇疆錛?br /><!--------------------鏂囦歡鍚嶏細struts.xml------------------->
<struts>
 <!-- 緋葷粺甯擱噺瀹氫箟錛屽畾涔変笂浼犳枃浠跺瓧絎﹂泦緙栫爜 -->
 <constant name="struts.i18n.encoding" value="gb2312"></constant>
 <!-- 緋葷粺甯擱噺瀹氫箟錛屽畾涔変笂浼犳枃浠朵復(fù)鏃跺瓨鏀捐礬寰?-->
 <constant name="struts.multipart.saveDir" value="c:\"></constant>
 <!-- Action鎵鍦ㄥ寘瀹氫箟 -->
 <package name="C04.4" extends="struts-default">
  <!-- Action鍚嶅瓧錛岀被浠ュ強瀵艱埅欏甸潰瀹氫箟 -->
  <!-- 閫氳繃Action綾誨鐞嗘墠瀵艱埅鐨勭殑Action瀹氫箟 -->
  <action name="upload" class="action.UploadAction">
   <result name="input">/jsp/upload.jsp</result>
   <result name="success">/jsp/result.jsp</result>
  </action>
 </package>
</struts>


youngturk 2012-11-29 23:47 鍙戣〃璇勮
]]>
鍏充簬struts2涓璦ction浼犲埌鍙傛暟闂http://www.tkk7.com/youngturk/archive/2012/11/22/391786.htmlyoungturkyoungturkThu, 22 Nov 2012 13:26:00 GMThttp://www.tkk7.com/youngturk/archive/2012/11/22/391786.htmlhttp://www.tkk7.com/youngturk/comments/391786.htmlhttp://www.tkk7.com/youngturk/archive/2012/11/22/391786.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/391786.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/391786.html<action name="adminEnterpriceculturesave" class="adminEnterpriceculturesaveAction" method="save">
          <result name="success" type="redirectAction">/admin/adminEnterpriceculturelist.action?enterpriceculture.enterpricetype=A</result>
灝界涓嶅ソ鐪嬫牸寮忥紝浣嗘槸鍗村緢瀹規(guī)槗鎳?
絎竴縐嶆柟寮忕殑/admin涓嶆槸鍛藉悕絀洪棿錛屾殏鏃舵垜榪樻病鏃墮棿鍘誨疄璺典粬錛岀幇鍦ㄦ湁鐐瑰繖..鍥犱負鎴戠殑鍛藉悕絀洪棿鏄繖鏍風(fēng)殑

<struts>

    <package name="enterpriceculture" namespace="/" extends="struts-default">  
        <action name="adminEnterpriceculturesave" class="adminEnterpriceculturesaveAction" method="save">
          <result name="success" type="redirectAction">/admin/adminEnterpriceculturelist.action?enterpriceculture.enterpricetype=A</result>
          <!-- <param name="enterpriceculture.enterpricetype">A</param>
          <result name="success" type="chain">
             <param name="actionName">adminEnterpriceculturelist</param>
             <param name="namespace">/</param>
          </result>-->
      <!-- <result name="success">/admin/Enterpriceculture_List.jsp</result>-->
      </action>

</package>
</struts>
絎簩縐嶆柟寮忥細
<param name="enterpriceculture.enterpricetype">A</param>
          <result name="success" type="chain">
             <param name="actionName">adminEnterpriceculturelist</param>
             <param name="namespace">/</param>
          </result>
鍘繪帀鍛藉悕絀洪棿鍥犱負鏄湪鏈枃浠剁殑榪欎釜adminEnterpriceculturelist榪涜璺寵漿錛屾墍浠ョ悊瑙h搗鏉ュ鏄撳緢澶?.


緇煎悎鎵懼埌緗戜笂鏈夊叧璧勬枡錛氬涓嬶細
chain綾誨瀷 濡備笅錛?

   <action name="getTemplate" class="tabAction" method="getTemplateByParas">
         <param name="objectId">${objectId}</param>
        <param name="param1">${param1}</param>
        <param name="items">${items}</param>
       
        <result name="success" type="chain">
         <param name="actionName">${actionName}</param>
         <param name="namespace">${namespace}</param>
        </result>
        
  </action>

       榪欐牱灝卞彲浠ュ疄鐜頒紶鍙備簡錛岃繖閲岀殑鍙傛暟鎵鏈夊璞¢兘鍙互浼狅紝鍖呮嫭map,List,set 絳夐泦鍚堜篃鍙互銆傚悓鏃惰繖閲岃繕闇瑕佹敞鎰忎竴涓皬闂錛宑hain榪欑綾誨瀷鏄疿Work涓殑result綾誨瀷,瀹冨搴旂殑綾繪槸錛?
       com.opensymphony.xwork2.ActionChainResult .   榪欓噷闇瑕佹敞鎰忎竴涓皬闂錛?actionName,namespace閮芥槸浠栫殑灞炴э紝鎵浠ュ浜庝紶榪囩殑URL鍙傛暟瑕佸仛涓涓嬪鐞嗐?
       actionName蹇呴』鏄疉ction鐨勫悕縐幫紝namespace鏄粬鍛藉悕絀洪棿錛屽繀欏諱互"/"寮澶達紝濡傦細
       /tab/getTemplate.action       鍒?namespace="/tab"   ;  actionName=”getTemplate“; 


youngturk 2012-11-22 21:26 鍙戣〃璇勮
]]>
spring涓殑 緇ф壙HibernateDaosupport鏂規(guī)硶http://www.tkk7.com/youngturk/archive/2012/11/22/391725.htmlyoungturkyoungturkThu, 22 Nov 2012 00:59:00 GMThttp://www.tkk7.com/youngturk/archive/2012/11/22/391725.htmlhttp://www.tkk7.com/youngturk/comments/391725.htmlhttp://www.tkk7.com/youngturk/archive/2012/11/22/391725.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/391725.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/391725.html涓婅堪鐨刧etHibernateTemplate鏂規(guī)硶涓殑update鏂規(guī)硶璺熸暟鎹簱璁劇疆涓婚敭鏈夊叧,鑳芥牴鎹富閿洿鏂?.涓漢鐞嗚В

youngturk 2012-11-22 08:59 鍙戣〃璇勮
]]>
灝唄tml璇█杈撳嚭鍒伴〉闈㈣漿鎹負緗戦〉琛屽紡杈撳嚭鏂規(guī)硶 escape灞炴?/title><link>http://www.tkk7.com/youngturk/archive/2012/11/15/391382.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Thu, 15 Nov 2012 07:06:00 GMT</pubDate><guid>http://www.tkk7.com/youngturk/archive/2012/11/15/391382.html</guid><wfw:comment>http://www.tkk7.com/youngturk/comments/391382.html</wfw:comment><comments>http://www.tkk7.com/youngturk/archive/2012/11/15/391382.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.tkk7.com/youngturk/comments/commentRss/391382.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/youngturk/services/trackbacks/391382.html</trackback:ping><description><![CDATA[鍦╯truts2涓?鐢╡scape灞炴?鍙互鐩存帴灝唄tml璇█,杈撳嚭鎴愪負緗戦〉褰㈠紡鍘繪帀浜嗗叾涓殑鏍囪..<img src ="http://www.tkk7.com/youngturk/aggbug/391382.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/youngturk/" target="_blank">youngturk</a> 2012-11-15 15:06 <a href="http://www.tkk7.com/youngturk/archive/2012/11/15/391382.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>EL琛ㄨ揪寮忎笉璧蜂綔鐢ㄥ師鍥?/title><link>http://www.tkk7.com/youngturk/archive/2012/11/13/391246.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Tue, 13 Nov 2012 03:04:00 GMT</pubDate><guid>http://www.tkk7.com/youngturk/archive/2012/11/13/391246.html</guid><wfw:comment>http://www.tkk7.com/youngturk/comments/391246.html</wfw:comment><comments>http://www.tkk7.com/youngturk/archive/2012/11/13/391246.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/youngturk/comments/commentRss/391246.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/youngturk/services/trackbacks/391246.html</trackback:ping><description><![CDATA[web.xml涓?.4鐗堟湰鐨勯粯璁ゅ鍏ョ殑standerd.jar,鍜宩stl.jar鏄嬌鐢╡l琛ㄨ揪寮忕殑鍖呮槸鍚姩鐨?br />鑰?.5鐗堟湰鐨剋eb.xml涓粯璁ゆ槸鍏抽棴鐨?br />鎵浠ュ湪2.5鐨勬墍鏈塲sp涓渶瑕佸惎鍔ㄤ竴涓?br />鐢?lt;% page isELIgnored="false"%><br /><br /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">el琛ㄨ揪寮忎笉璧蜂綔鐢?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">        浠婂ぉ鐢╡l琛ㄨ揪寮忥紝鑰佹槸寰椾笉鍒板悗鍙頒紶榪囨潵鐨勫箋傝瀵煎叆鐨刯ar鍖呭拰鏍囩搴撲篃閮藉鍏ヤ簡銆傝繕鏄笉璧蜂綔鐢ㄣ傚悗鏉ュ湪緗戜笂鎵懼埌涓綃囨枃绔犮傝В鍐充簡銆傚師鏉ユ槸鐗堟湰鐨勯棶棰樸傜幇鍦ㄨ創(chuàng)涓涓嬨?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">tomcat5.0鐨勭増鏈? 浣跨敤浜嗕綆鐗堟湰錛屽彧姹傜ǔ瀹氥?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">web.xml</span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><?xml version="1.0" encoding="ISO-8859-1"?></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><web-app xmlns="http://java.sun.com/xml/ns/j2ee"</span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"</span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    version="2.4"></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">2.4鐗堟湰榛樿鍚敤el琛ㄨ揪寮忥紝濡傛灉浣跨敤2.5鐗堟湰錛岄粯璁l琛ㄨ揪寮忔槸鍏抽棴鐨?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><?xml version="1.0" encoding="UTF-8"?></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><web-app xmlns="http://java.sun.com/xml/ns/javaee" </span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" </span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   </span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">閭d箞瀵瑰簲2.5鐨剋eb.xml -->  jsp欏甸潰閲屽簲璇ュ鍔?lt;%@ page isELIgnored="false"%></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">涓鍙ヨ瘽錛屽嚒鏄儴緗叉弿榪版枃浠墮伒寰猄ervlet2.4瑙勮寖鐨刉EB搴旂敤錛孍L琛ㄨ揪寮忕殑璁$畻榛樿鏄惎鐢ㄧ殑錛岃屾湭閬靛驚鐨勶紝鍒橢L琛ㄨ揪寮忕殑璁$畻榛樿鏄鐢ㄧ殑銆?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鎵浠ヨВ鍐蟲柟妗堣繕鍙互鏄細灝唚eb.xml涓殑DTD(鏂囨。綾誨瀷瀹氫箟)鏀歸棶2.4鐨勭増鏈?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">鎴戠敤鐨勬槸鍦ㄥ叕鍏遍〉涓姞鍏?lt;%@ page isELIgnored="false"%>錛岀劧鍚庢瘡涓〉闈㈠紩鍏ュ叕鍏遍〉銆傞棶棰樿В鍐充簡銆?/span><img src ="http://www.tkk7.com/youngturk/aggbug/391246.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/youngturk/" target="_blank">youngturk</a> 2012-11-13 11:04 <a href="http://www.tkk7.com/youngturk/archive/2012/11/13/391246.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍏充簬EL琛ㄨ揪寮忎腑requestScope鍜宲aram鍖哄埆 http://www.tkk7.com/youngturk/archive/2012/11/12/391205.htmlyoungturkyoungturkMon, 12 Nov 2012 07:30:00 GMThttp://www.tkk7.com/youngturk/archive/2012/11/12/391205.htmlhttp://www.tkk7.com/youngturk/comments/391205.htmlhttp://www.tkk7.com/youngturk/archive/2012/11/12/391205.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/391205.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/391205.html

浠婂ぉ婕旂ずEL琛ㄨ揪寮忕殑鏃跺欏彂鐜拌嚜宸眏sp鐨勫熀紜瀹炲湪鏄杽寮憋紝鍦ㄨ繖涓緢綆鍗曠殑闂涓婅糠鎯戜簡寰堜箙銆?/p>

棣栧厛鍦ㄧ湅閬囧埌鐨勯棶棰橈細

鍦ㄦ祻瑙堝櫒鍦板潃杈撳叆錛岃〃紺轟紶鍏ヤ竴涓弬鏁皌est錛屽間負123

http://localhost:8888/Test/index.jsp?test=123


鍦╥ndex.jsp涓皾璇曚嬌鐢‥L琛ㄨ揪寮忓彇鍑猴紝浠g爜濡備笅錛?/p>

 <body>
${test}
</body>

鍙戠幇姣棤緇撴灉錛屽啀浣跨敤requestScope灝濊瘯鍙栧嚭錛?/p>

  <body>
${requestScope.test}
</body>

鍙戠幇榪樻槸姣棤緇撴灉錛屾劅鍒伴潪甯歌寮傦紝閬傚共鑴嗕嬌鐢╦ava鑴氭湰灝濊瘯鍙栧嚭銆?/p>

  <body>
<%request.getAttribute("test"); %>
</body>


渚濈劧鏃犺В銆?/p>

涔嬪悗鍙戠幇錛岃嫢浣跨敤宸蹭笅浠g爜鍚憆equest浣滅敤鍩熻祴鍊鹼紝鍒欑敤涓婇潰浠g爜鍙互鍙栧嚭

<%
request.setAttribute(
"test", "123");
%>

 


鏌ヨ璧勬枡鍚庡彂鐜幫紝浣跨敤浠ヤ笅浠g爜鍙互鍙栧嚭涔嬪墠鐨勮姹傚弬鏁幫細
EL:

  <body>
${param.test}
</body>

JAVA鑴氭湰錛?/p>

  <body>
<%=request.getParameter("test") %>
</body>

緇撹灝辨槸錛?span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: #ff0000; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none" class="Apple-style-span">${param.name} 絳変環(huán)浜?request.getParamter("name")錛岃繖涓ょ鏂規(guī)硶涓鑸敤浜庢湇鍔″櫒浠庨〉闈㈡垨鑰呭鎴風(fēng)鑾峰彇鐨勫唴瀹廣?/span>

銆銆銆銆銆${requestScope.name} 絳変環(huán)浜?nbsp;request.getAttribute("name")錛屼竴鑸槸浠庢湇鍔″櫒浼犻掔粨鏋滃埌欏甸潰錛屽湪欏甸潰涓彇鍑烘湇鍔″櫒淇濆瓨鐨勫箋?/span>

 

鍙傝冭祫鏂欙細

el琛ㄨ揪寮忎腑鐨?{param}

http://topic.csdn.net/u/20090103/15/779af9b8-c3a7-4f3e-82fe-b08bf2630996.html



youngturk 2012-11-12 15:30 鍙戣〃璇勮
]]>
鍏充簬EL琛ㄨ揪寮忎腑requestScope鍜宲aram鍖哄埆 http://www.tkk7.com/youngturk/archive/2012/11/12/391206.htmlyoungturkyoungturkMon, 12 Nov 2012 07:30:00 GMThttp://www.tkk7.com/youngturk/archive/2012/11/12/391206.htmlhttp://www.tkk7.com/youngturk/comments/391206.htmlhttp://www.tkk7.com/youngturk/archive/2012/11/12/391206.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/391206.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/391206.html

浠婂ぉ婕旂ずEL琛ㄨ揪寮忕殑鏃跺欏彂鐜拌嚜宸眏sp鐨勫熀紜瀹炲湪鏄杽寮憋紝鍦ㄨ繖涓緢綆鍗曠殑闂涓婅糠鎯戜簡寰堜箙銆?/p>

棣栧厛鍦ㄧ湅閬囧埌鐨勯棶棰橈細

鍦ㄦ祻瑙堝櫒鍦板潃杈撳叆錛岃〃紺轟紶鍏ヤ竴涓弬鏁皌est錛屽間負123

http://localhost:8888/Test/index.jsp?test=123


鍦╥ndex.jsp涓皾璇曚嬌鐢‥L琛ㄨ揪寮忓彇鍑猴紝浠g爜濡備笅錛?/p>

 <body>
${test}
</body>

鍙戠幇姣棤緇撴灉錛屽啀浣跨敤requestScope灝濊瘯鍙栧嚭錛?/p>

  <body>
${requestScope.test}
</body>

鍙戠幇榪樻槸姣棤緇撴灉錛屾劅鍒伴潪甯歌寮傦紝閬傚共鑴嗕嬌鐢╦ava鑴氭湰灝濊瘯鍙栧嚭銆?/p>

  <body>
<%request.getAttribute("test"); %>
</body>


渚濈劧鏃犺В銆?/p>

涔嬪悗鍙戠幇錛岃嫢浣跨敤宸蹭笅浠g爜鍚憆equest浣滅敤鍩熻祴鍊鹼紝鍒欑敤涓婇潰浠g爜鍙互鍙栧嚭

<%
request.setAttribute(
"test", "123");
%>

 


鏌ヨ璧勬枡鍚庡彂鐜幫紝浣跨敤浠ヤ笅浠g爜鍙互鍙栧嚭涔嬪墠鐨勮姹傚弬鏁幫細
EL:

  <body>
${param.test}
</body>

JAVA鑴氭湰錛?/p>

  <body>
<%=request.getParameter("test") %>
</body>

緇撹灝辨槸錛?span style="widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium Simsun; white-space: normal; orphans: 2; letter-spacing: normal; color: #ff0000; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none" class="Apple-style-span">${param.name} 絳変環(huán)浜?request.getParamter("name")錛岃繖涓ょ鏂規(guī)硶涓鑸敤浜庢湇鍔″櫒浠庨〉闈㈡垨鑰呭鎴風(fēng)鑾峰彇鐨勫唴瀹廣?/span>

銆銆銆銆銆${requestScope.name} 絳変環(huán)浜?nbsp;request.getAttribute("name")錛屼竴鑸槸浠庢湇鍔″櫒浼犻掔粨鏋滃埌欏甸潰錛屽湪欏甸潰涓彇鍑烘湇鍔″櫒淇濆瓨鐨勫箋?/span>

 

鍙傝冭祫鏂欙細

el琛ㄨ揪寮忎腑鐨?{param}

http://topic.csdn.net/u/20090103/15/779af9b8-c3a7-4f3e-82fe-b08bf2630996.html



youngturk 2012-11-12 15:30 鍙戣〃璇勮
]]>
妗嗘灦鎼緩濂藉悗,娌℃湁璇︾粏鐨勯敊璇俊鎭?涓婚〉鏃犳硶璁塊棶.鐢╰omcat鍘昏皟璇?娌℃湁璇︾粏log..http://www.tkk7.com/youngturk/archive/2012/11/08/391032.htmlyoungturkyoungturkThu, 08 Nov 2012 08:19:00 GMThttp://www.tkk7.com/youngturk/archive/2012/11/08/391032.htmlhttp://www.tkk7.com/youngturk/comments/391032.htmlhttp://www.tkk7.com/youngturk/archive/2012/11/08/391032.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/391032.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/391032.html榪欎袱澶╁湪鎼緩struts2+spring+hibernate妗嗘灦鐨勮繃紼嬩腑閬囧埌濡傞鐨勯敊璇紝鍦ㄧ櫨搴﹀拰璋鋒瓕涓婃煡浜嗕袱澶╋紝浠ヨ嚧蹇埌浜嗗穿婧冪殑杈圭紭銆傛渶鍚庤繕鏄В鍐充簡銆傝繖涓棶棰樼殑鍑虹幇錛屽師鍥犳湁寰堝錛屽湪榪欐葷粨濡備笅錛屼互渚涘垎浜細



妗嗘灦鎼緩濂藉悗錛屽惎鍔ㄦ湇鍔″櫒鍑虹幇濡備笅鐨勪俊鎭細

log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester).

log4j:WARN Please initialize the log4j system properly.

2009-11-6 21:39:17 org.apache.catalina.core.StandardContext start

涓ラ噸: Error listenerStart

2009-11-6 21:39:17 org.apache.catalina.core.StandardContext start

涓ラ噸: Context startup failed due to previous errors

2009-11-6 21:39:17 org.apache.catalina.core.StandardHostDeployer install

淇℃伅: Installing web application at context path /tomcat-docs from URL file:D:/server/Tomcat 5.0/webapps/tomcat-docs

2009-11-6 21:39:17 org.apache.catalina.core.StandardHostDeployer install

淇℃伅: Installing web application at context path /webdav from URL file:D:/server/Tomcat 5.0/webapps/webdav

銆傘傘傘?br />


鍙兘鍑洪敊鐨勫湴鏂癸細

1.web.xml鏂囦歡 web搴旂敤閮ㄧ講鎻忚堪絎︼紝閲岄潰鐨勯儴緗茬殑xml鏂囦歡鎴栬呯被錛屽鏋滆繖浜涙壘涓嶅埌灝變細鍙戠敓startup failed due to previous errors閿欒銆?br />
2.濡傛灉鍦ㄥ簲鐢╯pring鐨勮瘽錛屽湪閰嶇疆鏂囦歡applicationContext.xml涓畾涔夌殑綾匯亁ml鏂囦歡鎵句笉鍒頒篃浼氭姤榪欎釜閿欒銆?br />
3.鍦╳eb.xml錛宻truts.xml錛宎pplicationContext.xml鏂囦歡涓嚜韜湁浠諱綍涓鐐歸敊璇兘鍙兘寮曡搗涓婇潰鐨勮繖涓棶棰橈紝鑰屼笉浠呬粎鏄檮甯︾殑鏂囦歡閿欒瀵艱嚧銆?br />
4.濡傛灉浣跨敤ibatis鐨勮瘽錛屽湪SqlMapConfig.xml涓畾涔夌殑xml鏂囦歡鎵句笉鍒頒篃浼氭姤榪欎釜閿欒銆傦紙hibernate鐨勯厤緗湪鏁村悎spring鐨勬椂鍊欎嬌鐢╯pring鐨勯厤緗枃浠訛級

5.JDK鐨勭増鏈棶棰橈紝鏈濂戒嬌鐢↗DK5.0 鎴栬呮洿楂樼殑鐗堟湰銆?br />
6.Eclipse鍜宼omcat鐨勭増鏈吋瀹歸棶棰?br />
7.妗嗘灦鏁村悎鐨勮繃紼嬩腑鍦ㄥ鍏ュ埌l(fā)ib涓嬬殑jar鍖呭啿紿佷篃鍙兘浜х敓璇ラ敊璇?br />
8.jar鍖呯殑緙哄皯浠ュ強jar鍖呯殑鐗堟湰涔熷彲浜х敓璇ラ敊璇?br />
9.鍏朵粬鐨勫師鍥?br />


瑙e喅璇ラ棶棰樼殑閫斿緞錛?br />
鐢變簬涓婇潰闂鍙兘宸茬粡鏄痺eb鏈嶅姟鍣ㄥ唴閮ㄤ駭鐢熶簡閿欒錛岃屼笖IDE涓殑Log淇℃伅杈冨皯錛岄棶棰樼殑瑙e喅寰堥毦鍏ユ墜銆?br />
鑰岃闂鐨勪駭鐢熺粡甯鎬細瀵艱嚧欏甸潰璺寵漿瀵繪壘涓嶅埌鏂囦歡鐨?Http 404 閿欒銆傘傘傘傘?br />
鍙互閫氳繃鍦╰omcat涓坊鍔爈og鏂囦歡鏉ヨlog淇℃伅鎻愮ず鐨勬洿綺劇‘涓浜涳紝鍗寵緗甽og杈撳嚭鐨勭瓑綰с?br />
1.tomcat鐨勫畨瑁呰礬寰勪笅tomcat home涓嬬殑common鏂囦歡澶逛笅鐨刢lasses鏂囦歡澶逛腑鍒涘緩log4j.properties鏂囦歡錛屽嵆

銆傘傘侫pache Software Foundation/Tomcat 5.5/common/classes

log4j.properties閰嶇疆濡備笅錛堥厤緗槸杞澆錛夛細

log4j.rootLogger=info,Console,R

log4j.appender.Console=org.apache.log4j.ConsoleAppender

log4j.appender.Console.layout=org.apache.log4j.PatternLayout

#log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

log4j.appender.Console.layout.ConversionPattern=%d{yy-MM-dd HH:mm:ss} %5p %c{1}:%L - %m%n



log4j.appender.R=org.apache.log4j.DailyRollingFileAppender

log4j.appender.R.File=${catalina.home}/logs/tomcat.log

log4j.appender.R.layout=org.apache.log4j.PatternLayout

log4j.appender.R.layout.ConversionPattern=%d{yyyy.MM.dd HH:mm:ss} %5p %c{1}(%L):? %m%n



log4j.logger.org.apache=info,R

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R

log4j.logger.org.apache.catalina.core=info,R

log4j.logger.org.apache.catalina.session=info,R



2.灝唋og4j-1.2.15.jar鍜宑ommons-logging.jar鍖呮嫹璐濆埌銆傘傘侫pache Software Foundation/Tomcat 5.5/common/lib涓嬪嵆鍙?br />


鍋氬ソ涓婇潰涓ゆ錛屽惎鍔ㄦ湇鍔″櫒鐨勬椂鍊欙紝浼氬湪tomcat鐨勫畨瑁呰礬寰勪笅鐨勩傘侫pache Software Foundation/Tomcat 5.5/logs涓嬭嚜鍔ㄧ殑

鐢熸垚tomcat.log鏂囦歡浠ヨ褰曟棩蹇椾俊鎭?br />
娉細tomcat.log鏂囦歡涓殑鏃ュ織淇℃伅浼氳杞藉緢澶氾紝濡傛灉榪囧ぇ灝卞彲鑳戒駭鐢熺鐩樼┖闂翠笉瓚崇殑闂錛屽緩璁畾鏃剁殑娓呴櫎鏃ュ織淇℃伅銆?br />

閫氳繃涓婇潰鐨勬棩蹇楁枃浠朵俊鎭彲浠ュ畾浣嶅埌姣旇緝鍏蜂綋鐨勯棶棰樻牴婧愶紝鍦ㄤ粩緇嗙殑鏌ョ湅闂涓涓鏀葷牬鍗沖彲瑙e喅銆?br />

鎴戝湪鎼緩妗嗘灦涔嬪悗錛屽湪web.xml鏂囦歡涓厤緗殑嬈㈣繋欏甸潰鏄劇ず鐨勬椂鍊欐姤404鐨勯敊璇紝閫氳繃涓婇潰鐨勯斿緞鎵懼埌浜嗕袱涓敊璇紝铏界劧鑺變簡涓ゅぉ鐨勬椂闂達紝鏈緇堣繕鏄В鍐充簡銆?br />



youngturk 2012-11-08 16:19 鍙戣〃璇勮
]]>
hibernate3.0鐗堟湰鐨刪ibernate.dialect 鐨勫寘璺緞鏄痮rg.hibernate.dialect.Oracle9Dialecthttp://www.tkk7.com/youngturk/archive/2012/11/08/391031.htmlyoungturkyoungturkThu, 08 Nov 2012 08:17:00 GMThttp://www.tkk7.com/youngturk/archive/2012/11/08/391031.htmlhttp://www.tkk7.com/youngturk/comments/391031.htmlhttp://www.tkk7.com/youngturk/archive/2012/11/08/391031.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/391031.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/391031.html

youngturk 2012-11-08 16:17 鍙戣〃璇勮
]]>
struts2-java.lang.NullPointerException at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java http://www.tkk7.com/youngturk/archive/2012/11/06/390865.htmlyoungturkyoungturkTue, 06 Nov 2012 05:30:00 GMThttp://www.tkk7.com/youngturk/archive/2012/11/06/390865.htmlhttp://www.tkk7.com/youngturk/comments/390865.htmlhttp://www.tkk7.com/youngturk/archive/2012/11/06/390865.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/390865.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/390865.html1.strtus.xml

    鍦╯truts.xml涓厤緗簡<constant name="struts.devMode" value="true"/> (鎹閰嶇疆浜?lt;constant name="struts.configuration.xml.reload" value="true"/>涔熶細鎶ラ敊錛岃繖涓垜娌¤瘯榪囷級
鏃跺惎鍔╰omcat鎶ラ敊銆?br />org.apache.catalina.core.StandardContext filterStart
涓ラ噸: Exception starting filter struts2
java.lang.NullPointerException
    at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209)
    at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60)
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325)
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168)
    at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220)
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61)
    at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774)
    at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:191)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2009-2-4 22:40:54 org.apache.catalina.core.StandardContext start
涓ラ噸: Error filterStart
2009-2-4 22:40:54 org.apache.catalina.core.StandardContext start
涓ラ噸: Context [/Struts2Demo2] startup failed due to previous errors

緗戜笂瑙e喅鍔炴硶錛歞evMode妯″紡鏄紑鍙戞ā寮忥紝寮鍚畠鍒欓粯璁ゅ紑鍚簡i18n.reload銆?configuration.xml.reload銆傝繖涓敊璇槸鐢變簬configuration.xml.reload璁劇疆涓簍rue鍊掔疆鐨勶紝浣嗘槸緗戜笂鐨勮祫鏂欐病鏈夎鏄庡師鍥犲強瑙e喅鍔炴硶錛屽掓槸涓涓浗澶栫殑apache鐩稿叧BBS涓婃湁浜鴻榪欐槸216鐗堟湰鐨凚UG,騫朵笖闄勪笂浜嗕竴涓?patch淇鏂囦歡錛岃217鐗堟湰浼氫慨姝c傘傘傚彲鎴戜笉浼氱敤涔熶笉鐭ラ亾鏄笉鏄繖涓師鍥狅紝榪欎釜闂灝變竴鐩存悂緗湪榪欓噷浜嗐傝繃浜嗗嚑涓湀錛屼篃灝辨槸鏈榪戠綉涓婃煡浜嗕笅鍙戠幇鍦╝pache鐨勪竴涓偖浠跺垪琛ㄤ腑鏈夊叧浜庤繖涓殑瑙i噴錛?/span>鍘熷洜寰堢畝鍗曪紝tomcat鐨勫畨瑁呰礬寰勫寘鍚┖鏍兼垜鐨勬垚鍔熺殑鍔炴硶:鎹榪欐槸struts2.1.6鐨刡ug錛屾崲鏂扮増鏈?.1.8灝眔k錛屽綋鐒惰繕瑕佺浉搴旂殑xwork鐗堟湰錛屽ソ鍍忔槸xwork2.1.6錛屾垜灝嗗師鏉ョ殑2涓棫jar鍖呮崲鎴愭柊鐨勫氨ok浜嗐?/span>銆傘傘傛棤璇晩銆傘傘備竴璇曟灉鐒跺姝ゃ?br />

娉ㄦ剰:2涓猨ar鍖呮崲浜嗕箣鍚庨噸鍚痶omcat鍙兘浼氭姤閿欙紝 Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar錛岃繖涓敊璇槸寮濮嬮偅涓紩璧風(fēng)殑錛屾妸tomcat涓浉搴旈」鐩垹闄や簡錛岄噸鏂伴儴緗插氨娌¢棶棰樹簡

   涓嬮潰鏄?涓紑鍙戞ā寮忓父鐢ㄩ厤緗殑綆浠?--錛堟潵鑷猦ttp://hi.baidu.com/12261016/blog/item/1d7f6ccaded7248ec91768ec.html錛?br />    <!-- 寮鍚嬌鐢ㄥ紑鍙戞ā寮忥紝璇︾粏閿欒鎻愮ず -->
    <!-- <constant name="struts.devMode" value="true"/>-->
    <!-- 鎸囧畾姣忔璇鋒眰鍒拌揪錛岄噸鏂板姞杞借祫婧愭枃浠?-->
    <!-- <constant name="struts.i18n.reload" value="true"/>-->
    <!-- 鎸囧畾姣忔閰嶇疆鏂囦歡鏇存敼鍚庯紝鑷姩閲嶆柊鍔犺澆 -->
    <!-- <constant name="struts.configuration.xml.reload" value="true"/>-->
    <!-- 鎸囧畾XSLT Result浣跨敤鏍峰紡琛ㄧ紦瀛?-->
    <!-- <constant name="struts.xslt.nocache" value="true"/>-->



youngturk 2012-11-06 13:30 鍙戣〃璇勮
]]>
java鐨勫弽灝勬噳鐢?濂芥枃绔?/title><link>http://www.tkk7.com/youngturk/archive/2012/09/05/387084.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Wed, 05 Sep 2012 05:46:00 GMT</pubDate><guid>http://www.tkk7.com/youngturk/archive/2012/09/05/387084.html</guid><wfw:comment>http://www.tkk7.com/youngturk/comments/387084.html</wfw:comment><comments>http://www.tkk7.com/youngturk/archive/2012/09/05/387084.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/youngturk/comments/commentRss/387084.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/youngturk/services/trackbacks/387084.html</trackback:ping><description><![CDATA[<a >http://www.cnblogs.com/rollenholt/archive/2011/09/02/2163758.html</a><img src ="http://www.tkk7.com/youngturk/aggbug/387084.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/youngturk/" target="_blank">youngturk</a> 2012-09-05 13:46 <a href="http://www.tkk7.com/youngturk/archive/2012/09/05/387084.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鐩存帴璁塊棶鍥介檯鍖栬祫婧愭枃浠跺唴瀹癸細http://www.tkk7.com/youngturk/archive/2012/06/08/380351.htmlyoungturkyoungturkFri, 08 Jun 2012 07:21:00 GMThttp://www.tkk7.com/youngturk/archive/2012/06/08/380351.htmlhttp://www.tkk7.com/youngturk/comments/380351.htmlhttp://www.tkk7.com/youngturk/archive/2012/06/08/380351.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/380351.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/380351.html鐩存帴璁塊棶璧勬簮鏂囦歡鍐呭錛?br /><s:i18n name="cn/itcast/action/PersonManageAction"><!-----綰㈣壊涓烘姤鍚嶇洿鎺ヨ闂?------->
       <s:text name="welcome">
           <s:param>liming</s:param>
           <s:param>study</s:param>
       </s:text>
</s:i18n>

youngturk 2012-06-08 15:21 鍙戣〃璇勮
]]>
鍥介檯鍖?/title><link>http://www.tkk7.com/youngturk/archive/2012/06/07/380275.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Thu, 07 Jun 2012 14:22:00 GMT</pubDate><guid>http://www.tkk7.com/youngturk/archive/2012/06/07/380275.html</guid><description><![CDATA[<div> <p><strong><span style="font-family:瀹嬩綋;">涓錛?span style="color:red">鍑嗗璧勬簮鏂囦歡錛岃祫婧愭枃浠剁殑鍛藉悕鏍煎紡濡備笅錛?/span></span></strong></p> <p><span>                   baseName_language_country.properties</span></p> <p><span>                   baseName_language.properties</span></p> <p><span>                   baseName.properties</span></p> <p style="margin-left:21.0pt"><span style="font-family:瀹嬩綋;">鍏朵腑</span>baseName<span style="font-family:瀹嬩綋;">鏄祫婧愭枃浠剁殑鍩烘湰鍚嶏紝鎴戜滑鍙互鑷畾涔夛紝浣?/span>language<span style="font-family:瀹嬩綋;">鍜?/span>country<span style="font-family:瀹嬩綋;">蹇呴』鏄?/span>java<span style="font-family:瀹嬩綋;">鏀寔鐨勮璦鍜屽浗瀹躲傚錛?/span></p> <p style="margin-left:21.0pt"><span>                   </span><span style="font-family:瀹嬩綋;">涓浗澶ч檰錛?/span>baseName_zh_CN.properties</p> <p style="margin-left:21.0pt"><span>                   </span><span style="font-family:瀹嬩綋;">緹庡浗錛?/span>baseName_en_US.properties</p> <p style="margin-left:21.0pt"><span style="font-family:瀹嬩綋; color:red">鐜板湪涓哄簲鐢ㄦ坊鍔犱袱涓祫婧愭枃浠訛細</span></p> </div><div> <p style="text-indent:21.0pt"><strong><span style="font-family:瀹嬩綋;">浜岋細鍑嗗濂借祫婧愭枃浠跺悗錛氶厤緗?/span></strong><strong>struts.xml</strong><strong><span style="font-family:瀹嬩綋;">鏂囦歡</span></strong></p> <p style="margin-left:21.0pt;text-indent:21.0pt">struts.custom.i18n.resources<span style="font-family:瀹嬩綋;">甯擱噺鎶婅祫婧愭枃浠跺畾涔変負鍏ㄥ眬璧勬簮鏂囦歡錛?/span></p> <p style="margin-left:21.0pt;text-indent:21.0pt"><span><constant name="struts.custom.i18n.resources" value="itcast"/></span></p> <p style="margin-left:21.0pt;text-indent:21.0pt">Itcast<span style="font-family:瀹嬩綋;">涓鴻祫婧愭枃浠剁殑鍩烘湰鍚嶃?/span></p> </div><div> <p style="text-indent:21.0pt"><strong><span style="font-family:瀹嬩綋;">涓夛細鍚庨潰鎴戜滑鍙互鍦ㄩ〉闈㈡垨</span></strong><strong>action</strong><strong><span style="font-family:瀹嬩綋;">涓闂浗闄呭寲淇℃伅錛?/span></strong></p> <p style="text-indent:21.0pt"><strong><span>         </span></strong>1<span style="font-family:瀹嬩綋;">鍦?/span>JSP<span style="font-family:瀹嬩綋;">欏甸潰涓嬌鐢?/span><s:text name=””/><span style="font-family:瀹嬩綋;">鏍囩杈撳嚭鍥介檯鍖栦俊鎭?/span></p> <p style="text-indent:21.0pt"><span>          name</span><span style="font-family:瀹嬩綋;">涓鴻祫婧愭枃浠朵腑鐨?/span>key<span style="font-family:瀹嬩綋;">銆?/span></p> <p style="margin-left:15.75pt; text-indent:5.25pt;"><span>         2</span><span style="font-family:瀹嬩綋;">鍦?/span>action <span style="font-family:瀹嬩綋;">綾諱腑錛屽彲浠ョ戶鎵?/span>ActionSupport<span style="font-family:瀹嬩綋;">錛屼嬌鐢?/span>getText(“key”)<span style="font-family: 瀹嬩綋;">鏂規(guī)硶寰楀埌鍥介檯</span></p> <p style="margin-left:15.75pt; text-indent:36.75pt;"><span style="font-family:瀹嬩綋;">鍖栦俊鎭紝璇ユ柟娉曠殑絎竴涓弬鏁扮敤浜庢寚瀹氳祫婧愭枃浠朵腑鐨?/span>key<span style="font-family:瀹嬩綋;">銆?/span></p> <p style="margin-left:15.75pt; text-indent:5.25pt;"><span>         3</span><span style="font-family:瀹嬩綋;">鍦ㄨ〃鍗曟爣絳句腑錛岄氳繃</span>key<span style="font-family:瀹嬩綋;">灞炴ф寚瀹氳祫婧愭枃浠朵腑鐨?/span>key<span style="font-family:瀹嬩綋;">錛屽錛?/span></p> <p style="margin-left: 15.75pt; text-indent: 5.25pt;"><span>                   <s:textfield name=”realname” key=”user”/></span></p><p style="margin-left: 15.75pt; text-indent: 5.25pt;"><br /><span></span></p><p style="margin-left: 15.75pt; text-indent: 5.25pt;"><br /><span></span></p><p style="margin-left:15.75pt; text-indent:5.25pt;"><span><br /></span></p> </div>鎯沖彇寰楀浗闄呭寲鍐呭錛?緇ф壙action <span style="font-family:瀹嬩綋;">綾諱腑錛屽彲浠ョ戶鎵?/span>ActionSupport錛?浣跨敤this.getText鏂規(guī)硶<br /><br /><div>ActionContext.getContext().put("message"<sup style="color: red;">涓簀sp欏甸潰涓彉閲?/sup>, <br />this.getText<sup style="color: red;">鑾峰緱</sup><sup style="color: red;">baseName_zh_CN.properties鏂囦歡涓搴攌ey鍊?/sup>("welcome"));<br /><br />涓嫳鏂囩幆澧冧慨鏀? 宸ュ叿錛嶏紞錛嶃嬮夐」錛嶏紞錛嶃嬭璦錛岃繘琛屼慨鏀?.</div><img src ="http://www.tkk7.com/youngturk/aggbug/380275.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/youngturk/" target="_blank">youngturk</a> 2012-06-07 22:22 <a href="http://www.tkk7.com/youngturk/archive/2012/06/07/380275.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>瀵筧ction鎸囧畾鏂規(guī)硶榪涜鏍¢獙validateXxxhttp://www.tkk7.com/youngturk/archive/2012/06/07/380238.htmlyoungturkyoungturkThu, 07 Jun 2012 07:38:00 GMThttp://www.tkk7.com/youngturk/archive/2012/06/07/380238.htmlhttp://www.tkk7.com/youngturk/comments/380238.htmlhttp://www.tkk7.com/youngturk/archive/2012/06/07/380238.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/380238.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/380238.html
閫氳繃validateXxx鏂規(guī)硶瀹炵幇錛?/span>validateXxx鍙細鏍¢獙action鏂規(guī)硶鍚嶄負Xxx鐨勬柟娉曘傚叾涓?/span>Xxx鐨勭涓涓瓧姣嶈澶у啓錛屽綋鏌愪釜鏁版嵁鏍¢獙澶辮觸鏃訛紝鎴戜滑搴旇璋冪敤addFieldError鏂規(guī)硶寰緋葷粺鐨?/span>fieldError娣誨姞鏍¢獙澶辮觸淇℃伅錛堜負浜嗕嬌鐢?/span>addFieldError鏂規(guī)硶錛岀戶鎵?/span>ActionSupport錛夊鏋滅郴緇熺殑fieldErrors鍖呭惈澶辮觸淇℃伅錛?/span>struts2灝嗚姹傝嚜鍔ㄨ漿鍙戝埌鍚嶄負input鐨?/span>result錛屽湪input瑙嗗浘涓彲浠ラ氳繃<s:fielderror/>鏄劇ず澶辮觸淇℃伅銆?br />1,input瑙嗗浘鏄痵truts2鐗瑰畾鐨勮鍥撅紝蹇呴』榪欎箞鍐?br />

@Override  闇瑕佸榪欒鍘繪帀錛孈Override琛ㄧず閲嶈澆浼氱戶鎵跨埗綾葷殑鏂規(guī)硶
    public void validateUpdate() {}

youngturk 2012-06-07 15:38 鍙戣〃璇勮
]]>
瀵筧ction鎵鏈夋柟娉曡繘琛岃緭鍏ユ牎楠寁alidate()鏂規(guī)硶http://www.tkk7.com/youngturk/archive/2012/06/07/380232.htmlyoungturkyoungturkThu, 07 Jun 2012 07:19:00 GMThttp://www.tkk7.com/youngturk/archive/2012/06/07/380232.htmlhttp://www.tkk7.com/youngturk/comments/380232.htmlhttp://www.tkk7.com/youngturk/archive/2012/06/07/380232.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/380232.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/380232.html1.闇瑕佷嬌鐢╲alidate鏂規(guī)硶
validate 鏂規(guī)硶緇ф壙 actionsupport綾?br />
2 楠岃瘉閿欒緇撴灉闇瑕佸湪鏈被鐨則his.addFieldError(楠岃瘉鍙傛暟錛屼紶閫掓暟鎹?錛?br />this.addFieldError("username""user can not be null");

3.struts.xml涓?nbsp;闇瑕佺敱input鏄痵truts2涓撻棬楠岃瘉鐨勫弬鏁板繀欏昏繖涔堝啓錛屾槸鍐呴儴緇ф壙鐨勪笌
this.addFieldError鍏寵仈<result name="input">/index.jsp</result>璺寵漿鍒扮粨鏋滈敊璇彁紺鴻鍥?br /><action name="manage_*" class="cn.itcast.action.PersonAction" method="{1}">
            
<!-- 閿欒杈撳嚭鏃跺欎細璋冪敤緋葷粺鑷甫鐨刬nput瑙嗗浘 -->
            
<result name="input">/index.jsp</result>
            
<result name="message">/WEB-INF/page/message.jsp</result>
            
        
</action>
4楠岃瘉緇撴灉杈撳嚭jsp欏甸潰闇瑕佸鍏?br />
<%@taglib uri="/struts-tags" prefix="s"%>
sturts2鏍囩錛?/span><s:fielderror/>
涓鴻緭鍑虹粨鏋?br />“user can not be 
null

youngturk 2012-06-07 15:19 鍙戣〃璇勮
]]>
鎷︽埅鍣ㄥ啀搴旂敤瀛︿範http://www.tkk7.com/youngturk/archive/2012/06/07/380207.htmlyoungturkyoungturkThu, 07 Jun 2012 03:55:00 GMThttp://www.tkk7.com/youngturk/archive/2012/06/07/380207.htmlhttp://www.tkk7.com/youngturk/comments/380207.htmlhttp://www.tkk7.com/youngturk/archive/2012/06/07/380207.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/380207.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/380207.html鎷︽埅鍣?br />濡傛灉鐢ㄦ埛鐧誨綍鍚庡彲浠ヨ闂產(chǎn)ction涓殑鎵鏈夋柟娉?br />user.jsp{
request.getSession().setAttribute(
"user""itcast");
//涓撻棬璁劇疆鐢ㄦ埛鏄惁鐧誨綍鐘舵侊紝session鏉ヤ笓闂ㄦ爣娉ㄧ敤鎴鋒槸鍚︾櫥褰?/span>
}
閫鍑虹櫥褰?br />quit.jsp{
request.getSession().removeAttribute(
"user");
//灝唖ession鍘繪帀灝辮浜?.
}
濡傛灉鐢ㄦ埛娌℃湁鐧誨綍涓嶅厑璁歌闂產(chǎn)ction涓殑鏂規(guī)硶錛屽茍涓旀彁紺?br />
1.瀹氫箟鎷︽埅鍣?br />1.1瀹炵幇com.opensymphony.xwork2.ActionInvocation.Interceptor鎺ュ彛
    @Override
    
public void destroy() {//褰撴綾昏鎽ф瘉鐨勬椂鍊欐墽琛?/span>
        
    }

    @Override
    
public void init() {//瀹炰緥鍖栬嚜鍔ㄦ墽琛?/span>
        
    }
public String intercept(ActionInvocation invocation) throws Exception {
        
// TODO Auto-generated method stub
        Object user = ActionContext.getContext().getSession().get("user");
        
if(user!=null)//鍒ゆ柇鐢ㄦ埛鏄惁鐧誨綍
            invocation.invoke();//鎵ц琚嫤鎴埌鐨勬柟娉曪紝涓嶆帀鐢紝琚嫤鎴殑action鏂規(guī)硶

涓嶄細琚墽琛?br />        ActionContext.getContext().put(
"message""you have not right");
        
return "success";//瀹氫箟鍏ㄥ眬
    }//褰撴嫤鍑誨埌action灝變細鎵ц姝ゆ柟娉?/span>
1.2娉ㄥ唽鎷︽埅鍣?nbsp;鍦╯truts鐨刾ackage涓敞鍐屾嫤鎴櫒
<package name="employee" namespace="/control/employee" extends="struts-default">
        
<interceptors> <!-- 娉ㄥ唽鎷︽埅鍣?nbsp;-->
            
<interceptor name="permission" 

class="cn.itcast.interceptor.PermissionInterceptor"></interceptor>
            
<!-- 浣跨敤鎷︽埅鍣ㄦ爤鍙互浣跨敤鑷畾涔夋嫤鎴櫒錛屼笖 涓嶅け鍘葷郴緇熻嚜瀹氫箟鎷︽埅鍣ㄥ姛鑳?nbsp;

-->
            
<interceptor-stack name="permissionStack">
                
<!-- 緋葷粺榛樿鎷︽埅鍣?nbsp;-->
                
<interceptor-ref name="defaultStack"></interceptor-ref>
                
<!-- 鑷畾涔夋嫤鎴櫒鐨勫紩鍏?nbsp;-->
                
<interceptor-ref name="permission"></interceptor-ref>
            
</interceptor-stack>
        
</interceptors>
        
<!--榛樿鍖呴噷闈㈠叏鐢ㄦ鎷︽埅鍣?nbsp; 1 涓?nbsp;@@瀵瑰簲-->
        
<default-interceptor-ref name="permissionStack"></default-interceptor-ref>
        
<global-results>
            
<result name="success">/WEB-INF/page/message.jsp</result>
        
</global-results>
        
        
        
<action name="list_*" class="cn.itcast.action.HelloWorldAction" 

method
="{1}">
            
<!-- 浣跨敤鎷︽埅鍣?nbsp;@@ -->
            
<!-- <interceptor-ref name="permissionStack"></interceptor-ref>
            
<interceptor-ref name="澧炲姞鑷畾涔夋柊鎷︽埅鍣?/span>"></interceptor-ref> -->
        
</action>
    
</package>

1.3 闇瑕佸畾涔夋嫤鎴櫒鏍堬紝鍚﹀垯鑷畾涔夋嫤鎴櫒浼氳鐩杝truts鑷甫鐨勬嫤鎴櫒錛屼嬌struts澶卞幓鑷韓鐨勬嫤鎴櫒鍔熻兘
/control/employee


youngturk 2012-06-07 11:55 鍙戣〃璇勮
]]>
1鍔ㄦ佹柟寮忚皟鐢紱浣跨敤閫氶厤絎﹀畾涔塧ction錛涢氳繃緇ф壙DefaultTypeConverter綾誨瀷錛涙敞鍐屼負灞閮ㄧ被鍨嬭漿鎹㈠櫒錛?/title><link>http://www.tkk7.com/youngturk/archive/2012/06/05/380046.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Tue, 05 Jun 2012 09:31:00 GMT</pubDate><guid>http://www.tkk7.com/youngturk/archive/2012/06/05/380046.html</guid><wfw:comment>http://www.tkk7.com/youngturk/comments/380046.html</wfw:comment><comments>http://www.tkk7.com/youngturk/archive/2012/06/05/380046.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/youngturk/comments/commentRss/380046.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/youngturk/services/trackbacks/380046.html</trackback:ping><description><![CDATA[<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">涓ょ鏂瑰紡錛?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />1鍔ㄦ佹柟寮忚皟鐢細鍦ㄩ粯璁ゅ兼儏鍐礶xcute鎵ц鎯呭喌涓嬶紙涓嶅緩璁嬌鐢ㄨ繖縐嶆柟娉曪級<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />struts涓綋action涓猴細<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #000000"><</span><span style="color: #000000">action name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">helloWord</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">cn.itcast.action.HelloWorldAction</span><span style="color: #000000">"</span><span style="color: #000000"> method</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">execute</span><span style="color: #000000">"</span><span style="color: #000000"> <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"><</span><span style="color: #000000">param name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">savepath</span><span style="color: #000000">"</span><span style="color: #000000">>/</span><span style="color: #000000">department</span><span style="color: #000000"></</span><span style="color: #000000">param</span><span style="color: #000000">></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"><</span><span style="color: #000000">result name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">success</span><span style="color: #000000">"</span><span style="color: #000000">>/</span><span style="color: #000000">WEB</span><span style="color: #000000">-</span><span style="color: #000000">INF</span><span style="color: #000000">/</span><span style="color: #000000">page</span><span style="color: #000000">/</span><span style="color: #000000">message.jsp</span><span style="color: #000000"></</span><span style="color: #000000">result</span><span style="color: #000000">></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #000000"></</span><span style="color: #000000">action</span><span style="color: #000000">></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />鏃跺檆n.itcast.action.HelloWorldAction涓殑鏂規(guī)硶addUI鍙互榪欐牱鎵цhelloWord</span><span style="color: #000000">!</span><span style="color: #000000">addUI.action榪欐牱鎵ц<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">2</span><span style="color: #000000">.</span><span style="color: #000000"><</span><span style="color: #000000">constant name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">struts.enable.DynamicMethodInvocation</span><span style="color: #000000">"</span><span style="color: #000000"> value</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">false</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></span><span style="color: #000000">榪欎釜鍙互紱佹浣跨敤鍔ㄦ佹柟娉?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">3</span><span style="color: #000000">.浣跨敤閫氶厤絎﹀畾涔塧ction<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">action name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">helloWord_*</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">cn.itcast.action.HelloWorldAction</span><span style="color: #000000">"</span><span style="color: #000000"> method</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"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />            </span><span style="color: #000000"><</span><span style="color: #000000">param name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">savepath</span><span style="color: #000000">"</span><span style="color: #000000">>/</span><span style="color: #000000">department</span><span style="color: #000000"></</span><span style="color: #000000">param</span><span style="color: #000000">></span><span style="color: #000000"><br /><img id="Codehighlighter1_630_632_Open_Image" onclick="this.style.display='none'; Codehighlighter1_630_632_Open_Text.style.display='none'; Codehighlighter1_630_632_Closed_Image.style.display='inline'; Codehighlighter1_630_632_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_630_632_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_630_632_Closed_Text.style.display='none'; Codehighlighter1_630_632_Open_Image.style.display='inline'; Codehighlighter1_630_632_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif">            </span><span style="color: #000000"><</span><span style="color: #000000">result name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">success</span><span style="color: #000000">"</span><span style="color: #000000">>/</span><span style="color: #000000">WEB</span><span style="color: #000000">-</span><span style="color: #000000">INF</span><span style="color: #000000">/</span><span style="color: #000000">page</span><span style="color: #000000">/</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_630_632_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_630_632_Open_Text"><span style="color: #000000">{</span><span style="color: #000000">1</span><span style="color: #000000">}</span></span><span style="color: #000000">.jsp</span><span style="color: #000000"></</span><span style="color: #000000">result</span><span style="color: #000000">></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #000000"></</span><span style="color: #000000">action</span><span style="color: #000000">></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />锝?/span><span style="color: #000000">1</span><span style="color: #000000">锝濅唬琛ㄧ儲鍙栧埌鐨勯氶厤絎?/span><span style="color: #000000">*</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">4</span><span style="color: #000000">.浠et鏂規(guī)硶寰楀埌鍙傛暟褰㈠紡濡備笅錛?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />http:</span><span style="color: #008000">//</span><span style="color: #008000">localhost:7002/struts2/control/department/helloWordexecute.action?id=123&name=aaa</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">鐩存帴鍦ㄥ湴鍧鍚庨潰浠樺?<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />get</span><span style="color: #000000">*</span><span style="color: #000000">()涓嶇鏄痯ost榪樻槸get鏂規(guī)硶鎻愪氦錛岄兘鑳藉緱鍒板?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">5</span><span style="color: #000000">,閫氳繃榪囨護鍣ㄨВ鍐充腑鏂囦貢鐮侀棶棰?.<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">6</span><span style="color: #000000">,鑷畾涔夌被鍨嬭漿鎹?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />struts 涓ょ杞崲鍣細<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">1</span><span style="color: #000000">錛?nbsp;   灞閮ㄧ被鍨嬭漿鎹㈠櫒錛氬鏌愪釜action璧蜂綔鐢?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">2</span><span style="color: #000000">錛?nbsp;   鍏ㄥ眬綾誨瀷杞崲鍣細瀵規(guī)墍鏈塧ction涓綾誨瀷浣滅敤<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />閫氳繃緇ф壙DefaultTypeConverter綾誨瀷<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />浠g爜瀹炵幇錛?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> Object convertValue(Map</span><span style="color: #000000"><</span><span style="color: #000000">String, Object</span><span style="color: #000000">></span><span style="color: #000000"> context, Object value,<br /><img id="Codehighlighter1_1039_1509_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1039_1509_Open_Text.style.display='none'; Codehighlighter1_1039_1509_Closed_Image.style.display='inline'; Codehighlighter1_1039_1509_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_1039_1509_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1039_1509_Closed_Text.style.display='none'; Codehighlighter1_1039_1509_Open_Image.style.display='inline'; Codehighlighter1_1039_1509_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif">            Class toType) </span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1039_1509_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1039_1509_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">        return super.convertValue(context, value, toType);</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        SimpleDateFormat dateFormat </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> SimpleDateFormat(</span><span style="color: #000000">"</span><span style="color: #000000">yyyymmdd</span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img id="Codehighlighter1_1167_1466_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1167_1466_Open_Text.style.display='none'; Codehighlighter1_1167_1466_Closed_Image.style.display='inline'; Codehighlighter1_1167_1466_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1167_1466_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1167_1466_Closed_Text.style.display='none'; Codehighlighter1_1167_1466_Open_Image.style.display='inline'; Codehighlighter1_1167_1466_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">        </span><span style="color: #0000ff">try</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1167_1466_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1167_1466_Open_Text"><span style="color: #000000">{<br /><img id="Codehighlighter1_1196_1340_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1196_1340_Open_Text.style.display='none'; Codehighlighter1_1196_1340_Closed_Image.style.display='inline'; Codehighlighter1_1196_1340_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1196_1340_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1196_1340_Closed_Text.style.display='none'; Codehighlighter1_1196_1340_Open_Image.style.display='inline'; Codehighlighter1_1196_1340_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">            </span><span style="color: #0000ff">if</span><span style="color: #000000">(toType </span><span style="color: #000000">==</span><span style="color: #000000"> Date.</span><span style="color: #0000ff">class</span><span style="color: #000000">)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1196_1340_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1196_1340_Open_Text"><span style="color: #000000">{</span><span style="color: #008000">//</span><span style="color: #008000">閫夋嫨鎵鐢ㄧ被 瀛楃涓插悜date杞崲</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">                String[] params </span><span style="color: #000000">=</span><span style="color: #000000"> (String[])value;</span><span style="color: #008000">//</span><span style="color: #008000">request.getParameterValues()鍙兘鍙栬繖涓柟娉曞彇鍑烘墍鏈夊?/span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">                </span><span style="color: #0000ff">return</span><span style="color: #000000"> dateFormat.parse(params[</span><span style="color: #000000">0</span><span style="color: #000000">]);<br /><img id="Codehighlighter1_1372_1462_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1372_1462_Open_Text.style.display='none'; Codehighlighter1_1372_1462_Closed_Image.style.display='inline'; Codehighlighter1_1372_1462_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1372_1462_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1372_1462_Closed_Text.style.display='none'; Codehighlighter1_1372_1462_Open_Image.style.display='inline'; Codehighlighter1_1372_1462_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">            }</span></span><span style="color: #0000ff">else</span><span style="color: #000000"> </span><span style="color: #0000ff">if</span><span style="color: #000000">(toType </span><span style="color: #000000">==</span><span style="color: #000000"> String.</span><span style="color: #0000ff">class</span><span style="color: #000000">)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1372_1462_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1372_1462_Open_Text"><span style="color: #000000">{<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                java.util.Date date </span><span style="color: #000000">=</span><span style="color: #000000"> (java.util.Date)value;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />                </span><span style="color: #0000ff">return</span><span style="color: #000000"> dateFormat.format(date);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" alt="" />            }</span></span><span style="color: #000000"><br /><img id="Codehighlighter1_1490_1491_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1490_1491_Open_Text.style.display='none'; Codehighlighter1_1490_1491_Closed_Image.style.display='inline'; Codehighlighter1_1490_1491_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif"><img style="display: none" id="Codehighlighter1_1490_1491_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_1490_1491_Closed_Text.style.display='none'; Codehighlighter1_1490_1491_Open_Image.style.display='inline'; Codehighlighter1_1490_1491_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif">        }</span></span><span style="color: #0000ff">catch</span><span style="color: #000000">(ParseException e)</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_1490_1491_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1490_1491_Open_Text"><span style="color: #000000">{}</span></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />}<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />娉ㄥ唽涓哄眬閮ㄧ被鍨嬭漿鎹㈠櫒錛?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />    鍦╝ction綾繪墍鍦ㄥ寘涓嬪緩绔婣ctionClassName</span><span style="color: #000000">-</span><span style="color: #000000">Conversion.properties鏂囦歡Conversion鍥哄畾鍐欐硶涓嶅彲鏀瑰彉birthday cn.itcast.type.DateTypeConverter<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #000000">*************************</span><span style="color: #000000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />request</span><span style="color: #000000">/</span><span style="color: #000000">session</span><span style="color: #000000">/</span><span style="color: #000000">application鐨勫睘鎬ф坊鍔?<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" />閫氳繃acctionContext娣誨姞涓婇潰涓変釜灞炴?img src="http://www.tkk7.com/Images/dot.gif" alt="" /><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" alt="" /></span></div><img src ="http://www.tkk7.com/youngturk/aggbug/380046.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/youngturk/" target="_blank">youngturk</a> 2012-06-05 17:31 <a href="http://www.tkk7.com/youngturk/archive/2012/06/05/380046.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>action涓緱鍒皉equest,session鍜宎pplication灞炴ф柟娉?/title><link>http://www.tkk7.com/youngturk/archive/2012/06/05/380045.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Tue, 05 Jun 2012 09:29:00 GMT</pubDate><guid>http://www.tkk7.com/youngturk/archive/2012/06/05/380045.html</guid><wfw:comment>http://www.tkk7.com/youngturk/comments/380045.html</wfw:comment><comments>http://www.tkk7.com/youngturk/archive/2012/06/05/380045.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/youngturk/comments/commentRss/380045.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/youngturk/services/trackbacks/380045.html</trackback:ping><description><![CDATA[<div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><img id="Codehighlighter1_40_235_Open_Image" onclick="this.style.display='none'; Codehighlighter1_40_235_Open_Text.style.display='none'; Codehighlighter1_40_235_Closed_Image.style.display='inline'; Codehighlighter1_40_235_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_40_235_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_40_235_Closed_Text.style.display='none'; Codehighlighter1_40_235_Open_Image.style.display='inline'; Codehighlighter1_40_235_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif"><span style="color: #0000ff">public</span><span style="color: #000000"> String execute() </span><span style="color: #0000ff">throws</span><span style="color: #000000"> Exception</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_40_235_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_40_235_Open_Text"><span style="color: #000000">{</span><span style="color: #008000">//</span><span style="color: #008000">浠呬粎璁塊棶娣誨姞鐢ㄨ繖涓?/span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        ActionContext ac</span><span style="color: #000000">=</span><span style="color: #000000">ActionContext.getContext();<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        ac.getApplication().put(</span><span style="color: #000000">"</span><span style="color: #000000">app</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">搴旂敤鑼冨洿</span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        ac.getSession().put(</span><span style="color: #000000">"</span><span style="color: #000000">ses</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">session搴旂敤</span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        ac.put(</span><span style="color: #000000">"</span><span style="color: #000000">req</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">request鑼冨洿</span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">success</span><span style="color: #000000">"</span><span style="color: #000000">; <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />    }</span></span><span style="color: #000000"><br /><img id="Codehighlighter1_274_763_Open_Image" onclick="this.style.display='none'; Codehighlighter1_274_763_Open_Text.style.display='none'; Codehighlighter1_274_763_Closed_Image.style.display='inline'; Codehighlighter1_274_763_Closed_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif"><img style="display: none" id="Codehighlighter1_274_763_Closed_Image" onclick="this.style.display='none'; Codehighlighter1_274_763_Closed_Text.style.display='none'; Codehighlighter1_274_763_Open_Image.style.display='inline'; Codehighlighter1_274_763_Open_Text.style.display='inline';" align="top" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif">    </span><span style="color: #0000ff">public</span><span style="color: #000000"> String rsa() </span><span style="color: #0000ff">throws</span><span style="color: #000000"> Exception</span><span style="border-bottom: #808080 1px solid; border-left: #808080 1px solid; background-color: #ffffff; display: none; border-top: #808080 1px solid; border-right: #808080 1px solid" id="Codehighlighter1_274_763_Closed_Text"><img src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_274_763_Open_Text"><span style="color: #000000">{</span><span style="color: #008000">//</span><span style="color: #008000">寰楀埌鏂囦歡鐨勭粷瀵硅礬寰勭敤姝ゆ柟娉?/span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        HttpServletRequest request </span><span style="color: #000000">=</span><span style="color: #000000"> ServletActionContext.getRequest();<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        ServletContext servletContext </span><span style="color: #000000">=</span><span style="color: #000000"> ServletActionContext.getServletContext();<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">        servletContext.getRealPath("/index.html");寰楀埌鏂囦歡鐨勭粷瀵硅礬寰?br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">        request.getSession();<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #008000">//</span><span style="color: #008000">        HttpServletResponse response = ServletActionContext.getResponse();</span><span style="color: #008000"><br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" /></span><span style="color: #000000">        request.setAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">req</span><span style="color: #000000">"</span><span style="color: #000000">, </span><span style="color: #000000">"</span><span style="color: #000000">request鑼冨洿灞炴?/span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        request.getSession().setAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">ses</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">session浼氳瘽鑼冨洿灞炴?/span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        servletContext.setAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">app</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">搴旂敤鑼冨洿灞炴?/span><span style="color: #000000">"</span><span style="color: #000000">);<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">success</span><span style="color: #000000">"</span><span style="color: #000000">;<br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" alt="" />        <br /><img align="top" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" alt="" />    }</span></span></div><img src ="http://www.tkk7.com/youngturk/aggbug/380045.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/youngturk/" target="_blank">youngturk</a> 2012-06-05 17:29 <a href="http://www.tkk7.com/youngturk/archive/2012/06/05/380045.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>struts2璁塊棶灞炴х殑娣誨姞..ActionContext,鍦╡xcute鎵ц鏂規(guī)硶涓坊鍔?.http://www.tkk7.com/youngturk/archive/2012/06/05/380037.htmlyoungturkyoungturkTue, 05 Jun 2012 08:28:00 GMThttp://www.tkk7.com/youngturk/archive/2012/06/05/380037.htmlhttp://www.tkk7.com/youngturk/comments/380037.htmlhttp://www.tkk7.com/youngturk/archive/2012/06/05/380037.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/380037.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/380037.htmlpublic String execute() throws Exception{//鍦╡xecute鏂規(guī)硶閲岄潰搴旂敤鍏ㄥ眬搴旂敤session
        ActionContext ac=ActionContext.getContext();
        ac.getApplication().put(
"app","搴旂敤鑼冨洿");//寰serviceContext閲屾斁鍏?/span>
        ac.getSession().put("session","session搴旂敤");//寰session閲岄潰鏀?/span>
        ac.put("req""request鑼冨洿");//寰req閲岄潰鏀?.
        return "success";
    }


ActionContext ac = ActionContext.getContext();
ac.

youngturk 2012-06-05 16:28 鍙戣〃璇勮
]]>
struts2 璇鋒眰鍙傛暟鍊肩殑鑾峰緱http://www.tkk7.com/youngturk/archive/2012/06/05/379996.htmlyoungturkyoungturkTue, 05 Jun 2012 02:23:00 GMThttp://www.tkk7.com/youngturk/archive/2012/06/05/379996.htmlhttp://www.tkk7.com/youngturk/comments/379996.htmlhttp://www.tkk7.com/youngturk/archive/2012/06/05/379996.html#Feedback2http://www.tkk7.com/youngturk/comments/commentRss/379996.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/379996.htmlaction鏂囦歡錛?br />public class HelloWorldAction {//id=123&name=aaa
 private Integer id;
 private Person person;
 public Person getPerson() {
  return person;
 }


 public void setPerson(Person person) {
  this.person = person;
 }

瀹炰綋bean鏂囦歡錛?br />public class Person {
//闇瑕侀粯璁ゆ瀯閫犲櫒錛宻truts2鍒╃敤鍙嶅皠鏈哄埗鑾峰緱鍊?br /> public String getName() {
  return name;
 }
 public void setName(String name) {
  this.name = name;
 }
 public Integer getId() {
  return id;
 }
 public void setId(Integer id) {
  this.id = id;
 }
 private String name;
 private Integer id;
}
嫻忚鍣ㄨ姹傞〉闈細
<form action="<%=request.getContextPath() %>/control/department/helloWordexecute.action">
<!--    <form action="/control/department/helloWordexecute.action"> -->
     name:<input type="text" name="person.name">
     id:<input type="text" name="person.id">
     <input type="submit" value="send">
   </form>
鎺ュ彈瀹炰綋bean 鍊兼枃浠訛細

<body>
   id=${person.id}<br>
   name=${person.name}

  </body>




youngturk 2012-06-05 10:23 鍙戣〃璇勮
]]>
struts錛岃〃鍗昮orm涓搴斿埌action浠樺肩殑鑾峰緱http://www.tkk7.com/youngturk/archive/2012/06/05/379991.htmlyoungturkyoungturkTue, 05 Jun 2012 01:59:00 GMThttp://www.tkk7.com/youngturk/archive/2012/06/05/379991.htmlpackage cn.itcast.action;

import java.net.URLEncoder;

public class HelloWorldAction {//id=123&name=aaa
    private Integer id;
    
public Integer getId() {
        
return id;
    }



    
public void setId(Integer id) {
        
this.id = id;
    }



    
public String getName() {
        
return name;
    }



    
public void setName(String name) {
        
this.name = name;
    }


    
private String name;
    
private String msg;
    
private String username;
    
private String savepath;
    
    
public String getSavepath() {
        
return savepath;
    }


//    struts2浼氳嚜鍔ㄨ幏struts.xml閰嶇疆鏂囦歡涓璸arameter浠樺煎彉閲忎俊鎭?/span>
    public void setSavepath(String savepath) {
        
this.savepath = savepath;
//        <action name="helloWord*" class="cn.itcast.action.HelloWorldAction" method="{1}" >
    
//        <param name="savepath">/department</param>
    
//        <result name="success">/WEB-INF/page/message.jsp</result>
//        </action>
    }



    
public String getUsername() {
        
return username;
    }


//    struts2浼氳嚜鍔ㄨ幏寰楀搴旇〃鍗曟彁浜ょ殑瀛楁淇℃伅錛屼緥濡俧orm涓湁username
    public void setUsername(String username) {
        
this.username = username;
    }



    
public String getMessage() {
        
return msg;
    }

    
public String addUI(){
        msg 
= "addUI";
        
return "success";
    }



    
public String execute() throws Exception{
        
//this.username = URLEncoder.encode("浼犳櫤鎾", "UTF-8");
        this.username = "firest";
        
this.msg = "鎴戠殑絎竴涓猻truts2搴旂敤";
        
return "success";
    }

    
    
public String add(){
        
return "message";
    }

}



youngturk 2012-06-05 09:59 鍙戣〃璇勮
]]>
action綆$悊鏂瑰紡http://www.tkk7.com/youngturk/archive/2012/06/04/379960.htmlyoungturkyoungturkMon, 04 Jun 2012 15:04:00 GMThttp://www.tkk7.com/youngturk/archive/2012/06/04/379960.htmlhttp://www.tkk7.com/youngturk/comments/379960.htmlhttp://www.tkk7.com/youngturk/archive/2012/06/04/379960.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/379960.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/379960.html1struts.action.extension鍙互淇敼璇鋒眰鍚庣紑
鍦╯truts.xml涓嬌鐢?br /><constant name="struts.action.extension" value="do,action"/>
struts.xml涓拰struts.properties涓彲浠ラ厤緗父閲忥紝鏈濂藉湪struts.xml涓畾涔?br />struts-default.xml
struts-plugin.xml
struts.xml
struts.properties
web.xml
閲嶅瀹氫箟甯擱噺錛屽悗闈㈢殑甯擱噺鍊間細瑕嗙洊鍓嶉潰鐨勫父閲?br />
2<constantname="struts.i18n.encoding" value="UTF-8"/>
鍙傛暟浣滅敤浜巗etCharacterEncoding鏂規(guī)硶 freemarker鐨勮緭鍑?br />
緋葷粺鑷姩閲嶆柊鍔犺澆
<constantname = "struts.configuration.xmlreload"/>

鍒涘緩spring璐熻矗鍒涘緩actin瀵硅薄
<constantname = "struts.objectFactory"/>
闄愬埗涓婁紶鏂囦歡澶у皬
<constantname = "struts.multipart.maxSize" value="10838274"/>
3澶勭悊嫻佺▼ action鐨勭鐞嗘柟寮?br />鐢ㄦ埛璇鋒眰錛嶏紞銆媠trutsprepareAndExecuteFilter錛嶏紞錛嶃?br />inerceptor錛宻truts2d鍐呯疆鐨勪竴浜涙嫤鎴櫒錛嶏紞錛嶃?br />鐢ㄦ埛緙栧啓action綾伙紞錛嶏紞銆媟esult榪涜璺寵漿錛嶏紞錛嶃媕sp銆乭tml錛嶏紞錛嶃嬫祻瑙堝櫒鍝嶅簲
鍖呭敮涓鐨?br />4錛屾寚瀹氬涓猻truts鏂囦歡
<struts>

<constant name="struts.action.extension" value="do,action"/>
    <include file="department.xml" />
    <include file="employee.xml" />
   
</struts>
employee.xml濡備笅錛?br /><?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
    <package name="employee" namespace="/control/employee" extends="struts-default">
        <action name="helloWord" class="cn.itcast.action.HelloWorldAction" method="execute" >
            <param name="savepath">/employee</param>
            <result name="success">/WEB-INF/page/message.jsp</result>
        </action>
            
    </package>
</struts>

youngturk 2012-06-04 23:04 鍙戣〃璇勮
]]>
redirecthttp://www.tkk7.com/youngturk/archive/2012/05/31/379674.htmlyoungturkyoungturkThu, 31 May 2012 08:05:00 GMThttp://www.tkk7.com/youngturk/archive/2012/05/31/379674.htmlhttp://www.tkk7.com/youngturk/comments/379674.htmlhttp://www.tkk7.com/youngturk/archive/2012/05/31/379674.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/379674.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/379674.htmlredirect閲嶅畾鍚戠殑璺緞涓嶈兘鍦╓EB-INF鐩綍涓嬶紝W(xué)EB-INF鐩綍涓嬩嬌鐢ㄧ殑鏄痙ispatcher璺寵漿.
example:
鐧誨綍欏甸潰錛岀敤鎴風(fēng)櫥褰曢敊璇椂鍊欙紝閲囩敤閲嶅畾鍚憆edirect鏂瑰紡錛岃繑鍥炲埌鐧誨綍鐣岄潰
plaintext瀹氬悜瑙嗗浘鏃跺欏皢瑙嗗浘婧愮爜杈撳嚭
<action name="redirect"> <!-- 榛樿class涓?ActionSurport 榛樿 鏂規(guī)硶涓篹xcute result榛樿鍊兼槸success -->
         <result type="redirect">/redirect.jsp?username=${username}</result><!-- 榛樿璇鋒眰杞彂綾諱技    dispatcher -->
 </action>

youngturk 2012-05-31 16:05 鍙戣〃璇勮
]]>
鍏充簬jsphttp://www.tkk7.com/youngturk/archive/2012/04/12/373894.htmlyoungturkyoungturkThu, 12 Apr 2012 00:42:00 GMThttp://www.tkk7.com/youngturk/archive/2012/04/12/373894.htmlhttp://www.tkk7.com/youngturk/comments/373894.htmlhttp://www.tkk7.com/youngturk/archive/2012/04/12/373894.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/373894.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/373894.html鏈澶栧眰鐨刯sp鎵嶈兘鐢╮edirect榪涜瀹氬悜璺寵漿錛寃ebRoot閲岄潰鑳藉湪action涓嬌鐢╮edirect灞炴?br />

youngturk 2012-04-12 08:42 鍙戣〃璇勮
]]>
struts 鐨勫惎鍔?/title><link>http://www.tkk7.com/youngturk/archive/2012/04/10/373700.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Tue, 10 Apr 2012 06:03:00 GMT</pubDate><guid>http://www.tkk7.com/youngturk/archive/2012/04/10/373700.html</guid><wfw:comment>http://www.tkk7.com/youngturk/comments/373700.html</wfw:comment><comments>http://www.tkk7.com/youngturk/archive/2012/04/10/373700.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/youngturk/comments/commentRss/373700.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/youngturk/services/trackbacks/373700.html</trackback:ping><description><![CDATA[<div>struts1 閫氳繃servlet鍚姩<br />struts2 閫氳繃filter鍚姩 鍦╳eb.xml涓紪杈?br /><br /><span style="font-family: Arial; color: black; font-size: 20pt; mso-ascii-font-family: Arial; mso-fareast-font-family: 瀹嬩綋; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt; language: en-US">鍦╯truts2涓璮ilter鐨凷trutsPrepareAndExecuteFilter</span><span style="font-family: 瀹嬩綋; color: black; font-size: 20pt; mso-ascii-font-family: Arial; mso-fareast-font-family: 瀹嬩綋; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt; language: zh-CN">鐨?/span><span style="font-family: Arial; color: black; font-size: 20pt; mso-ascii-font-family: Arial; mso-fareast-font-family: 瀹嬩綋; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt; language: en-US">init()</span><span style="font-family: 瀹嬩綋; color: black; font-size: 20pt; mso-ascii-font-family: Arial; mso-fareast-font-family: 瀹嬩綋; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt; language: zh-CN">鏂規(guī)硶涓皢浼氳鍙栫被璺緞涓嬮粯璁?br /><br />鐨勯厤緗枃浠?/span><span style="font-family: Arial; color: black; font-size: 20pt; mso-ascii-font-family: Arial; mso-fareast-font-family: 瀹嬩綋; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt; language: en-US">struts.xml</span><span style="font-family: 瀹嬩綋; color: black; font-size: 20pt; mso-ascii-font-family: Arial; mso-fareast-font-family: 瀹嬩綋; mso-bidi-font-family: +mn-cs; mso-color-index: 1; mso-font-kerning: 12.0pt; language: zh-CN">瀹屾垚鍒濆鍖栨搷浣?br /><br />myeclipse 9.0<br />tomcat 6<br />jdk 6<br /><br />struts-2.2.3.1閰嶇疆闂<br /><br />鑷沖皯榪欏嚑涓灦鍖呴渶瑕佸姞鍏ワ細 <p>commons-fileupload-1.2.2.jar<br />commons-io-2.0.1.jar<br />commons-lang-2.5.jar<br />commons-logging-1.1.1.jar<br />freemarker-2.3.16.jar<br />javassist-3.11.0.GA.jar<br />ognl-3.0.1.jar<br />struts2-core-2.2.3.1.jar<br />xwork-core-2.2.3.1.jar</p> <p> <wbr></p> <p>鏈閲嶈鐨勬槸騫蟲椂鎴戜滑鐪嬫櫘閫氱殑鏂囩珷鐨勮瘽璇磗truts2鐨勬灦鍖呭氨闇瑕侀偅浜斾釜錛屼絾鏄繖鏍瘋窇璧?br /><br />鏉ョ殑紼嬪簭錛屽浜庢垜鐨勯厤緗紝<br /><br />tomcat apache-tomcat-6.0.32<br /><br />浼氬嚭閿欙紝</p></span></div><img src ="http://www.tkk7.com/youngturk/aggbug/373700.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/youngturk/" target="_blank">youngturk</a> 2012-04-10 14:03 <a href="http://www.tkk7.com/youngturk/archive/2012/04/10/373700.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://xjyzz.com" target="_blank">久久无码av亚洲精品色午夜 </a>| <a href="http://0755haoma.com" target="_blank">亚洲AV本道一区二区三区四区 </a>| <a href="http://https357171.com" target="_blank">高清在线亚洲精品国产二区</a>| <a href="http://323799.com" target="_blank">免费无码成人AV在线播放不卡</a>| <a href="http://lfhuanxin.com" target="_blank">亚洲精品无码久久久影院相关影片 </a>| <a href="http://qdhengjun.com" target="_blank">久久精品国产亚洲AV大全</a>| <a href="http://laochedao.com" target="_blank">免费播放春色aⅴ视频</a>| <a href="http://igo98.com" target="_blank">精品免费久久久久久久</a>| <a href="http://sdhgjscl.com" target="_blank">三年片免费高清版 </a>| <a href="http://www-135888.com" target="_blank">2020久久精品亚洲热综合一本</a>| <a href="http://mcsser.com" target="_blank">无码中文字幕av免费放</a>| <a href="http://caopropp.com" target="_blank">水蜜桃视频在线观看免费播放高清</a>| <a href="http://w6446.com" target="_blank">亚洲av无码不卡一区二区三区</a>| <a href="http://www611rr.com" target="_blank">24小时日本电影免费看</a>| <a href="http://www621f.com" target="_blank">国产中文字幕在线免费观看</a>| <a href="http://dukane1688.com" target="_blank">欧洲乱码伦视频免费国产 </a>| <a href="http://yuezhaoming.com" target="_blank">全黄A免费一级毛片</a>| <a href="http://wilbysec.com" target="_blank">亚洲同性男gay网站在线观看</a>| <a href="http://sdzsx.com" target="_blank">国产极品美女高潮抽搐免费网站</a>| <a href="http://344zx.com" target="_blank">免费精品国产自产拍在线观看</a>| <a href="http://199291.com" target="_blank">亚洲国产一成人久久精品</a>| <a href="http://kkm55.com" target="_blank">亚洲情侣偷拍精品</a>| <a href="http://831055.com" target="_blank">日本黄色免费观看</a>| <a href="http://5kee.com" target="_blank">免费看www视频</a>| <a href="http://82nnn.com" target="_blank">日本一区二区三区日本免费</a>| <a href="http://cqtchtwq.com" target="_blank">手机在线免费视频</a>| <a href="http://www96pg.com" target="_blank">成全视频在线观看免费高清动漫视频下载</a>| <a href="http://wwwxue1888.com" target="_blank">极品美女一级毛片免费</a>| <a href="http://zjpcyh.com" target="_blank">天堂亚洲国产中文在线</a>| <a href="http://www-01313.com" target="_blank">亚洲精品中文字幕无码AV</a>| <a href="http://dxjz120.com" target="_blank">国产成人精品123区免费视频</a>| <a href="http://taoh2517.com" target="_blank">在线成人精品国产区免费</a>| <a href="http://4438xx21.com" target="_blank">99久久免费国产特黄</a>| <a href="http://laochedao.com" target="_blank">91精品成人免费国产</a>| <a href="http://caita88.com" target="_blank">sihu国产精品永久免费</a>| <a href="http://05942688.com" target="_blank">久久久久久噜噜精品免费直播</a>| <a href="http://hhgcnet.com" target="_blank">亚洲 日韩经典 中文字幕 </a>| <a href="http://kdltuliao.com" target="_blank">中文字幕无码日韩专区免费</a>| <a href="http://bjowj.com" target="_blank">久久高潮一级毛片免费</a>| <a href="http://c4665.com" target="_blank">国产激情久久久久影院老熟女免费 </a>| <a href="http://bdykdq.com" target="_blank">亚洲熟妇无码八V在线播放</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>