Home Tutorialhelp Comment Help me Code

 
 

Comment

Lan
Help me Code,
October 14, 2008 at 12:38 PM

org.apache.jasper.JasperException: An exception occurred processing JSP page /hello/BookEntryForm.jsp at line 30

27: String bookname=request.getParameter("book_name");
28: String author=request.getParameter("author");
29:
30: stmt.executeUpdate("insert into books_details(book_name,author) values('"+bookname+"','"+author+"')");
31:
32:
33: rst=stmt.executeQuery("select * from books_details");


Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:426)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

java.lang.NullPointerException
org.apache.jsp.hello.BookEntryForm_jsp._jspService(BookEntryForm_jsp.java:84)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Advertisements Advertisements
 

 

 

DMCA.com