<<test.jsp>>
<%@ page errorPage="/error.jsp" %><<error.jsp>>
<%
int a[] = {3,2,1};
a[3]=100;
%>
<%= a[1] %>
<%@ page isErrorPage="true" import="java.io.*" %>when i send the request to page test.jsp then it gives HTTP 500 Internal Server Error.
<html>
<head><title>Error Page.</title></head>
<body bgcolor="blue">
<font size="16" color="white">Your page generated an error:"<br/>
Exception:<br/>
<%= exception %></font>
</body>
</html>
I get error only if I first change a[3] to a[2] in file test.jsp and enter the url for test.jsp(this gives output on browser) and then I change back a[2] to a[3] and enter url for test.jsp in same browser.
So I want to know where is the problem exactly.