org.gjt.jsp
Class ForgivingParser

java.lang.Object
  extended by org.gjt.jsp.ForgivingParser
All Implemented Interfaces:
org.gjt.jsp.JspMsg

 class ForgivingParser
extends java.lang.Object

Author:
Phil Schwarz

Field Summary
private  boolean ignoreIncludes
           
 
Fields inherited from interface org.gjt.jsp.JspMsg
E000_dummy_error, ERR_gnujsp_bad_jsp_tag_format, ERR_gnujsp_broken_getresource, ERR_gnujsp_cannot_interpret_pathinfo, ERR_gnujsp_cannot_write_to, ERR_gnujsp_caught_exception_tell_admin_no_errorpage, ERR_gnujsp_caught_exception_tell_admin_see_log, ERR_gnujsp_check_if_you_forgot, ERR_gnujsp_consider_an_errorpage, ERR_gnujsp_could_not_create, ERR_gnujsp_could_not_find_resourceimpl, ERR_gnujsp_could_not_reconstruct_url, ERR_gnujsp_directive_value_missing_quotes, ERR_gnujsp_error_compiling_source_file, ERR_gnujsp_error_processing_jsp_page, ERR_gnujsp_evtl_missing_pagebase, ERR_gnujsp_exception_while_servicing_request, ERR_gnujsp_illegal_code_line_format, ERR_gnujsp_illegal_param_tag, ERR_gnujsp_internal_error, ERR_gnujsp_jspplugin_not_supported, ERR_gnujsp_missing_closing_tag, ERR_gnujsp_missing_init_parameter, ERR_gnujsp_missing_pagebase, ERR_gnujsp_parse_attr_unnamed_jsp_directive, ERR_gnujsp_parse_close_tag_does_not_match_open_tag, ERR_gnujsp_realpath_is_null, ERR_gnujsp_see_server_log_for_details, ERR_gnujsp_taglib_not_supported, ERR_gnujsp_unexpected_eof, ERR_gnujsp_unhandled_exception, ERR_gnujsp_unrecognized_jsp_directive, ERR_gnujsp_unrecognized_jsp_tag, ERR_gnujsp_unsafe_singletread_execute, ERR_method_addcookie_not_allowed, ERR_sp10_2_12_1_invalid_value_expression_and_string, ERR_sp10_2_12_2_duplicate_id, ERR_sp10_2_13_1_could_not_instantiate_bean, ERR_sp10_2_13_1_could_not_instantiate_bean_class_not_found, ERR_sp10_2_13_1_illegal_attr_class_and_beanname, ERR_sp10_2_13_1_illegal_session_scope, ERR_sp10_2_13_1_missing_attr_id, ERR_sp10_2_13_1_missing_attr_type_or_class, ERR_sp10_2_13_2_illegal_attr_param_and_value, ERR_sp10_2_13_2_impossible_string_conversion, ERR_sp10_2_13_2_missing_attr_name, ERR_sp10_2_13_2_missing_attr_property, ERR_sp10_2_13_2_property_not_found, ERR_sp10_2_13_2_setter_not_found, ERR_sp10_2_13_2_undefined_bean_instance, ERR_sp10_2_13_3_bean_is_null, ERR_sp10_2_13_3_missing_attr_name, ERR_sp10_2_13_3_missing_attr_property, ERR_sp10_2_13_3_property_not_found, ERR_sp10_2_13_4_illegal_value_flush_not_true, ERR_sp10_2_13_4_missing_attr_flush, ERR_sp10_2_13_4_missing_attr_page, ERR_sp10_2_13_5_could_not_find_forward_file, ERR_sp10_2_13_5_could_not_find_include_file, ERR_sp10_2_13_5_missing_attr_page, ERR_sp10_2_7_1_cannot_forward_to_error_page, ERR_sp10_2_7_1_duplicate_attribute_contenttype, ERR_sp10_2_7_1_exceeded_buffer_size, ERR_sp10_2_7_1_illegal_clear_after_write, ERR_sp10_2_7_1_invalid_attribute, ERR_sp10_2_7_1_invalid_value_buffersize, ERR_sp10_2_7_1_invalid_value_iserrorpage, ERR_sp10_2_7_1_invalid_value_isthreadsafe, ERR_sp10_2_7_1_invalid_value_no_buffer_no_autoflush, ERR_sp10_2_7_1_no_mapping_for_language, ERR_sp10_2_7_1_parse_error_expected_gt_after_percent, ERR_sp10_2_7_1_parse_error_expected_gt_after_slash, ERR_sp10_2_7_6_illegal_attr_file_must_be_relative, ERR_sp10_2_7_6_missing_attr_file, ERR_sp10_A_3_already_called_getoutputstream, ERR_sp10_A_3_already_called_getwriter, ERR_sp10_A_4_illegal_scope, ERR_sp10_B_9_cannot_find_request_dispatcher, ERR_sp11_3_4_illegal_jsp_precompile
 
Constructor Summary
ForgivingParser(javax.servlet.ServletConfig sc, org.gjt.jsp.JspServlet jsp)
           
 
Method Summary
(package private) static void ()
           
 org.gjt.jsp.JspNode parse(org.gjt.jsp.StackedReader arg0)
           
