Greetings,
    I'm using JSP to develop a website. I have one JSP page (named StudentDetails.jsp) which
shows details of all the students. It has the following codes:
 
    <%       Student students[] = stuBean.getStudents();     // where stuBean is the java bean in this page
                 
                for ( int i = 0; i < students.length; i++)
                {
                    Student oneStudent = students[i];
    %>    <%@ include file="StudentDetails.jsp" %>
   <%        }
    %>
 
 
    Where StudentDetails.jsp is a page showing details of one student. However, when I try to run
the page, I got the following error:
Unhandled error! You might want to consider having an error page to report such errors more gracefully
java.io.IOException: Error: Attempt to clear a buffer that's already been flushed
        at com.sun.jsp.runtime.JspWriterImpl.clear(JspWriterImpl.java:115)
        at D_0003a.jswdk_0002d_00031_0005f_00030.examples.jsp.Project.StudentDetails_jsp_1._jspService(StudentDetails_jsp_1.java, Compiled Code)
        at com.sun.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:88)
        at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:218)
        at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:294)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
        at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:155)
        at com.sun.web.core.Context.handleRequest(Context.java:414)
        at com.sun.web.server.ConnectionHandler.run(ConnectionHandler.java:139)
 
Is there anything wrong with my code? Pls help. TIA!
 
===
Regards,
June
   
 

Reply via email to