This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: directing to error page
 
It's not a secret anymore!