我用DispatchAction
js 为 document.myform.action = "/ouroa/rolequery.do?id="+id+"&methods=add";配置文件为
<action path="/rolequery"
type="org.springframework.web.struts.DelegatingActionProxy"
name="roleform"
parameter = "methods"
>action为
public ActionForward dele(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
}public ActionForward add(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
}为什么不能进入add action中呢 而提交dele 却没有问题?
js 为 document.myform.action = "/ouroa/rolequery.do?id="+id+"&methods=add";配置文件为
<action path="/rolequery"
type="org.springframework.web.struts.DelegatingActionProxy"
name="roleform"
parameter = "methods"
>action为
public ActionForward dele(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
}public ActionForward add(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
}为什么不能进入add action中呢 而提交dele 却没有问题?
确认没有进add方法吗?在add方法的第一行前打印也看不到吗?现象是什么呢?跳转到空白页了?还是没有跳转?
“界面,运行都没有错误” 指什么
在你的action里在写一个简单的方法试试,如果依旧没有执行该方法的,估计你继承DispatchAction 的时候出问题了。