title: JSP Compilation Error
body: <pre><code>Object mainForumRecords=request.getAttribute("mainForumRecords");
  
      if(mainForumRecords instanceof ArrayList)
      {
  
          Iterator&lt;MainForumRecordBean&gt; recordIterator=((ArrayList&lt;MainForumRecordBean&gt;)mainForumRecords).listIterator();
          while(recordIterator.hasNext())
          {
              out.println("&lt;tr&gt;");
              MainForumRecordBean record=recordIterator.next();
              {
                  MainForumRecordBean mainForumRecord=(MainForumRecordBean)record;
                  out.print("&lt;td&gt;");
                  out.print(mainForumRecord.getMainPostId());
                  out.print("&lt;/td&gt;");
                  out.print("&lt;td&gt;");
                  out.print(mainForumRecord.getPostHeading());
                  out.print("&lt;/td&gt;");
                  out.print("&lt;td&gt;");
                  out.print(mainForumRecord.getPostText());
                  out.print("&lt;/td&gt;");
                  out.print("&lt;td&gt;");
                  out.print(mainForumRecord.getAuthorId());
                  out.print("&lt;/td&gt;");
                  out.print("&lt;td&gt;");
                  out.print(mainForumRecord.getTimeStamp());
                  out.print("&lt;/td&gt;");
              }
              out.println("&lt;/tr&gt;");
          }
      }
  </code></pre>
  
  <p>I am getting an error in the above JSP code. </p>
  
  <pre><code>org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
  
  PWC6197: An error occurred at line: 32 in the jsp file: /loginIndex.jsp
  PWC6199: Generated servlet error:
  string:///loginIndex_jsp.java:85: cannot find symbol
  symbol  : class MainForumRecordBean
  location: class org.apache.jsp.loginIndex_jsp
  
  PWC6197: An error occurred at line: 32 in the jsp file: /loginIndex.jsp
  PWC6199: Generated servlet error:
  string:///loginIndex_jsp.java:85: cannot find symbol
  symbol  : class MainForumRecordBean
  location: class org.apache.jsp.loginIndex_jsp
  
  PWC6197: An error occurred at line: 32 in the jsp file: /loginIndex.jsp
  PWC6199: Generated servlet error:
  string:///loginIndex_jsp.java:89: cannot find symbol
  symbol  : class MainForumRecordBean
  location: class org.apache.jsp.loginIndex_jsp
  
  PWC6197: An error occurred at line: 32 in the jsp file: /loginIndex.jsp
  PWC6199: Generated servlet error:
  string:///loginIndex_jsp.java:91: cannot find symbol
  symbol  : class MainForumRecordBean
  location: class org.apache.jsp.loginIndex_jsp
  
  PWC6197: An error occurred at line: 32 in the jsp file: /loginIndex.jsp
  PWC6199: Generated servlet error:
  string:///loginIndex_jsp.java:91: cannot find symbol
  symbol  : class MainForumRecordBean
  location: class org.apache.jsp.loginIndex_jsp
  </code></pre>
  
  <p>I have tried removing Parameterized cast in ArrayList  of Iterator object. But I've got error even then. Can anyone help me with this ??</p>