锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美日韩综合一区,国产精品久久久久久久龚玥菲,国产精品区二区三区日本http://www.aygfsteel.com/roy/category/3276.htmlzh-cnFri, 02 Mar 2007 03:07:40 GMTFri, 02 Mar 2007 03:07:40 GMT60Dispatcher Viewhttp://www.aygfsteel.com/roy/articles/12512.html椋庤惂钀?/dc:creator>椋庤惂钀?/author>Fri, 09 Sep 2005 02:49:00 GMThttp://www.aygfsteel.com/roy/articles/12512.htmlhttp://www.aygfsteel.com/roy/comments/12512.htmlhttp://www.aygfsteel.com/roy/articles/12512.html#Feedback0http://www.aygfsteel.com/roy/comments/commentRss/12512.htmlhttp://www.aygfsteel.com/roy/services/trackbacks/12512.html         鍜屽墠鍙版帶鍒朵竴璧風(fēng)敤錛岃搗鍒拌鍥懼鑸拰綆$悊錛岃漿鍙戣鍥懼姛鑳斤紝榪涗竴姝ュ皢鎺у埗鍜岃漿鍙戙佽鍥懼垎寮銆?BR>         RequestDispatcher dispatcher = getServletContext().
             getRequestDispatcher(page);
         dispatcher.forward(request, response);

]]>
Front Controllerhttp://www.aygfsteel.com/roy/articles/12511.html椋庤惂钀?/dc:creator>椋庤惂钀?/author>Fri, 09 Sep 2005 02:45:00 GMThttp://www.aygfsteel.com/roy/articles/12511.htmlhttp://www.aygfsteel.com/roy/comments/12511.htmlhttp://www.aygfsteel.com/roy/articles/12511.html#Feedback0http://www.aygfsteel.com/roy/comments/commentRss/12511.htmlhttp://www.aygfsteel.com/roy/services/trackbacks/12511.html        Front Controller錛堝墠鍙版帶鍒訛級(jí)鏄疓RASP涓帶鍒跺櫒鐨勬墿灞曪紝鏈濂界殑渚嬪瓙鑾繃浜嶴truts涓殑action Servlet.Struts涓殑鎵鏈夎姹傜敤action鏉ュ鐞嗭紝涓昏浣滅敤澶勭悊鍚勭鐢ㄦ埛璇鋒眰騫惰漿鍙戯紝鍖呮嫭錛?BR>        1.璁よ瘉鍜屾巿鏉冿紱
        2.浠g悊涓氬姟閫昏緫錛?BR>        3.杞彂騫跺垱寤哄悎閫傝鍥撅紱
鏈鍚庣偣錛孎ront Controller搴旇鍙仛鎺у埗錛屾墍鏈変笟鍔¢昏緫鍜岃璇佹巿鏉冮兘瑕佹妸璐d換濮旀墭緇欏叾浠栫被銆?img src ="http://www.aygfsteel.com/roy/aggbug/12511.html" width = "1" height = "1" />

]]>
View Helperhttp://www.aygfsteel.com/roy/articles/12509.html椋庤惂钀?/dc:creator>椋庤惂钀?/author>Fri, 09 Sep 2005 02:31:00 GMThttp://www.aygfsteel.com/roy/articles/12509.htmlhttp://www.aygfsteel.com/roy/comments/12509.htmlhttp://www.aygfsteel.com/roy/articles/12509.html#Feedback0http://www.aygfsteel.com/roy/comments/commentRss/12509.htmlhttp://www.aygfsteel.com/roy/services/trackbacks/12509.htmlView Helper(瑙嗗浘甯姪)
        瑙嗗浘甯姪綾伙紝灝嗘暟鎹簱涓殑鍘熸暟鎹粍瑁呮垚欏甸潰鎵闇瑕佺殑鍏冪礌錛屼綔鐢細(xì)
                1.澶勭悊鍏冩暟鎹紱
                2.瑙嗗浘鏁版嵁鍜屼笟鍔″眰鏁版嵁妯″瀷閫傞厤錛?BR>                3.鍜屼笟鍔′唬鐞嗘ā寮忕粨鍚堣繘涓姝ラ殣钘忎笟鍔″疄鐜幫紱
                4.鍖呭惈鍊煎璞°?BR>       瑙嗗浘甯姪鍙互鏄疛AVABEAN錛屼篃鍙互鏄疶AGS銆丼ERVLET銆丣SP銆?BR>       涓涓緥瀛?BR>

