有通配符的struts.xml重复表单提交配置


<!-- 题目维护-->
   <action name="pool_*" class="poolAction" method="{1}">
   <interceptor-ref name="tokenSession" >
    <param name="includeMethods">sadd</param>
   </interceptor-ref>
    <interceptor-ref name="defaultStack"></interceptor-ref>
    <result name="invalid.token">pool_toEdit.do</result>
    
    <result name="list">/WEB-INF/page/hrManage/poolManage/subjectManage/poolList.jsp</result>
    <result name="toAdd">/WEB-INF/page/hrManage/poolManage/subjectManage/addEasys.jsp</result>
    <result name="toEdit">/WEB-INF/page/hrManage/poolManage/subjectManage/editPool.jsp</result>
    <result name="toSubEdit">/WEB-INF/page/hrManage/poolManage/subjectManage/editSubPool.jsp</result>
    <result name="toFound">/WEB-INF/page/hrManage/poolManage/subjectManage/searchClient.jsp</result>
    <result name="subjectlist">/WEB-INF/page/hrManage/poolManage/paperManage/searchSubject.jsp</result>
  </action>

 

表单

<s:form  action="pool_sadd.do" name="form1" id="form1pool" method="post"  namespace="/personalManage">
<input type="submit" name="submit" value="确定" class="button" id="hiddenbutton" style="display:none"/>
<s:hidden name="model.subid" id="subid"/>

<table border="0" style="display:none" cellspacing="0" cellpadding="0" id="tiptab2" class="tiptab2">
  <tr>
    <td width="98%" class="tiperror"><span id="error2"></span></td>
    <td width="2%" valign="top"><a href="#" title="关闭" onclick='closeError();' class="tipclose"></a></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="text">
<tr>
<td height="30" class="red">选项编号:</td>
<td><input type="text" class="edit_input" name="omodel.optioncode" id="addoptioncode" onclick="selectError(this.title,this.id,'error2');" 
onblur="checkSubNullAndRepeat('addoptioncode','选项编号','idaddoptioncode','personalManage','pool','error2','2');"/><em id="idaddoptioncode"></em></td>
</tr>
<tr>
<td class="red">选项描述:</td>
<td><textarea rows="4" name="omodel.optiondesc"  cols="40" id="addoptiondesc" onclick="selectError(this.title,this.id,'error2');" onblur="checkSubNull('addoptiondesc','选项描述','idaddoptiondesc','error2','2');"></textarea><em id="idaddoptiondesc"></em></td>
</tr>
<tr>
<td height="30">参考答案:</td>
<td><s:radio  name="omodel.subjectans" list="#{'SHI':'是','FOU':'否'}" id="editsubjectans" value="'SHI'"/></td>
</tr>
<tr>
<td></td>
<td><s:token/><input type="button" name="submit" value="确定" class="button" onclick="addSubmit();"/> <input type="reset" name="reset" value="重置" class="button" /></td>
</tr>
</table>
</s:form>









转自 百度博客

你可能感兴趣的:(有通配符的struts.xml重复表单提交配置)