code: private boolean ignoreComment( ) throws IOException
      {
      	StringBuffer comment = new StringBuffer();
          int prev = 0;
          int character = 0;
          boolean endFound = false;
          boolean eofFound = false;
          while( endFound == false )
          {
              prev = character;
              character = readCharacter();
              if (character != -1) 
              {
                  comment.append( (char) character );
                  if ( character == '>' && prev =='%' )
                  {
                     String fullComment = comment.toString(); 
                     if (fullComment.endsWith("--%>"))
                     {
                       endFound = true;
                     }
                  }
              }
              else 
              {
                eofFound = endFound = true;
              }
          } // end "while"
          return eofFound;
      }
docs: begin 221074: code was added to ignore comments when searching for page directive.