bug:
javax.servlet.ServletException: Request[/airSellOS] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.
at org.apache.struts.actions.DispatchAction.unspecified(DispatchAction.java:224)
at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:258)
... ...
功能描述:
提交表单
<form action="<%=basePath%>airSellOS.do?method=user">
... ...
</form>
action airSellOS不对应任何的表单form
解决方案:
一、表单出加入属性“method="post"”
二、将action中method写入隐藏表单域中
写法:<form action="<%=basePath%>airSellOS.do">
<input type="hidden" name="method" value="user">