hi i have the following code.
<%-- The size of file parul.txt is <200kb. Then why the exception --%>
<%@ page buffer="200kb"
autoFlush="false"
import="java.io.*"
errorPage="errorPage.jsp"
%>
<%
try{
FileReader dis = new FileReader("C:\\Tomcat5\\webapps\\scwcd\\HFSJ\\chap08\\parul.txt");
int i=dis.read();
while(i!=-1){
out.print(i);
i=dis.read();
}
}catch(Exception e){
out.println("ex:"+e.toString());
}
%>
Here the size of parul.txt is less than 200kb(buffer size). I am getting java.io.IOException: Error:
JSP Buffer overflow.
Can some pls explain the reason of exception.