/**A servlet delegates to a command object helper, as
shown in the following excerpt:*
*/

String resultPage 
= command.execute(request,
response);
/**The command object helper uses the business
delegate, which is simply implemented as another
JavaBean helper, as shown in the following excerpt:*
*/

AccountDelegate accountDelegate 
= new
AccountDelegate();


]]>
Intercepting Filterhttp://www.aygfsteel.com/roy/articles/12429.html椋庤惂钀?/dc:creator>椋庤惂钀?/author>Thu, 08 Sep 2005 06:34:00 GMThttp://www.aygfsteel.com/roy/articles/12429.htmlhttp://www.aygfsteel.com/roy/comments/12429.htmlhttp://www.aygfsteel.com/roy/articles/12429.html#Feedback0http://www.aygfsteel.com/roy/comments/commentRss/12429.htmlhttp://www.aygfsteel.com/roy/services/trackbacks/12429.htmlIntercepting Filter錛堟嫤鎴繃婊ゅ櫒錛燂級(jí)
        榪欎釜涓嶇敤澶氳浜?jiǎn)锛屾嫤鎴敤鎴风殑璇锋眰锛屽湪WEB涓疄鐜頒釜Filter鎺ュ彛錛岀劧鍚庨厤緗湪WEB.XML涓嬪氨鍙互鐢紝FilterManager宸茬粡鐢辨湇鍔″櫒鎻愪緵鍟嗗啓濂戒簡(jiǎn)錛屽熀浜庡簲鐢ㄤ笂鍙渶瀹炵幇灝卞彲浠ヤ簡(jiǎn)錛岃繖閲屽叧娉ㄧ殑鏄繖涓ā寮忚В鍐崇殑闂銆?BR>        1.瀹㈡埛鏈夋病琚巿鏉冿紵
        2.瀹㈡埛鏄惁鍏鋒湁鏈夋晥浼?xì)璇濆Q?BR>        3.瀹㈡埛IP鍦板潃鏄惁鏉ヨ嚜淇′換緗戠粶孌碉紵
        4.瀹㈡埛绔紶杈撲嬌鐢ㄤ綍縐嶆柟娉曠紪鐮侊紵
        5.瀹㈡埛绔祻瑙堝櫒綾誨瀷鎴戜滑鏀寔鍚楋紵
鎵鏈夎繖浜涘皢鍐沖畾璇鋒眰鐨勮漿鍙戯紝浠ュ悗鍚庣畫鐨勬祦紼嬨傚鏋滀笉鐢‵ilter錛屽垯闇瑕佸湪鍏跺悗鐨勬帶鍒朵腑鍋氭潯浠舵祴璇曪紝鐒跺悗鍐嶅鐞嗚姹傦紝涓鑸敤宓屽IF/ELSE灝卞彲瀹屾垚銆備絾緙虹偣鍦ㄤ簬錛?FONT style="BACKGROUND-COLOR: #ffffff" color=#ff0000>
        涓嶅綆緇?/FONT>錛屽涓帶鍒跺仛鐨勬潯浠舵祴璇曢兘鐩稿悓銆?BR>        灝嗚繃婊ゅ拰鎺у埗鏀懼湪涓璧鳳紝涓嶅鐏墊椿錛岃繃婊ら氬父鏄彲鍙樼殑錛屾瘮濡備俊浠籌P鍦板潃孌碉紝鎴栬呮槸榪囨護(hù)鐨勬潯浠跺彂鐢熷彉鍖栵紝閮戒細(xì)甯︽潵瀵規(guī)墍鏈夋帶鍒剁殑鍙樻洿銆?BR>        鐏墊椿鍜岀畝鍗曠殑瑙e喅鏂規(guī)硶灝辨槸鐢ㄤ竴縐嶇畝鍗曠殑鍙鍑忕粍浠剁殑鏈哄埗錛屼嬌寰楁瘡涓粍浠跺畬鎴愮壒孌婄殑榪囨護(hù)璇鋒眰銆?BR>        錛堝師鏂囷細(xì)
        The key to solving this problem in a flexible and unobtrusive manner is to have a simple mechanism for adding and removing processing components, in which each component completes a specific filtering action.錛?BR>        璐翠釜Filter

public class StandardEncodeFilter extends BaseEncodeFilter {
// Creates new StandardEncodeFilter
  public StandardEncodeFilter() { }
  
public void doFilter
   (javax.servlet.ServletRequest               
    servletRequest,
    javax.servlet.ServletResponse
    servletResponse,
    javax.servlet.FilterChain
    filterChain) 
   throws java.io.IOException,
   javax.servlet.ServletException {
     String contentType 
=
     servletRequest.getContentType();
     
if ((contentType == null||
     contentType.equalsIgnoreCase(
     
"application/x-www-form-urlencoded")) {
     translateParamsToAttributes
     (servletRequest,servletResponse);
     }
     filterChain.doFilter(servletRequest,
     servletResponse);
  }

  
private void translateParamsToAttributes(
  ServletRequest request, 
  ServletResponse   response){
    Enumeration paramNames 
= 
    request.getParameterNames();
    
while (paramNames.hasMoreElements()) {
      String paramName 
= (String)
      paramNames.nextElement();
      String [] values;
      values 
= request.getParameterValues
       (paramName);
      System.err.println(
"paramName = "
       
+ paramName);
      
if (values.length == 1)
       request.setAttribute(paramName,
        values[
0]);
      
else
       request.setAttribute(paramName, values);
    }
  }
}


]]>
鍓嶈█http://www.aygfsteel.com/roy/articles/12426.html椋庤惂钀?/dc:creator>椋庤惂钀?/author>Thu, 08 Sep 2005 05:55:00 GMThttp://www.aygfsteel.com/roy/articles/12426.htmlhttp://www.aygfsteel.com/roy/comments/12426.htmlhttp://www.aygfsteel.com/roy/articles/12426.html#Feedback0http://www.aygfsteel.com/roy/comments/commentRss/12426.htmlhttp://www.aygfsteel.com/roy/services/trackbacks/12426.htmlJ2EE  妯″紡鍒板簳鏈夊閲嶈錛屼負(fù)浠涔堣鎻愭ā寮忥紝瀹冨拰GRASP妯″紡鏈変粈涔堝叧緋伙紵
        瀹為檯涓婏紝鎴戣寰桱2EE妯″紡鏇磋薄鏄疓RASP妯″紡鐨勬墿灞曞拰瀹炵幇錛屾ā寮忕殑榪愮敤璧峰埌緇勪歡鐨勪綔鐢紝鍗寵兘浣庤﹀悎錛岄珮鍐呰仛錛屾彁楂橀噸鐢ㄦэ紝浣垮緱緇勪歡鎴栧眰涔嬮棿鐨勫彉鏇村鐩鎬簰涓嶅ぇ錛屼究浜庣淮鎶ゅ拰鍙樻洿銆佹墿灞曘?BR>        GRASP妯″紡錛圙eneral Responsibility Assignment Software Patterns)鏄疧OA鍜岀郴緇熻璁$殑鍩虹錛屽寘鎷?FONT style="BACKGROUND-COLOR: #000080" color=#ffffff>淇℃伅涓撳銆佸垱寤鴻呫侀珮鍐呰仛銆佷綆鑰﹀悎鍜屾帶鍒跺櫒銆佸鎬併佷腑浠嬨佺函铏氭瀯銆佸彈淇濇姢鍙樺寲銆?BR>        J2EE妯″紡濡傚浘
r_pre.JPG

 



]]>
主站蜘蛛池模板: 隆回县| 永泰县| 叶城县| 当涂县| 汝南县| 阳高县| 祁阳县| 荆州市| 若羌县| 清原| 石楼县| 建瓯市| 襄城县| 丹棱县| 九寨沟县| 白水县| 黔西县| 黄石市| 太谷县| 同仁县| 新营市| 三穗县| 平和县| 清河县| 叙永县| 华容县| 康乐县| 临武县| 佳木斯市| 民丰县| 泸水县| 康平县| 徐闻县| 宝鸡市| 闸北区| 泰州市| 奉化市| 随州市| 兴义市| 沐川县| 布拖县|