<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    泥巴麒麟的BLOG

    shenAwesome@hotmail.com 縱不能,將醉做生涯,休拘束

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      195 Posts :: 2 Stories :: 80 Comments :: 0 Trackbacks
    I hate spring mvc, struts mvc because they are wierd, complicated and dishonest.

    the SW project is a simple framework(helperTool, I call it SW for simple) to create a web application


    1 web.xml

       <servlet>
            <servlet-name>Dispatcher</servlet-name>
            <servlet-class>com.shen.sw.Dispatcher</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Dispatcher</servlet-name>
            <url-pattern>*.htm</url-pattern>
        </servlet-mapping>

    2 sw.properties  create it in src root.

       linkPackage=com.seeker.web  
      
       that means the SW will search the package for annotation,
            1 @Bind means we want to auto bind the object with request, which means
               1 get data from page  (in your jsp, set fieldName as your property's name, see example below)
               2 put bean to request Attribute

               SW will try to use setter and getter method,
               so for example, if you only need to set attribute then only implement setter method,
                  
            2 @Link(<your URL>) tells SW which method should it call when a URL be request.

    3 in your Link class (controller , action whatever you call it)

        @Bind
        Person person; // in jsp we have  <input type='text' name='person_name'/> <input type='text' name='person_pass'/>...
        @Bind
        List<Person> personList; // be put into attribute, in jsp we only need to use it,
        @Bind
        String title;  // in jsp we have  <input type='text' name='title'/>

        @Link("personList.htm")
        public String personList(HttpServletRequest request) {

        }
        @Link("personCreate.htm")
        public String personList() {

        }
       
        //getters & setters ...
       
    4 that's all


    examples:
    http://www.tkk7.com/Files/black_zerg/SimpleWeb.zip
    It's a netbeans project , need to including ShenCommon.jar in your classpath (which is in simpleWeb folder)
    It's very simple so no difficult to try it if you are using eclipse.

    just have a try. Any question please do not hesitate to contact me.


      
    posted on 2008-07-17 08:17 泥巴麒麟 閱讀(96) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
    博客園   IT新聞   Chat2DB   C++博客   博問  
     
    主站蜘蛛池模板: 成在人线av无码免费高潮喷水| 免费在线观看视频网站| 成人免费在线观看网站| 亚洲男人的天堂在线播放| 美女被免费网站在线视频免费 | 久久免费福利视频| 亚洲国产精品尤物YW在线观看| 亚洲一区在线观看视频| 久草免费福利视频| 亚洲女人被黑人巨大进入| 亚洲最大天堂无码精品区| 88xx成人永久免费观看| 亚洲日韩中文字幕在线播放| 在线观看亚洲电影| 日本妇人成熟免费中文字幕| 婷婷久久久亚洲欧洲日产国码AV| 免费一级毛suv好看的国产网站| 97人伦色伦成人免费视频| 亚洲午夜久久久精品影院| 国产一级婬片A视频免费观看| 国产精品免费看香蕉| 久久亚洲国产成人影院| 91精品成人免费国产片| 久久久综合亚洲色一区二区三区| 久久成人永久免费播放| 亚洲?V无码乱码国产精品| 456亚洲人成影院在线观| 2021在线永久免费视频| 亚洲国产a∨无码中文777| 国产国产人免费人成成免视频| 免费一级毛片不卡在线播放| 亚洲人成电影网站免费| 成人毛片视频免费网站观看| 亚洲一级毛片中文字幕| 91精品免费高清在线| 亚洲av成人无码久久精品 | 亚洲成av人片一区二区三区| 久久精品国产亚洲av天美18| 免费激情视频网站| 亚洲熟妇无码八V在线播放| 国产精品视频免费|