I really need help ,
i am working on an application with netbeans and servlets.
I have a form in which i give the id then select a table in which i will go and search the id to the oracle database.
i am trying to send my objet to the jsp file from the servlet.
--------------------------------------------
this is the way i did
//recherche sur la table BASE_NGHLR new instance pour acceder a la methode recherche(id)
BASE_NGHLR base=new BASE_NGHLR();
//instance pour recuperer le resultat de la recherche (qui retourne un objet)
base=base.recherche(msisdn);
//envoi a la page res_recherche.jsp
request.setAttribute("BASE_NGHLR",base.getImsi());
RequestDispatcher res=getServletContext().getRequestDispatcher("/res_recherche.jsp");
res.forward(request,response);
------------------------------------------------------
this is my error
ATTENTION: ApplicationDispatcher[/tutoj2ee] PWC1231: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.res_005frecherche_jsp._jspService(r es_005frecherche_jsp.java from :125)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:847)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:406)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:483)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:373)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:847)
at org.apache.catalina.core.StandardWrapper.service(S tandardWrapper.java:1523)
at org.apache.catalina.core.ApplicationDispatcher.doI nvoke(ApplicationDispatcher.java:802)
at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:664)
at org.apache.catalina.core.ApplicationDispatcher.pro cessRequest(ApplicationDispatcher.java:497)
at org.apache.catalina.core.ApplicationDispatcher.doD ispatch(ApplicationDispatcher.java:468)
at org.apache.catalina.core.ApplicationDispatcher.dis patch(ApplicationDispatcher.java:364)
at org.apache.catalina.core.ApplicationDispatcher.for ward(ApplicationDispatcher.java:314)
at STIC3.connectionServlet.doGet(connectionServlet.ja va:207)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:847)
at org.apache.catalina.core.StandardWrapper.service(S tandardWrapper.java:1523)
at .Thread.run(Thread.java:619)