no

no

BlogJava 首页 新随笔 联系 聚合 管理
  6 Posts :: 2 Stories :: 0 Comments :: 0 Trackbacks
  1<struts-config>
  2    <form-beans >
  3    <form-bean name="registForm" type="com.hgs.cmb.form.RegistForm" />
  4    </form-beans>    
  5    <global-forwards>
  6        <forward name="info" path="/pages/actionMsg.jsp"></forward>
  7        <forward  name="ShowFile"  path="ShowFile"  contextRelative="true" />
  8    </global-forwards>    
  9    <action-mappings>    
 10<!-- 欢迎界面 -->
 11    <action path="/index" name="jhfForm" type="org.springframework.web.struts.DelegatingActionProxy">
 12            <forward name="index" path="/pages/pageIndex.jsp"></forward>
 13    </action>        
 14<!-- 分页 -->
 15    <action path="/page" type="org.springframework.web.struts.DelegatingActionProxy">
 16        <forward name="file" path="file" />
 17        <forward name="bbs" path="BBS" />
 18        <forward name="BBSDetail" path="ShowDetails" />
 19    </action>
 20<!-- 用户管理 -->
 21   <action path="/login" parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
 22      <forward  name="success"  path="/index.do"  />
 23      <forward name="nouser" path="/pages/user/nouser.jsp" redirect="true"/>
 24      <forward name="info" path="/pages/user/info.jsp" redirect="true"></forward>
 25      <forward name="index1" path="/index.jsp" redirect="true"/>
 26   </action> 
 27   <action  path="/regist" attribute="registForm" input="userExists" name="registForm" parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
 28      <forward name="success" path="/pages/user/registSuccessful.jsp" />
 29      <forward name="userExists" path="/pages/user/regist.jsp" />
 30    </action>
 31    <action path="/showInfo" parameter="method" name="registForm" validate="false" type="org.springframework.web.struts.DelegatingActionProxy">
 32        <forward  name="regist"   path="/pages/user/regist.jsp" ></forward>
 33        <forward name="userInfo" path="/pages/user/changeuser.jsp"></forward>
 34    </action>
 35
 36   <action path="/changeuser" parameter="method"  type="org.springframework.web.struts.DelegatingActionProxy">
 37      <forward name="success" path="/pages/user/UserQuery.jsp"  redirect="true"/>
 38   </action>   
 39   <action path="/submituser" parameter="method" name="jhfForm" 
 40                   input="input1"
 41                   type="org.springframework.web.struts.DelegatingActionProxy">
 42      <forward name="changesuccess" path="/index.do"  redirect="true"/>
 43      <forward name="input1" path="/pages/user/changeuser.jsp"></forward>
 44   </action>   
 45   <action path="/modifyuser" parameter="method" name="jhfForm" validate="false" type="org.springframework.web.struts.DelegatingActionProxy">
 46      <forward name="changeuser" path="/pages/user/changeuser.jsp" />
 47      <forward name="list" path="/pages/user/UserInfo.jsp"></forward>
 48   </action>
 49   <action path="/modifypswd" parameter="method" input="/pages/user/Modifypass.jsp" type="org.springframework.web.struts.DelegatingActionProxy">
 50      <forward name="ModPassOk" path="/index.do"></forward>
 51      <forward name="ModPassFail" path="/pages/user/Modifypass.jsp"></forward>
 52   </action>
 53   <action path="/user" parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
 54      <forward name="logoff" path="/index.jsp"></forward>
 55      <forward name="showdetail" path="/pages/user/showDetail.jsp"></forward>
 56   </action>
 57<!-- 管理员管理 -->
 58    <action path="/yaoyb" parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
 59      <forward name="info" path="/index.jsp" />
 60      <forward name="query" path="/pages/user/queryUser.jsp" />
 61      <forward name="showall" path="/pages/user/showAllUsers.jsp" />
 62      <forward name="regist" path="/regist.jsp" />
 63      <forward name="delsuccess" path="/pages/user/delsuccess.jsp" />      
 64      <forward name="success"    path="/pages/user/success.jsp"   contextRelative="true" />
 65      <forward name="checksuccess" path="/pages/user/success.jsp" />
 66      <forward name="manage" path="Manage" contextRelative="true"/>
 67      <forward name="userquery" path="/pages/user/down.jsp" contextRelative="true"/>
 68      <forward name="check" path="Check" contextRelative="true"></forward>
 69      <forward name="checkquery" path="/pages/user/down1.jsp" contextRelative="true"></forward>
 70      <forward name="test" path="Test" contextRelative="true"></forward>
 71      <forward name="test2" path="/pages/user/test/GridPanel.jsp" contextRelative="true"></forward>
 72    </action>
 73    <action path="/manager" parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
 74    <forward name="manage" path="Manage" contextRelative="true"/>
 75      <forward name="userquery" path="/pages/user/down.jsp" contextRelative="true"/>
 76      <forward name="check" path="Check" contextRelative="true"></forward>
 77      <forward name="checkquery" path="/pages/user/down1.jsp" contextRelative="true"></forward>
 78      <forward name="delsuccess" path="/pages/user/delsuccess.jsp" />      
 79      <forward name="checksuccess" path="/pages/user/success.jsp" />
 80    </action>
 81    <action path="/demo" parameter="method" type="org.springframework.web.struts.DelegatingActionProxy">
 82      <forward name="query" path="/pages/user/queryUser.jsp" />
 83      <forward name="showall" path="/pages/user/showAllUsers.jsp" />
 84      <forward name="delsuccess" path="/pages/user/delsuccess.jsp" />
 85      <forward name="checksuccess" path="/pages/user/success.jsp" /> 
 86      <forward name="test" path="Test" contextRelative="true"></forward>      
 87      <forward name="test2" path="/pages/user/test/GridPanel.jsp" contextRelative="true"></forward>
 88    </action>
 89
 90<!-- 文件制度发布--> 
 91    <action path="/fileQuery" type="org.springframework.web.struts.DelegatingActionProxy" parameter="fileQuery" />
 92    <action path="/fileDel" type="org.springframework.web.struts.DelegatingActionProxy" parameter="fileDel" />
 93    <action path="/fileAdd" type="org.springframework.web.struts.DelegatingActionProxy" parameter="fileAdd"
 94                      name="fileContentForm"
 95                      scope="request">
 96           <forward  name="AddFile"  path="AddFile"  contextRelative="true" />
 97    </action>  
 98    <action path="/fileMod" type="org.springframework.web.struts.DelegatingActionProxy" parameter="fileMod"
 99                      name="fileContentForm"
