Exception Implicit Object


Prev Tutorial Next Tutorial

Exception Implicit Object

JSP, exception is an implicit object of type java.lang.Throwable class. This object can be used to print the exception. But it can only be used in error pages.

Example of Exception implicit object

index.html

Example

<form action="welcome.jsp">  
<input type="text" name="uname">  
<input type="submit" value="go"><br/>  
</form>

welcome.jsp

Example

<%   
response.sendRedirect("http://www.google.com");  
%> 

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements