使用struts时报错
报错信息:javax.servlet.ServletException: Request[/common/count] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.
a.jsp-->b.jsp-->action
各页面主要代码如下:
a.jsp:
<form name="myform" method="post" action="<%=request.getContextPath() %>/common/loadcount.jsp">
<input type="hidden" name="url" value="<%=request.getContextPath() %>/common/count.do?beanName=com.x.y.FacctTradelogCount">
b.jsp(在js的check()函数内提交form到action):
<body onload="check()">
<form name="form" method="post" action="${param.url}">
config.xml:
<action path="/common/count" name="countForm" scope="request" parameter="method"
type="com.aaa.bbb..struts.action.CountAction" validate="false">
<forward name="count" path="/common/count.jsp"></forward>
<forward name="counterror" path="/error/counterror.jsp"></forward>
</action>
麻烦大家帮忙看看是什么原因?