• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

directing to error page

 
Jan Figo
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you actually want to transfer control, you can use the forward method of the ReguestDispatcher object.
 
Vasantha Prabha
Ranch Hand
Posts: 108
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Heyy u can do this way...
<%@ page errorpage="error.jsp" %>
and in the error page
<%@ page iserrorpage="true" %>
Have u tried this way !
sangeetha
 
Jan Figo
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic