I was asking specifically about the servlet exceptions that are thrown in.. like in a jsp page..at times we get a javax.servlet.serlvetException:null.. what are the possible causes and remedies for the same. tkx and wishing u also a thrilling day ahead! jyotsana
There are as many possible causes for a servlet exception as there are causes for any type of exception. In particular, ServletException is used as a "wrapper" exception. If any of the code your servlet or JSP uses throws an exception (of any sort), that exception is "wrapped" in a ServletException for processing by the container. I suggest you print out the stacktrace associated with your servlet exception, and see what it tells you.
I guess any exception being thrown out of a Servlet can be looked upon as a Servlet exception in the conceptual sense. Even in the class hierarchy, it is a child of Exception. The thing that is not clear to me is, how is this going to matter (being a ServletException, explicitly) to the client invoking the servlet, if he is going to print the stack trace anyway. Why not simply an excepion? Does the ServletException object have any special methods to package more information about the Servlet that threw it?
posted 14 years ago
when i try submitting a jsp page to it gives me a javax.servlet.servletException.. what should we do to remedy the same?