我為你狂
          為你而瘋狂
          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 小虎(年輕) 閱讀(1465) 評論(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里的業務邏輯組件  回復  更多評論
            
          主站蜘蛛池模板: 威信县| 全南县| 盐城市| 吉木萨尔县| 县级市| 山阴县| 贡觉县| 磴口县| 庄浪县| 西乡县| 江城| 漾濞| 宜宾县| 波密县| 甘德县| 轮台县| 女性| 巧家县| 莲花县| 徐水县| 达日县| 布拖县| 西华县| 嵊州市| 福贡县| 浦县| 巩留县| 海盐县| 自贡市| 怀来县| 绩溪县| 泸溪县| 孙吴县| 增城市| 合水县| 孟连| 民丰县| 邢台县| 天镇县| 唐山市| 西丰县|