
document.forms[0].action提交表单问题 5
functionload(){variName="<%=iName%>";//alert(iName);document.forms[0].action="<%=requ...
function load(){
var iName = "<%=iName%>";
//alert(iName);
document.forms[0].action = "<%=request.getContextPath()%>/DataQueryAction_toReal.do?iName="+iName;
}
<body onload="load()">
提交不到action方法里,请高手解答
报WARN [org.apache.struts2.components.ServletUrlRenderer] - No configuration found for the specified action: 'DataQueryAction_toReal.do' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
补充:<s:form action="DataQueryAction_toReal.do" namespace="" method="post"> 展开
var iName = "<%=iName%>";
//alert(iName);
document.forms[0].action = "<%=request.getContextPath()%>/DataQueryAction_toReal.do?iName="+iName;
}
<body onload="load()">
提交不到action方法里,请高手解答
报WARN [org.apache.struts2.components.ServletUrlRenderer] - No configuration found for the specified action: 'DataQueryAction_toReal.do' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
补充:<s:form action="DataQueryAction_toReal.do" namespace="" method="post"> 展开
2个回答
展开全部
struts2 中action的后缀名一般是".action"吧,看看你的xml 中配置是否一致。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询