• Post Reply Bookmark Topic Watch Topic
  • New Topic

org.apache.jasper.JasperException: java.lang.NullPointerException

 
krishan go
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey im recievin the following error
org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:500)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:428)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

for the jsp
<jsp:useBean id="obj" scope="session" class="calen.table"/>
<A > GO TO PREVIOUS DAY </A>
CURRENT DATE:<%= obj.getDate() %>
<A > GO TO NEXT DAY </A>
<table border=1>
<tr>
<th>TIME</th>
<th>Appointment</th>
</tr>
<% for(int i=0;i<12;i++)
{
String time=obj.getTime(i);
%>
<tr>
<td>
<A obj.getTime(i) %>><%= obj.getTime(i) %></A>
</td>
<td>
</td>
</tr>
<%
}
%>
</table>
</BODY>


</HTML>

help guys please...

Krishan
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use code tags , . Have you checked whether youur beans have been named properly?
 
Dan Dallas
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vic Hood wrote:use code tags , . Have you checked whether youur beans have been named properly?


I CANNOT SPELL..... I had this error and after the hint regarding my spelling of my beans the problem was sovled. I hate syntax errors........ Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!