GeeCON Prague 2014*
The moose likes JSP and the fly likes directing to error page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "directing to error page" Watch "directing to error page" New topic
Author

directing to error page

Jan Figo
Greenhorn

Joined: Nov 26, 2003
Posts: 9
Hi,
i am writing a jsp that shoud send the control to a error page when there is any error on page.
Thanks in advance.


Take life as it comes!!!<br />~jan
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
If you actually want to transfer control, you can use the forward method of the ReguestDispatcher object.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Vasantha Prabha
Ranch Hand

Joined: Oct 02, 2003
Posts: 108
Heyy u can do this way...
<%@ page errorpage="error.jsp" %>
and in the error page
<%@ page iserrorpage="true" %>
Have u tried this way !
sangeetha


Regards,Vasantha<p>Great minds discuss ideas. Average minds discuss events. Small minds discuss people.
Jan Figo
Greenhorn

Joined: Nov 26, 2003
Posts: 9
Originally posted by Sangeetha Vasantha:
Heyy u can do this way...
<%@ page errorpage="error.jsp" %>
and in the error page
<%@ page iserrorpage="true" %>
Have u tried this way !
sangeetha

This is working fine!!! Thanks Sangeetha
 
GeeCON Prague 2014
 
subject: directing to error page