help me to resolve this error
when i worked with struts errors it show the following errors while deploying
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoSuchMethodError: ActionOne.saveErrors(Ljavax/servlet/http/HttpServletRequest;Lorg/apache/struts/action/ActionErrors;)V
ActionOne.execute(ActionOne.java:18)
this is my code:
import org.apache.struts.action.*;
import javax.servlet.http.*;
import javax.servlet.*;
public class ActionOne extends Action{
public ActionOne(){
System.out.println("action one() object is created");
}
public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response) throws Exception{
ActionErrors aes=new ActionErrors();
ActionMessage am1=new ActionMessage("error.one");
aes.add("gone",am1);
ActionMessage am2=new ActionMessage("error.two");
aes.add("gtwo",am2);
ActionMessage am3=new ActionMessage("error.three");
aes.add("gthree",am3);
saveErrors(request,aes);
return mapping.findForward("first");
}
}