BirdsHover

          ——路漫漫其修遠兮,吾將上下而爬樓梯!

            BlogJava :: 首頁 ::  :: 聯系 :: 聚合  :: 管理 ::
            21 隨筆 :: 8 文章 :: 34 評論 :: 0 Trackbacks
          <2008年11月>
          2627282930311
          2345678
          9101112131415
          16171819202122
          23242526272829
          30123456

          公告

          網名: yurow birdshover
                 PTX 無術 夕陽軌跡 等
          本名: 謝平
          籍貫: 江蘇溧陽
          位置: 上海
          職業: C# & 打字
          聯系方式: 27501013(QQ) MSN.gif

          常用鏈接

          留言簿(2)

          隨筆分類

          文章分類

          我的其它博客

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          validation.xml配置form

              <formset>

                  <!-- An example form -->
                  <form name="logonForm">
                      <field
                          property="username"
                          depends="required">
                              <arg key="logonForm.username"/>
                      </field>
                      <field
                          property="password"
                          depends="required,mask">
                              <arg key="logonForm.password"/>
                              <var>
                                  <var-name>mask</var-name>
                                  <var-value>^[0-9a-zA-Z]*$</var-value>
                              </var>
                      </field>
                  </form>

              </formset>


          struts-config.xml
          配置
          <action attribute="logonForm" input="/index.jsp" name="logonForm" path="/login" scope="request" validate="true" type="org.springframework.web.struts.DelegatingActionProxy" />

           <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
                  <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
              </plug-in>

          dispatcher-servlet.xml配置
          <bean name="/login" class="com.myapp.struts.LoginAction"></bean>

          配置完后spring的url-mapping無效了,郁悶ing,睡覺了,做個筆記先
          posted on 2008-11-26 00:40 Birdshover 閱讀(420) 評論(2)  編輯  收藏

          評論

          # re: netbeans 6.5 spring + struts實驗 2008-11-26 00:44 Birdshover
          去掉struts-config.xml 里的action和plug-in又可以用了  回復  更多評論
            

          # re: netbeans 6.5 spring + struts實驗 2008-12-22 12:01 Ivan阿文
          因為netbeans自帶的spring模塊里沒有org.springframework.web.struts這個包  回復  更多評論
            


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


          網站導航:
           
          主站蜘蛛池模板: 海盐县| 交城县| 修水县| 德令哈市| 米易县| 无为县| 宾阳县| 天祝| 石城县| 霞浦县| 华安县| 鄄城县| 万州区| 新和县| 永年县| 闵行区| 进贤县| 多伦县| 桦南县| 兴城市| 肇州县| 海安县| 富平县| 湘潭市| 高邑县| 保亭| 扶风县| 无锡市| 从江县| 正蓝旗| 西林县| 民丰县| 醴陵市| 蚌埠市| 安多县| 镇安县| 伊宁县| 高邑县| 临洮县| 满洲里市| 东明县|