(package private)  void parseCloseTag(org.gjt.jsp.StackedReader arg0, org.gjt.jsp.JspNode arg1)
           
(package private)  void parseDeclaration(org.gjt.jsp.StackedReader arg0, org.gjt.jsp.JspNode arg1, boolean arg2)
           
(package private)  void parseDirective(org.gjt.jsp.StackedReader r, org.gjt.jsp.JspNode body, boolean isXMLStyle)
           
(package private)  org.gjt.jsp.JspNode parseExpression(org.gjt.jsp.StackedReader arg0, org.gjt.jsp.JspNode arg1, boolean arg2)
           
 void parseJsp(org.gjt.jsp.StackedReader arg0, org.gjt.jsp.JspNode arg1)
           
(package private)  org.gjt.jsp.JspNode parseScriptlet(org.gjt.jsp.StackedReader arg0, char arg1, org.gjt.jsp.JspNode arg2, boolean arg3)
           
(package private)  org.gjt.jsp.JspNode parseTag(org.gjt.jsp.StackedReader arg0, org.gjt.jsp.JspNode arg1)
           
 void parseXML(org.gjt.jsp.StackedReader arg0, org.gjt.jsp.JspNode arg1)
           
(package private)  boolean readNameAndValues(org.gjt.jsp.StackedReader arg0, java.util.Hashtable arg1, boolean arg2)
           
(package private)  char readToken(org.gjt.jsp.StackedReader arg0, java.lang.StringBuffer arg1, boolean arg2)
           
(package private)  java.lang.String readToMatch(org.gjt.jsp.StackedReader arg0, java.lang.String arg1)
           
(package private)  void setIgnoreIncludes(boolean ignoreIncludes)
           
 void setPageBase(java.lang.String arg0)
           
 void setPathHints(boolean arg0)
           
 void setXMLParserClassName(java.lang.String arg0)
           
(package private) static java.lang.String unescape(java.lang.String arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoreIncludes

private boolean ignoreIncludes
Constructor Detail

ForgivingParser

ForgivingParser(javax.servlet.ServletConfig sc,
                org.gjt.jsp.JspServlet jsp)
Method Detail

parseDirective

void parseDirective(org.gjt.jsp.StackedReader r,
                    org.gjt.jsp.JspNode body,
                    boolean isXMLStyle)
              throws java.io.IOException
Throws:
java.io.IOException

setIgnoreIncludes

void setIgnoreIncludes(boolean ignoreIncludes)

setPageBase

public void setPageBase(java.lang.String arg0)

setPathHints

public void setPathHints(boolean arg0)

setXMLParserClassName

public void setXMLParserClassName(java.lang.String arg0)

parse

public org.gjt.jsp.JspNode parse(org.gjt.jsp.StackedReader arg0)
                          throws org.gjt.jsp.ParseException,
                                 java.io.IOException
Throws:
org.gjt.jsp.ParseException
java.io.IOException

parseXML

public void parseXML(org.gjt.jsp.StackedReader arg0,
                     org.gjt.jsp.JspNode arg1)
              throws java.io.IOException
Throws:
java.io.IOException

parseJsp

public void parseJsp(org.gjt.jsp.StackedReader arg0,
                     org.gjt.jsp.JspNode arg1)
              throws java.io.IOException
Throws:
java.io.IOException

readToken

char readToken(org.gjt.jsp.StackedReader arg0,
               java.lang.StringBuffer arg1,
               boolean arg2)
         throws java.io.IOException
Throws:
java.io.IOException

readNameAndValues

boolean readNameAndValues(org.gjt.jsp.StackedReader arg0,
                          java.util.Hashtable arg1,
                          boolean arg2)
                    throws java.io.IOException
Throws:
java.io.IOException

parseDeclaration

void parseDeclaration(org.gjt.jsp.StackedReader arg0,
                      org.gjt.jsp.JspNode arg1,
                      boolean arg2)
                throws java.io.IOException
Throws:
java.io.IOException

parseExpression

org.gjt.jsp.JspNode parseExpression(org.gjt.jsp.StackedReader arg0,
                                    org.gjt.jsp.JspNode arg1,
                                    boolean arg2)
                              throws java.io.IOException
Throws:
java.io.IOException

parseScriptlet

org.gjt.jsp.JspNode parseScriptlet(org.gjt.jsp.StackedReader arg0,
                                   char arg1,
                                   org.gjt.jsp.JspNode arg2,
                                   boolean arg3)
                             throws java.io.IOException
Throws:
java.io.IOException

unescape

static java.lang.String unescape(java.lang.String arg0)

readToMatch

java.lang.String readToMatch(org.gjt.jsp.StackedReader arg0,
                             java.lang.String arg1)
                       throws java.io.IOException
Throws:
java.io.IOException

parseCloseTag

void parseCloseTag(org.gjt.jsp.StackedReader arg0,
                   org.gjt.jsp.JspNode arg1)
             throws java.io.IOException
Throws:
java.io.IOException

parseTag

org.gjt.jsp.JspNode parseTag(org.gjt.jsp.StackedReader arg0,
                             org.gjt.jsp.JspNode arg1)
                       throws java.io.IOException
Throws:
java.io.IOException

static void ()