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

What is servlet in web technology?

577


How do we translate jsp?

575


Are Servlets Thread Safe? How to achieve thread safety in servlets?

557


What is ServletConfig object?

606


When jsessionid is created?

603






How do you deal property files in servlet?

600


What is the difference between Servlets and Applets?

546


What is servlet configuration?

526


What is the use of request dispatcher interface?

567


Explain is servlet mapping?

580


What is the difference between Server and Container?

618


What is servlet name in web xml?

551


Which HTTP method is non-idempotent?

618


What are advantages of servlets over cgi?

626


What is the servletconfig object?

532