document.forms[0].action提交表单问题
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">