M
Matt
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!!
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!!