<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://m.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++博客   博問  
     
    主站蜘蛛池模板: 亚洲人成网站免费播放| 亚洲欧洲日韩在线电影| 自拍偷自拍亚洲精品播放| 亚洲欧洲免费无码| 亚洲熟妇自偷自拍另欧美| 亚洲一级毛片免费看| 亚洲沟沟美女亚洲沟沟| 亚洲成人免费在线观看| 亚洲性色高清完整版在线观看| 免费无码VA一区二区三区| 亚洲第一页中文字幕| 国产又大又粗又长免费视频| 亚洲a级片在线观看| 日韩免费视频在线观看| 青娱乐在线视频免费观看| 中文字幕专区在线亚洲| 免费观看91视频| 精品日韩99亚洲的在线发布| 看全色黄大色大片免费久久| 免费看内射乌克兰女| 亚洲av永久无码精品漫画| 99久久免费国产香蕉麻豆| 亚洲成AV人片在WWW| 亚洲精品乱码久久久久66| 91免费在线播放| 美女扒开屁股让男人桶爽免费| 久久精品国产精品亚洲下载| 91在线老王精品免费播放| 亚洲娇小性色xxxx| 亚洲国产精品综合久久一线| 永久免费不卡在线观看黄网站| 亚洲精品动漫在线| 免费一级国产生活片| 国内精品久久久久影院免费| 久久亚洲精品国产亚洲老地址| 亚洲国产成人久久综合野外| 最近中文字幕完整免费视频ww | 一级中文字幕免费乱码专区 | 一区二区亚洲精品精华液| 亚洲色一色噜一噜噜噜| 免费H网站在线观看的|