com.caucho.jsp
Class JspParser

java.lang.Object
  extended by com.caucho.jsp.JspParser

public class JspParser
extends java.lang.Object

Parses the JSP page. Both the XML and JSP tags are understood. However, escaping is always done using JSP rules.


Field Summary
static QName JSP_DECLARATION
           
static QName JSP_DIRECTIVE_ATTRIBUTE
           
static QName JSP_DIRECTIVE_CACHE
           
static QName JSP_DIRECTIVE_INCLUDE
           
static QName JSP_DIRECTIVE_PAGE
           
static QName JSP_DIRECTIVE_TAG
           
static QName JSP_DIRECTIVE_TAGLIB
           
static QName JSP_DIRECTIVE_VARIABLE
           
static QName JSP_EXPRESSION
           
static java.lang.String JSP_NS
           
static QName JSP_SCRIPTLET
           
static QName JSTL_CORE_CHOOSE
           
static QName JSTL_CORE_FOREACH
           
static QName JSTL_CORE_OTHERWISE
           
static QName JSTL_CORE_OUT
           
static java.lang.String JSTL_CORE_URI
           
static QName JSTL_CORE_WHEN
           
static java.lang.String JSTL_FMT_URI
           
static QName PREFIX
           
static QName TAGDIR
           
static QName TAGLIB
           
static QName URI
           
 
Constructor Summary
JspParser()
           
 
Method Summary
 void addCoda(java.lang.String coda)
          Adds a coda.
 void addPrelude(java.lang.String prelude)
          Adds a prelude.
 JspParseException error(java.lang.Exception e)
          Creates an error message adding the filename and line.
 JspParseException error(java.lang.String message)
          Creates an error message adding the filename and line.
 JspParseException error(java.lang.String message, java.lang.Throwable e)
          Creates an error message adding the filename and line.
 void pushInclude(java.lang.String value)
           
 void pushInclude(java.lang.String value, boolean allowDuplicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSP_NS

public static final java.lang.String JSP_NS
See Also:
Constant Field Values

JSTL_CORE_URI

public static final java.lang.String JSTL_CORE_URI
See Also:
Constant Field Values

JSTL_FMT_URI

public static final java.lang.String JSTL_FMT_URI
See Also:
Constant Field Values

PREFIX

public static final QName PREFIX

TAGLIB

public static final QName TAGLIB

TAGDIR

public static final QName TAGDIR

URI

public static final QName URI

JSP_DECLARATION

public static final QName JSP_DECLARATION

JSP_SCRIPTLET

public static final QName JSP_SCRIPTLET

JSP_EXPRESSION

public static final QName JSP_EXPRESSION

JSP_DIRECTIVE_PAGE

public static final QName JSP_DIRECTIVE_PAGE

JSP_DIRECTIVE_INCLUDE

public static final QName JSP_DIRECTIVE_INCLUDE

JSP_DIRECTIVE_CACHE

public static final QName JSP_DIRECTIVE_CACHE

JSP_DIRECTIVE_TAGLIB

public static final QName JSP_DIRECTIVE_TAGLIB

JSP_DIRECTIVE_ATTRIBUTE

public static final QName JSP_DIRECTIVE_ATTRIBUTE

JSP_DIRECTIVE_VARIABLE

public static final QName JSP_DIRECTIVE_VARIABLE

JSP_DIRECTIVE_TAG

public static final QName JSP_DIRECTIVE_TAG

JSTL_CORE_OUT

public static final QName JSTL_CORE_OUT

JSTL_CORE_CHOOSE

public static final QName JSTL_CORE_CHOOSE

JSTL_CORE_WHEN

public static final QName JSTL_CORE_WHEN

JSTL_CORE_OTHERWISE

public static final QName JSTL_CORE_OTHERWISE

JSTL_CORE_FOREACH

public static final QName JSTL_CORE_FOREACH
Constructor Detail

JspParser

public JspParser()
Method Detail

addPrelude

public void addPrelude(java.lang.String prelude)
Adds a prelude.


addCoda

public void addCoda(java.lang.String coda)
Adds a coda.


pushInclude

public void pushInclude(java.lang.String value)
                 throws java.io.IOException,
                        JspParseException
Throws:
java.io.IOException
JspParseException

pushInclude

public void pushInclude(java.lang.String value,
                        boolean allowDuplicate)
                 throws java.io.IOException,
                        JspParseException
Throws:
java.io.IOException
JspParseException

error

public JspParseException error(java.lang.Exception e)
Creates an error message adding the filename and line.

Parameters:
e - the exception

error

public JspParseException error(java.lang.String message)
Creates an error message adding the filename and line.

Parameters:
message - the error message

error

public JspParseException error(java.lang.String message,
                               java.lang.Throwable e)
Creates an error message adding the filename and line.

Parameters:
message - the error message