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

    Unhappy NullPointerException module: null not found

    Hi when i tried to run the below code i got the error.

    org.apache.jasper.JasperException: java.lang.NullPointerException: Module 'null' not found.
    org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:522)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:416)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:342)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:267)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)


    this is program data:

    import org.apache.struts.action.*;
    import javax.servlet.http.*;
    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){
    System.out.println("action forward execute()");
    ActionForward af=null;
    return af;
    }
    }

    i configured the class in struts-config.xml
    please help me to resolve this error.

  2. #2
    akiravelmont is offline Member
    Join Date
    Mar 2011
    Location
    bangalore
    Posts
    61
    Rep Power
    0

    Default

    this is how i configured in struts-cinfig.xml

    <action type="ActionOne" path="one"/>

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

    Default

    the struts redirection result must not be null
    return sth like "success" or sth and in struts-config map this result to some url

Similar Threads

  1. NullPointerException error for null panel
    By bhuvanakarthikk in forum New To Java
    Replies: 8
    Last Post: 01-11-2011, 01:44 PM
  2. The module has not been deployed
    By BrettCarr in forum NetBeans
    Replies: 0
    Last Post: 01-03-2011, 02:09 AM
  3. Replies: 6
    Last Post: 10-18-2010, 10:40 AM
  4. Netbeans Diff module
    By momcilo_jocic@yahoo.com in forum NetBeans
    Replies: 0
    Last Post: 07-16-2010, 06:06 PM
  5. problem deploying war module
    By aks_1 in forum Java Servlet
    Replies: 4
    Last Post: 05-04-2010, 05:58 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
  •