这个是actionpublic class UserManage extends DispatchAction{
//添加用户
public ActionForward add(ActionMapping mapping, ActionForm form,HttpServletResponse response,HttpServletRequest request)throws Exception{
PrintWriter pw = response.getWriter();
pw.print("add");}jsp页面是这样写的 <form action="usermanage.do?aaa=add" method="post"> 
配置文件是: <action path="/usermanage" name="UserForm" parameter="aaa" scope="request"
type="com.bookshop.struts.action.UserManage" input="/index.jsp" >
<forward name="success" path="/welcome.jsp" />
<forward name="failure" path="/login.jsp" />
</action>
错误提示是:java.lang.NoSuchMethodException: Action[/usermanage] does not contain specified method (check logs)刚在学struts,实在找不到错误的地方,百度上找了,全都是说 方法没有public 可是我的方法已经是公开的了.配置文件也找到对应的action了. 求教下.为什么会错呢?