Results 1 to 4 of 4
  1. #1
    akiravelmont is offline Member
    Join Date
    Mar 2011
    Location
    bangalore
    Posts
    61
    Rep Power
    0

    Unhappy 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");
    }
    }

  2. #2
    shnplr is offline Member
    Join Date
    May 2011
    Posts
    6
    Rep Power
    0

    Default

    try:

    Java Code:
    ActionMessages aes=new ActionMessages();

  3. #3
    foo123 is offline Member
    Join Date
    May 2011
    Posts
    10
    Rep Power
    0

    Default

    u are using a method non-existant or not included
    try inserting log messages after each command inside execute method to see where the error occurs or try debugging using MyEclipse which can debug J2EE apps

  4. #4
    roja.raou Guest

    Default

    Cannot function with current settings. Open Tools then Internet options then Security then Custom Level then change 'Script ActiveX controls marked safe for scripting' to Enable then click ok, Quit and restart.

Similar Threads

  1. any one help me to resolve this error
    By akiravelmont in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-11-2011, 06:06 PM
  2. how to resolve this error???
    By 10e5x in forum New To Java
    Replies: 1
    Last Post: 01-21-2011, 07:40 AM
  3. How to RESOLVE the follwoing error
    By shiva.b in forum New To Java
    Replies: 0
    Last Post: 03-11-2010, 05:08 PM
  4. Facing this error..How to resolve??
    By vishalsnc in forum Java Applets
    Replies: 0
    Last Post: 08-14-2009, 11:58 AM
  5. Error: cannot resolve symbol, help me
    By mathias in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 08-06-2007, 02:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •