does not contain handler parameter named 'method' 错误

does not contain handler parameter named method 异常jsp文件中有一个form,form actionwapAddressAct

does not contain handler parameter named 'method' 异常

jsp文件中有一个form,

<form action="wapAddressAction.do?method=saveSelect" >

</form>

点击提交按钮,提示异常:

org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet action threw exception
javax.servlet.ServletException: Request[/wap/wapAddressAction] does not contain handler parameter named 'method'.  This may be caused by whitespace in the label text.

解决办法:

最后在form里面加了一个 method="post"就可以了