What are the exceptions thrown by Servlets?
Answers were Sorted based on User's Feedback
The Expceptions thrown by the servlet can be in two
exception classes
1.Servlet Exception
public ServletException();
public ServletException(String message);
public Throwable getRootCause()
2.Servlet Unavailable Exception
public class UnavailableException extends ServletException
public UnavailableException(String message);
public UnavailableException(String message, int seconds);
Is This Answer Correct ? | 11 Yes | 3 No |
Answer / sachin g.
1. ServletException
2. IOException
3. ClassNotFoundException
4. SQLException
Is This Answer Correct ? | 7 Yes | 7 No |
Answer / madhuri
servlet can thrown any type of unchecked Exception
Is This Answer Correct ? | 0 Yes | 3 No |
What is the difference between portlet and servlet?
What are the phases of a servlet life cycle?
What are the different mode that servlets can be used?
What do you mean by web applications? Explain web application directory arrangement?
Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.
How httpservlet is different from the genericservlet?
What do you mean by web applications?
Explain the servlet filter.
Can we write a constructor for a Servlet class ? if yes how ? if no why not ?
Servlet is pure java object or not?
Is dispatcher servlet a singleton?
What is servletconfig?