Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to create my own error page  RSS feed

 
Arun Vethadas .T
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai
how to create my own error page when exception or some error in the server , database.
pls give JSP code & sample. Tomcat3.2.3 & oracle
with JDBC for database connection.
any link regarding these details. pls help me.
thanks,
arun.
 
Sandeep. Oza
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arun,
I am also finding solution of these qestion..
Pl. if you find letme know on sandeepo@bsil.com
Mean while try this:
<%@ page errorPage="ErrorPage.jsp" %>
write this in all page at top.
Error.jsp is your custonized generic error page.
in Error.jsp page write:
<%@ page isErrorPage="true" %> on the top
If ant error/excption throwed, control goes to error page..
Note that from bean the error exception must be passed to jsp page .
S. Oza
 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
try this link for your problem.
http://www.magelang.com/faq/view.jsp?EID=370
hope this will help you.
-arun
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!