What are the exceptions thrown by Servlets?

Answer Posted / tulasivani

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you get the ip address of the client in servlet?

554


How can you start a jta transaction from a servlet deployed on jboss?

676


What are the functions of an intercepting filter?

489


What is a java servlet?

557


What is meant by session? Tell me something about httpsession class?

603






How to notify an object in session when session is invalidated or timed-out?

634


What is the directory structure of web application?

530


What are the different ways we can maintain state between requests?

580


What is the use of welcome-file-list?

574


What is the process to implement doget and dopost methods?

548


Can filter be used as request or response?

546


What is the inter-servlet communication?

703


If a servlet is not properly initialized, what exception may be thrown?

629


What is the difference between get and post methods?

604


What are the types of Session Tracking ?

648