100                      scope="request">
101           <forward  name="ModFile"  path="ModFile"  contextRelative="true" />
102    </action>
103    <action path="/fileModAction" type="org.springframework.web.struts.DelegatingActionProxy" parameter="fileModAction"
104                      name="fileContentForm"
105                      input="ModFile"
106                      scope="request">
107           <forward  name="ShowNewFile"  path="/fileDetail.do"  contextRelative="true" />
108    </action>
109    <action path="/fileAddAction" type="org.springframework.web.struts.DelegatingActionProxy" 
110                  parameter="fileAddAction"
111                  input="AddFile"
112                  name="fileContentForm"
113                  scope="request"
114                  validate="true">
115    </action>
116    <action path="/fileDetail" type="org.springframework.web.struts.DelegatingActionProxy" parameter="fileDetail"
117                  name="fileDetailForm"
118                  scope="request">
119           <forward  name="DetailFile"  path="DetailFile"  contextRelative="true" />
120    </action>
121    <action path="/fileShow" type="org.springframework.web.struts.DelegatingActionProxy" parameter="fileShow">
122        <forward name="SearchFile" path="FindFile"></forward>
123    </action>
124    <action path="/getJsonMenu" type="org.springframework.web.struts.DelegatingActionProxy" parameter="getJsonMenu" />
125   <action path="/getFileList" type="org.springframework.web.struts.DelegatingActionProxy" parameter="getFileListByType" />
126<!-- 信息交流 --> 
127    <action path="/bbs" parameter="method" name="restoreForm" type="org.springframework.web.struts.DelegatingActionProxy" >
128       <forward name="success" path="BBS"></forward>       
129       <forward name="newtitle" path="NewTitle"></forward>
130       <forward name="savesuccess" path="/pages/bbs/savesuccess.jsp"></forward>
131       <forward name="savefail" path="/pages/bbs/savefail.jsp"></forward>
132       <forward name="showdetails" path="ShowDetails"></forward>
133       <forward name="page" path="/page.do"></forward>
134    </action>
135<!-- 文件下载 -->
136    <action path="/download" type="com.hgs.cmb.action.DownloadAction" />
137    </action-mappings>
138    <controller maxFileSize="2M" inputForward="true" /> 
139    <message-resources parameter="com.hgs.cmb.ApplicationResources" />    
140<!-- Tiles Framework -->
141    <plug-in className="org.apache.struts.tiles.TilesPlugin">
142        <set-property property="definitions-config"
143            value="/WEB-INF/tiles-defs.xml" />
144        <set-property property="definitiions-parse-validate"
145            value="true" />
146    </plug-in>
147<!-- springContext -->
148    <plug-in
149        className="org.springframework.web.struts.ContextLoaderPlugIn">
150        <set-property property="contextConfigLocation"
151            value="/WEB-INF/applicationContext.xml" />
152    </plug-in>
153<!-- Validator Framework -->
154    <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
155        <set-property property="pathnames"
156            value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
157    </plug-in>
158</struts-config>
159
160
posted on 2008-06-17 07:51 yasoo 阅读(220) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: