i get a java.lang.NullPointerException exception error when i try to run my servlet:
the exact error is:
java.lang.NullPointerException
OnlineAdmin.doGet(OnlineAdmin.java:38)
javax.servlet.http.HttpServlet.service (HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
***********(if this helps)
on line 38 in my serlvet is:
if (strAction != null || strAction.equals("Students"))
i also have in the line before that another if statement that is coded liek this
if (request.getParameter("action") == null || request.getParameter("action").equals(""))
**************************
now if this is problem...any help with my code would be awesome
or if it is something else...that i might be doing wrong in my servlet...any sugguest would be appreciated
pdotd
the exact error is:
java.lang.NullPointerException
OnlineAdmin.doGet(OnlineAdmin.java:38)
javax.servlet.http.HttpServlet.service (HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
***********(if this helps)
on line 38 in my serlvet is:
if (strAction != null || strAction.equals("Students"))
i also have in the line before that another if statement that is coded liek this
if (request.getParameter("action") == null || request.getParameter("action").equals(""))
**************************
now if this is problem...any help with my code would be awesome
or if it is something else...that i might be doing wrong in my servlet...any sugguest would be appreciated
pdotd