我為你狂
          為你而瘋狂
          posts - 29,comments - 9,trackbacks - 0

          ??? 對一些CRUDAction,可以使用通配符,如果這批action里某個action某個方法還存在特殊路徑,可以在代碼里直接new ActionForward("/foo.jsp");

          <action?path="/admin/*"?name="{1}Form"?parameter="method"?scope="request"?validate="false">
          ????????????<forward?name="list"?path="/WEB-INF/pages/admin/{1}List.jsp"/>
          ????????????<forward?name="edit"?path="/WEB-INF/pages/admin/{1}Form.jsp"/>
          ????????????<forward?name="success"?path="/admin/{1}.do?method=list"?redirect="true"/>
          action>

          posted on 2007-03-07 21:29 小虎(年輕) 閱讀(1466) 評論(2)  編輯  收藏 所屬分類: STRUTS

          FeedBack:
          # re: struts-config.xml使用通配符[未登錄]
          2007-03-21 17:32 | Frank
          只可惜太脆弱了,老是出問題
          org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/admin/rule' defined in ServletContext resource [/WEB-INF/action-servlet.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
            回復  更多評論
            
          # re: struts-config.xml使用通配符
          2008-08-25 09:27 | zxg
          不要把struts與spring進行整合
          使用門面模式讓struts能訪問spring里的業務邏輯組件  回復  更多評論
            
          主站蜘蛛池模板: 基隆市| 丹阳市| 巨野县| 土默特左旗| 农安县| 健康| 个旧市| 大宁县| 芜湖县| 莱芜市| 罗平县| 交城县| 旌德县| 大田县| 田阳县| 永平县| 洛隆县| 牟定县| 佛教| 久治县| 宝山区| 卢龙县| 秀山| 沿河| 云龙县| 蚌埠市| 沙雅县| 璧山县| 桐乡市| 佛学| 灵璧县| 陇川县| 长岛县| 旬邑县| 肥西县| 内乡县| 台北市| 盘锦市| 新蔡县| 平江县| 屏山县|