Gatequery.jsp
<%@ page contentType="text/html; charset=GBK" %>
<script language="javascript">
function doSubmit(){
  document.fm.action="<%=request.getContextPath()%>/GateQuery.do";
  document.fm.submit();
  return true;
}
</script>
<form name="fm" method="POST" >
<table border="0" cellpadding="1" cellspacing="1">
  
......
<input type="button" value="查询" onclick="doSubmit()">
</table>
</form>struts-config.xml
<action-mappings>
<action path="/GateQuery" type="jbmvc.GateQuery">
<forward name="ingatequery" path="/Getrequest.jsp" />
</action>
</action-mappings>运行时,提示:
HTTP Status 404 - Servlet action is not available
why?GateQuery.java
...
return actionMapping.findForward("ingatequery");
..