<%@ page language= "java" import= "java.util.*" pageencoding= "UTF-8"%>
<%@ page errorpage= "error.jsp"%>
<%
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%>" >
<meta http-equiv= "Content-type" content= "Text/html;charset=utf-8" >
<title>this is my JSP 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>
<%
int c = 1/0;
%>
<%--
<%=basePath%>
--%>
</body>
ERROR.JSP:
<body>
Server error
</body>
Usage of JSP compiler directive ErrorPage