handle runtime error from other classes and display in JSP
From: Matt (jrefactors_at_hotmail.com)
Date: 06/30/04
- Next message: Yu SONG: "Re: creating a folder on a new drive?"
- Previous message: Matt: "compare with empty string uses equals method or == ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Jun 2004 17:05:57 -0700
Should I catch exception in jsp page? or we can just put the following
in jsp page that can throw error.
<%@ page errorPage="errorpage.jsp" %>
In other words, should I put something like that in JSP page?
try
{
//etc...
}
catch(IOException e)
{ e.printStackTrace();
}
catch(Exception e)
{ e.printStackTrace();
}
My JSP page has method calls to other classes, and when exception is thrown from
other classes, I should display the message in JSP page, not the stack trace.
any suggestions? thanks!!
- Next message: Yu SONG: "Re: creating a folder on a new drive?"
- Previous message: Matt: "compare with empty string uses equals method or == ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|