The Prime Minister has two types, one in Java.
try{
}catch ()
{
}
The second type is
Error message:
<%
Out.println (' ... ');
%>
For example:
<%@ page language= "java" import= "java.util.*" pageencoding= "Iso-8859-1"%>
<% @page iserrorpage = "true"%>
<%
String path = Request.getcontextpath ();
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";
%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >
<base href= "<%=basePath%>" >
<title>my JSP ' index.jsp ' starting page</title>
<meta http-equiv= "Pragma" content= "No-cache" >
<meta http-equiv= "Cache-control" content= "No-cache" >
<meta http-equiv= "Expires" content= "0" >
<meta http-equiv= "keywords" content= "keyword1,keyword2,keyword3" >
<meta http-equiv= "description" content= "This is my page" >
<!--
<link rel= "stylesheet" type= "Text/css" href= "Styles.css" >
-
<body>
Error message:
<%
%>
<br>
</body>
The method of Java EE JSP in handling the error of exception