Uses of Class
org.apache.jasper.JasperException
Packages that use JasperException
Package
Description
-
Uses of JasperException in org.apache.jasper
Fields in org.apache.jasper with type parameters of type JasperExceptionMethods in org.apache.jasper that return types with arguments of type JasperExceptionModifier and TypeMethodDescriptionJspC.getJSPCompilationErrors()
Gets the list of JSP compilation errors caught during the most recent invocation of this instance'sexecute
method when failOnError has been set to FALSE.Methods in org.apache.jasper that throw JasperExceptionModifier and TypeMethodDescriptionprivate static final String
JspCompilationContext.canonicalURI
(String s) void
JspCompilationContext.compile()
JspCompilationContext.createCompiler
(boolean jspcMode) Create a "Compiler" object.JspCompilationContext.createParser()
Create a compiler object for parsing only.void
JspC.execute()
JspCompilationContext.getResourceAsStream
(String res) Gets a resource as a stream, relative to the meanings of this context's implementation.JspCompilationContext.getResourcePaths
(String path) String[]
JspCompilationContext.getTldLocation
(String uri) Gets the 'location' of the TLD associated with the given taglib 'uri'.JspCompilationContext.load()
private void
JspC.processFile
(String file) void
Locate all jsp files in the webapp.void
Constructors in org.apache.jasper that throw JasperExceptionModifierConstructorDescriptionJspCompilationContext
(String jspUri, boolean isErrPage, Options options, javax.servlet.ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt) JspCompilationContext
(String tagfile, javax.servlet.jsp.tagext.TagInfo tagInfo, Options options, javax.servlet.ServletContext context, JspServletWrapper jsw, JspRuntimeContext rctxt, URL tagFileJarUrl) -
Uses of JasperException in org.apache.jasper.compiler
Methods in org.apache.jasper.compiler with parameters of type JasperExceptionModifier and TypeMethodDescriptionvoid
ErrorDispatcher.throwException
(Mark where, JasperException je) Creates and throws a new exception from the given JasperException, by prepending the given location information (containing file name, line number, and column number) to the message of the given exception, and copying the stacktrace of the given exception to the new exception.Methods in org.apache.jasper.compiler that throw JasperExceptionModifier and TypeMethodDescriptionabstract void
ELNode.accept
(ELNode.Visitor v) void
ELNode.ELText.accept
(ELNode.Visitor v) void
ELNode.Function.accept
(ELNode.Visitor v) void
ELNode.Root.accept
(ELNode.Visitor v) void
ELNode.Text.accept
(ELNode.Visitor v) (package private) abstract void
Node.accept
(Node.Visitor v) Selects and invokes a method in the visitor class based on the node type.void
Node.AttributeDirective.accept
(Node.Visitor v) void
Node.AttributeGenerator.accept
(Node.Visitor v) void
Node.Comment.accept
(Node.Visitor v) void
Node.CustomTag.accept
(Node.Visitor v) void
Node.Declaration.accept
(Node.Visitor v) void
Node.DoBodyAction.accept
(Node.Visitor v) void
Node.ELExpression.accept
(Node.Visitor v) void
Node.Expression.accept
(Node.Visitor v) void
Node.FallBackAction.accept
(Node.Visitor v) void
Node.ForwardAction.accept
(Node.Visitor v) void
Node.GetProperty.accept
(Node.Visitor v) void
Node.IncludeAction.accept
(Node.Visitor v) void
Node.IncludeDirective.accept
(Node.Visitor v) void
Node.InvokeAction.accept
(Node.Visitor v) void
Node.JspBody.accept
(Node.Visitor v) void
Node.JspElement.accept
(Node.Visitor v) void
Node.JspOutput.accept
(Node.Visitor v) void
Node.JspRoot.accept
(Node.Visitor v) void
Node.JspText.accept
(Node.Visitor v) void
Node.NamedAttribute.accept
(Node.Visitor v) void
Node.PageDirective.accept
(Node.Visitor v) void
Node.ParamAction.accept
(Node.Visitor v) void
Node.ParamsAction.accept
(Node.Visitor v) void
Node.PlugIn.accept
(Node.Visitor v) void
Node.Root.accept
(Node.Visitor v) void
Node.Scriptlet.accept
(Node.Visitor v) void
Node.SetProperty.accept
(Node.Visitor v) void
Node.TagDirective.accept
(Node.Visitor v) void
Node.TaglibDirective.accept
(Node.Visitor v) void
Node.TemplateText.accept
(Node.Visitor v) void
Node.UninterpretedTag.accept
(Node.Visitor v) void
Node.UseBean.accept
(Node.Visitor v) void
Node.VariableDirective.accept
(Node.Visitor v) void
BeanRepository.addBean
(Node.UseBean n, String s, String type, String scope) private void
Parser.addInclude
(Node parent, List files) Add a list of files.private void
PageDataImpl.FirstPassVisitor.addRootAttributes
(Attributes attrs) private void
JspDocumentParser.addTaglibInfo
(String prefix, String uri) private void
private void
private void
PageDataImpl.SecondPassVisitor.appendTagDirective
(Node.TagDirective n) void
TagPluginManager.apply
(Node.Nodes page, ErrorDispatcher err, PageInfo pageInfo) static void
JspUtil.checkAttributes
(String typeOfTag, Node n, JspUtil.ValidAttribute[] validAttributes, ErrorDispatcher err) Checks if all mandatory attributes are present and if all attributes present have valid names.private String
TagFileProcessor.TagFileDirectiveVisitor.checkConflict
(Node n, String oldAttrValue, String attr) private void
Validator.ValidateVisitor.checkNamedAttributes
(Node.CustomTag n, Node.JspAttribute[] jspAttrs, int start, Hashtable<String, Object> tagDataAttrs) static void
JspUtil.checkScope
(String scope, Node n, ErrorDispatcher err) Checks to see if the given scope is valid.private void
Collector.CollectVisitor.checkSeen
(Node.ChildInfo ci, Node n) Check all child nodes for various elements and update the given ChildInfo object accordingly.private void
Validator.ValidateVisitor.checkSetter
(Node.CustomTag n, javax.servlet.jsp.tagext.TagAttributeInfo tldattr) private void
Parser.checkUnbalancedEndTag()
private void
TagFileProcessor.TagFileDirectiveVisitor.checkUniqueName
(String name, TagFileProcessor.TagFileDirectiveVisitor.Name type, Node n) Reports a translation error if names specified in attributes of directives are not unique in this translation unit.private void
TagFileProcessor.TagFileDirectiveVisitor.checkUniqueName
(String name, TagFileProcessor.TagFileDirectiveVisitor.Name type, Node n, javax.servlet.jsp.tagext.TagAttributeInfo attr) private void
Validator.ValidateVisitor.checkXmlAttributes
(Node.CustomTag n, Node.JspAttribute[] jspAttrs, Hashtable<String, Object> tagDataAttrs) static void
Collector.collect
(Compiler compiler, Node.Nodes page) private void
ParserController.comparePageEncodings
(String jspConfigPageEnc) private void
Validator.DirectiveVisitor.comparePageEncodings
(String pageDirEnc, Node.PageDirective pageDir) AntJavaCompiler.compile
(String className, Node.Nodes pageNodes) void
Compiler.compile
(boolean compileClass) Compile the jsp file from the current engine context.JavaCompiler.compile
(String className, Node.Nodes pageNodes) Start Java compilationJDTJavaCompiler.compile
(String targetClassName, Node.Nodes pageNodes) Jsr199JavaCompiler.compile
(String className, Node.Nodes pageNodes) NullJavaCompiler.compile
(String className, Node.Nodes pageNodes) private void
Generator.compileTagHandlerPoolList
(Node.Nodes page) Compiles list of tag handler pool names.static void
TextOptimizer.concatenate
(Compiler compiler, Node.Nodes page) private String
Generator.GenerateVisitor.convertString
(Class<?> c, String s, String attrName, Class<?> propEditorClass, boolean isNamedAttribute) private javax.servlet.jsp.tagext.TagAttributeInfo
TagLibraryInfoImpl.createAttribute
(TreeNode elem, String jspVersion) private javax.servlet.jsp.tagext.FunctionInfo
TagLibraryInfoImpl.createFunctionInfo
(TreeNode elem) private String[]
TagLibraryInfoImpl.createInitParam
(TreeNode elem) static JavacErrorDetail
ErrorDispatcher.createJavacError
(String fname, Node.Nodes page, StringBuilder errMsgBuf, int lineNum) private javax.servlet.jsp.tagext.TagFileInfo
TagLibraryInfoImpl.createTagFileInfo
(TreeNode elem, String uri, URL jarFileUrl) private javax.servlet.jsp.tagext.TagInfo
TagLibraryInfoImpl.createTagInfo
(TreeNode elem, String jspVersion) private javax.servlet.jsp.tagext.TagLibraryValidator
TagLibraryInfoImpl.createValidator
(TreeNode elem) private javax.servlet.jsp.tagext.TagVariableInfo
TagLibraryInfoImpl.createVariable
(TreeNode elem) private void
ParserController.determineSyntaxAndEncoding
(String absFileName, JarFile jarFile, String jspConfigPageEnc) Determines the syntax (standard or XML) and page encoding properties for the given file, and stores them in the 'isXml' and 'sourceEnc' instance variables, respectively.private void
void
JavaCompiler.doJavaFile
(boolean keep) Remove/save the generated Java File from/to diskvoid
Jsr199JavaCompiler.doJavaFile
(boolean keep) private void
ELFunctionMapper.ELFunctionVisitor.doMap
(ELNode.Nodes el) Creates function mappers, if needed, from ELNodesprivate void
ELFunctionMapper.ELFunctionVisitor.doMap
(Node.JspAttribute attr) private Node.Nodes
Parses the JSP page or tag file with the given path name.void
protected void
This method provides a place to put actions that are common to all nodes.void
void
private void
private String
Generator.GenerateVisitor.evaluateAttribute
(Generator.TagHandlerInfo handlerInfo, Node.JspAttribute attr, Node.CustomTag n, String tagHandlerVar) private Node.JspBody
Generator.GenerateVisitor.findJspBody
(Node parent) Finds the invalid input: '<'jsp:body> subelement of the given parent node.JspConfig.findJspProperty
(String uri) Find a property that best matches the supplied resource.static void
Generator.generate
(ServletWriter out, Compiler compiler, Node.Nodes page) The main entry for Generator.private String
Generator.GenerateVisitor.generateAliasMap
(Node.CustomTag n, String tagHandlerVar) Generate code to create a map for the alias variablesprivate void
Compiler.generateClass()
Compile the servlet from .java file to .class fileprivate void
Generator.GenerateVisitor.generateCustomDoTag
(Node.CustomTag n, Generator.TagHandlerInfo handlerInfo, String tagHandlerVar) private void
Generator.GenerateVisitor.generateCustomStart
(Node.CustomTag n, Generator.TagHandlerInfo handlerInfo, String tagHandlerVar, String tagEvalVar, String tagPushBodyCountVar) private void
Generator.generateDeclarations
(Node.Nodes page) Generates declarations.private void
Generator.GenerateVisitor.generateJspFragment
(Node n, String tagHandlerVar) Generates anonymous JspFragment inner class which is passed as an argument to SimpleTag.setJspBody().private static void
Generator.generateLocalVariables
(ServletWriter out, Node n, boolean genBytes) Generator.GenerateVisitor.generateNamedAttributeJspFragment
(Node.NamedAttribute n, String tagHandlerVar) Similar to generateNamedAttributeValue, but create a JspFragment instead.Generator.GenerateVisitor.generateNamedAttributeValue
(Node.NamedAttribute n) Generate the code required to obtain the runtime value of the given named attribute.private void
Generator.generatePreamble
(Node.Nodes page) Generates the beginning of the static portion of the servlet.private void
Generator.GenerateVisitor.generateSetters
(Node.CustomTag n, String tagHandlerVar, Generator.TagHandlerInfo handlerInfo, boolean simpleTag) private void
Generator.generateTagHandlerAttributes
(javax.servlet.jsp.tagext.TagInfo tagInfo) Generates declarations for tag handler attributes, and defines the getter and setter methods for each.private void
Generator.generateTagHandlerPreamble
(JasperTagInfo tagInfo, Node.Nodes tag) private void
Generator.GenerateVisitor.generateTagPlugin
(Node.CustomTag n) private String[]
TagLibraryInfoImpl.generateTLDLocation
(String uri, JspCompilationContext ctxt) private void
Generator.genPreambleClassVariableDeclarations
(String className) Declare tag handler pools (tags of the same type and with the same attribute set share the same tag handler pool) (shared by servlet and tag handler preamble generation)private void
Generator.genPreambleImports()
Generate preamble imports (shared by servlet and tag handler preamble generation)private void
Generator.genPreambleMethods()
Declare general-purpose methods (shared by servlet and tag handler preamble generation)private void
Generator.genPreamblePackage
(String packageName) Generate preamble package name (shared by servlet and tag handler preamble generation)private void
Generator.genPreambleStaticInitializers()
Generation of static initializers in preamble.BeanRepository.getBeanType
(String bean) private javax.el.FunctionMapper
Validator.ValidateVisitor.getFunctionMapper
(ELNode.Nodes el) static InputStream
JspUtil.getInputStream
(String fname, JarFile jarFile, JspCompilationContext ctxt, ErrorDispatcher err) AntJavaCompiler.getJavaWriter
(String javaFileName, String javaEncoding) JavaCompiler.getJavaWriter
(String javaFileName, String javaEncoding) Get a Writer for the Java file.JDTJavaCompiler.getJavaWriter
(String javaFileName, String javaEncoding) NullJavaCompiler.getJavaWriter
(String javaFileName, String javaEncoding) private Node.JspAttribute
Validator.ValidateVisitor.getJspAttribute
(String qName, String uri, String localName, String value, Node n, boolean dynamic, javax.servlet.jsp.tagext.TagAttributeInfo tagAttr) Preprocess attributes that can be expressions.private String
ParserController.getJspConfigPageEncoding
(String absFileName) private String
Get the method name from the signature.private String
ParserController.getPageEncodingForJspSyntax
(JspReader jspReader, Mark startMark) private String[]
Validator.ValidateVisitor.getParameters
(String signature) Get the parameters types from the function signature.(package private) static InputStreamReader
JspUtil.getReader
(String fname, String encoding, JarFile jarFile, JspCompilationContext ctxt, ErrorDispatcher err) private InputStream
TagLibraryInfoImpl.getResourceAsStream
(String uri) private String
Validator.ValidateVisitor.getReturnType
(String signature) Get the return type from the signature.static String
JspUtil.getTagHandlerClassName
(String path, ErrorDispatcher err) Gets the fully-qualified class name of the tag handler corresponding to the given tag file path.private Generator.TagHandlerInfo
Generator.GenerateVisitor.getTagHandlerInfo
(Node.CustomTag n) javax.servlet.jsp.tagext.TagInfo
TagFileProcessor.TagFileDirectiveVisitor.getTagInfo()
(package private) String
private boolean
ParserController.hasJspRoot
(JspReader reader) (package private) boolean
JspReader.hasMoreInput()
private void
JspConfig.init()
private void
TagPluginManager.init
(ErrorDispatcher err) private void
Compiler.initJavaCompiler()
Get an instance of JavaCompiler.private boolean
JspReader.isDelimiter()
Parse utils - Is current character a token delimiter ? Delimiters are currently defined to be =, >, <, ", and ' or any any space character as defined byisSpace
.boolean
To find out if an uri matches an url pattern in jsp config.(package private) final boolean
JspReader.isSpace()
void
DefaultErrorHandler.javacError
(String errorReport, Exception exception) Processes the given javac error report and exception.void
DefaultErrorHandler.javacError
(JavacErrorDetail[] details) void
ErrorDispatcher.javacError
(String errorReport, Exception e) void
ErrorDispatcher.javacError
(JavacErrorDetail[] javacErrors) void
ErrorHandler.javacError
(String errorReport, Exception exception) Processes the given javac error report and exception.void
ErrorHandler.javacError
(JavacErrorDetail[] details) Processes the given javac compilation errors.void
void
void
void
void
void
void
void
void
void
void
void
void
Processes the given JSP parse error.void
Processes the given JSP parse error.private Class
TagFileProcessor.loadTagFile
(Compiler compiler, String tagFilePath, javax.servlet.jsp.tagext.TagInfo tagInfo, PageInfo parentPageInfo) Compiles and loads a tagfile.void
TagFileProcessor.loadTagFiles
(Compiler compiler, Node.Nodes page) Implements a phase of the translation that compiles (if necessary) the tag files used in a JSP files.static void
ELFunctionMapper.map
(Compiler compiler, Node.Nodes page) Creates the functions mappers for all EL expressions in the JSP page.(package private) boolean
search the stream for a match to a string(package private) boolean
JspReader.matchesETag
(String tagName) (package private) boolean
JspReader.matchesETagWithoutLessThan
(String tagName) (package private) boolean
JspReader.matchesIgnoreCase
(String string) (package private) boolean
JspReader.matchesOptionalSpacesFollowedBy
(String s) Looks ahead to see if there are optional spaces followed by the given String.(package private) int
JspReader.nextChar()
Generator.FragmentHelperClass.openFragment
(Node parent, String tagHandlerVar, int methodNesting) static Node.Nodes
JspDocumentParser.parse
(ParserController pc, String path, JarFile jarFile, Node parent, boolean isTagFile, boolean directivesOnly, String pageEnc, String jspConfigPageEnc, boolean isEncodingSpecifiedInProlog) static Node.Nodes
Parser.parse
(ParserController pc, String path, JspReader reader, Node parent, boolean isTagFile, boolean directivesOnly, URL jarFileUrl, String pageEnc, String jspConfigPageEnc, boolean isDefaultPageEncoding, boolean hasBom) The main entry for ParserParses a JSP page or tag file.Processes an include directive with the given path.private boolean
Parser.parseAttribute
(AttributesImpl attrs) Attribute ::= Name S? Eq S? ( '"invalid input: '<'%=' RTAttributeValueDouble | '"' AttributeValueDouble | "'invalid input: '<'%=" RTAttributeValueSingle | "'" AttributeValueSingle } Note: JSP and XML spec does not allow while spaces around Eq.private void
Parser.parseAttributeDirective
(Node parent) (package private) Attributes
Parser.parseAttributes()
Attributes ::= (S Attribute)* S?static Attributes
Parser.parseAttributes
(ParserController pc, JspReader reader) Parse Attributes for a reader, provided for external useprivate String
Parser.parseAttributeValue
(String watch) AttributeValueDouble ::= (QuotedChar - '"')* ('"' |) RTAttributeValueDouble ::= ((QuotedChar - '"')* - ((QuotedChar-'"')'%>"') ('%>"' | TRANSLATION_ERROR) private void
private void
Parser.parseComment
(Node parent) private boolean
Parser.parseCustomTag
(Node parent) private void
Parser.parseDeclaration
(Node parent) private void
Parser.parseDirective
(Node parent) private void
Parser.parseDoBody
(Node parent) private void
Parser.parseElement
(Node parent) private void
Parser.parseElements
(Node parent) private void
Parser.parseElementsScriptless
(Node parent) private void
Parser.parseElementsTemplateText
(Node parent) private void
Parser.parseELExpression
(Node parent, String typeEL) private void
Parser.parseEmptyBody
(Node parent, String tag) private void
Parser.parseExpression
(Node parent) private void
Parser.parseFallBack
(Node parent) private void
Parser.parseForward
(Node parent) private void
Parser.parseGetProperty
(Node parent) private void
ImplicitTagLibraryInfo.parseImplicitTld
(JspCompilationContext ctxt, String path) Parses the JSP version and tlib-version from the implicit.tld at the given path.private void
Parser.parseInclude
(Node parent) private void
Parser.parseIncludeDirective
(Node parent) private void
Parser.parseInvoke
(Node parent) static JavacErrorDetail[]
ErrorDispatcher.parseJavacMessage
(Node.Nodes pageNodes, String errMsg, String fname) private boolean
Parser.parseJspAttributeAndBody
(Node parent, String tag, String bodyType) Attempts to parse 'JspAttributeAndBody' production.private void
Parser.parseJspBody
(Node parent, String bodyType) private void
Parser.parseJspParams
(Node parent) private String
Parser.parseName()
Name ::= (Letter | '_' | ':') (Letter | Digit | '.' | '_' | '-' | ':')*private void
Parser.parseNamedAttributes
(Node parent) private void
Parser.parseOptionalBody
(Node parent, String tag, String bodyType) private void
Parser.parsePageDirective
(Node parent) private void
Parser.parseParam
(Node parent) Param ::= 'invalid input: '<'jsp:param' S Attributes S? EmptyBody S?private void
Parser.parsePlugin
(Node parent) private void
Parser.parsePluginTags
(Node parent) private void
Parser.parseScriptlet
(Node parent) private void
Parser.parseSetProperty
(Node parent) private void
Parser.parseStandardAction
(Node parent) private void
Parser.parseTagDependentBody
(Node parent, String tag) TagDependentBody :=private void
Parser.parseTagDirective
(Node parent) private void
Parser.parseTagFileDirectives
(Node parent) ParserController.parseTagFileDirectives
(String inFileName) Extracts tag file directive information from the tag file with the given name.static javax.servlet.jsp.tagext.TagInfo
TagFileProcessor.parseTagFileDirectives
(ParserController pc, String name, String path, javax.servlet.jsp.tagext.TagLibraryInfo tagLibInfo) Parses the tag file, and collects information on the directives included in it.private void
Parser.parseTaglibDirective
(Node parent) private void
Parser.parseTemplateText
(Node parent) private void
TagLibraryInfoImpl.parseTLD
(JspCompilationContext ctxt, String uri, InputStream in, URL jarFileUrl) (package private) String
JspReader.parseToken
(boolean quoted) Parse a space delimited token.private void
Parser.parseUseBean
(Node parent) private void
Parser.parseVariableDirective
(Node parent) private void
Parser.parseXMLDeclaration
(Node parent) private void
Parser.parseXMLDirective
(Node parent) private void
Parser.parseXMLExpression
(Node parent) private void
Parser.parseXMLScriptlet
(Node parent) private void
Parser.parseXMLTemplateText
(Node parent) (package private) int
JspReader.peekChar()
private boolean
JspReader.popFile()
Pop a file from the file stack.(package private) void
TagFileProcessor.TagFileDirectiveVisitor.postCheck()
Perform miscelleaneous checks after the nodes are visited.private void
Generator.GenerateVisitor.prepareParams
(Node parent) Scans through all child nodes of the given parent for subelements.private void
Generator.GenerateVisitor.printParams
(Node n, String pageParam, boolean literal) Prints the attribute value specified in the param action, in the form of name=value string.private void
Parser.processIncludeDirective
(String file, Node parent) private void
Validator.ValidateVisitor.processSignature
(ELNode.Function func) private void
JspConfig.processWebDotXml
(javax.servlet.ServletContext ctxt) private void
JspReader.pushFile
(String file, String encoding, InputStreamReader reader) Push a file (and its associated Stream) on the file stack.static void
ScriptingVariabler.set
(Node.Nodes page, ErrorDispatcher err) void
PageInfo.setAutoFlush
(String value, Node n, ErrorDispatcher err) void
PageInfo.setBufferValue
(String value, Node n, ErrorDispatcher err) void
PageInfo.setDeferredSyntaxAllowedAsLiteral
(String value, Node n, ErrorDispatcher err, boolean pagedir) void
PageInfo.setIsELIgnored
(String value, Node n, ErrorDispatcher err, boolean pagedir) void
PageInfo.setIsErrorPage
(String value, Node n, ErrorDispatcher err) void
PageInfo.setIsThreadSafe
(String value, Node n, ErrorDispatcher err) void
PageInfo.setLanguage
(String value, Node n, ErrorDispatcher err, boolean pagedir) private void
ScriptingVariabler.ScriptingVariableVisitor.setScriptingVars
(Node.CustomTag n, int scope) void
PageInfo.setSession
(String value, Node n, ErrorDispatcher err) void
PageInfo.setTrimDirectiveWhitespaces
(String value, Node n, ErrorDispatcher err, boolean pagedir) (package private) int
JspReader.skipSpaces()
(package private) Mark
Skip until the given string is matched in the stream.(package private) Mark
JspReader.skipUntilETag
(String tag) Skip until the given end tag is matched in the stream.(package private) Mark
JspReader.skipUntilIgnoreEsc
(String limit) Skip until the given string is matched in the stream, but ignoring chars initially escaped by a '\'.private void
Validator.ValidateVisitor.throwErrorIfExpression
(Node n, String attrName, String actionName) void
ErrorDispatcher.throwException
(Mark where, JasperException je) Creates and throws a new exception from the given JasperException, by prepending the given location information (containing file name, line number, and column number) to the message of the given exception, and copying the stacktrace of the given exception to the new exception.static void
Validator.validate
(Compiler compiler, Node.Nodes page) static void
JspUtil.validateExpressions
(Mark where, String expressions, javax.el.FunctionMapper functionMapper, ErrorDispatcher err) Validates the syntax of all EL expressions within the given string.private void
Validator.ValidateVisitor.validateFunctions
(ELNode.Nodes el, Node n) Validate functions in EL expressionsprivate static void
Validator.validateXmlView
(javax.servlet.jsp.tagext.PageData xmlView, Compiler compiler) Validate XML view against the TagLibraryValidator classes of all imported tag libraries.void
Collector.CollectVisitor.visit
(Node.CustomTag n) void
Collector.CollectVisitor.visit
(Node.Declaration n) void
Collector.CollectVisitor.visit
(Node.Expression n) void
Collector.CollectVisitor.visit
(Node.ForwardAction n) void
Collector.CollectVisitor.visit
(Node.IncludeAction n) void
Collector.CollectVisitor.visit
(Node.JspBody n) void
Collector.CollectVisitor.visit
(Node.JspElement n) void
Collector.CollectVisitor.visit
(Node.NamedAttribute n) void
Collector.CollectVisitor.visit
(Node.ParamAction n) void
Collector.CollectVisitor.visit
(Node.PlugIn n) void
Collector.CollectVisitor.visit
(Node.Scriptlet n) void
Collector.CollectVisitor.visit
(Node.SetProperty n) void
Collector.CollectVisitor.visit
(Node.UseBean n) void
Dumper.DumpVisitor.visit
(Node.Comment n) void
Dumper.DumpVisitor.visit
(Node.CustomTag n) void
Dumper.DumpVisitor.visit
(Node.Declaration n) void
Dumper.DumpVisitor.visit
(Node.ELExpression n) void
Dumper.DumpVisitor.visit
(Node.Expression n) void
Dumper.DumpVisitor.visit
(Node.ForwardAction n) void
Dumper.DumpVisitor.visit
(Node.GetProperty n) void
Dumper.DumpVisitor.visit
(Node.IncludeAction n) void
Dumper.DumpVisitor.visit
(Node.IncludeDirective n) void
Dumper.DumpVisitor.visit
(Node.JspBody n) void
Dumper.DumpVisitor.visit
(Node.NamedAttribute n) void
Dumper.DumpVisitor.visit
(Node.PageDirective n) void
Dumper.DumpVisitor.visit
(Node.ParamAction n) void
Dumper.DumpVisitor.visit
(Node.ParamsAction n) void
Dumper.DumpVisitor.visit
(Node.PlugIn n) void
Dumper.DumpVisitor.visit
(Node.Scriptlet n) void
Dumper.DumpVisitor.visit
(Node.SetProperty n) void
Dumper.DumpVisitor.visit
(Node.TaglibDirective n) void
Dumper.DumpVisitor.visit
(Node.TemplateText n) void
Dumper.DumpVisitor.visit
(Node.UninterpretedTag n) void
Dumper.DumpVisitor.visit
(Node.UseBean n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.CustomTag n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.ELExpression n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.ForwardAction n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.IncludeAction n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.JspElement n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.ParamAction n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.PlugIn n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.SetProperty n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.UninterpretedTag n) void
ELFunctionMapper.ELFunctionVisitor.visit
(Node.UseBean n) void
ELNode.Nodes.visit
(ELNode.Visitor v) Visit the nodes in the list with the supplied visitorvoid
ELNode.Visitor.visit
(ELNode.ELText n) void
ELNode.Visitor.visit
(ELNode.Function n) void
ELNode.Visitor.visit
(ELNode.Root n) void
ELNode.Visitor.visit
(ELNode.Text n) void
Generator.GenerateVisitor.visit
(Node.AttributeGenerator n) void
Generator.GenerateVisitor.visit
(Node.CustomTag n) void
Generator.GenerateVisitor.visit
(Node.DoBodyAction n) void
Generator.GenerateVisitor.visit
(Node.ELExpression n) void
Generator.GenerateVisitor.visit
(Node.Expression n) void
Generator.GenerateVisitor.visit
(Node.ForwardAction n) void
Generator.GenerateVisitor.visit
(Node.GetProperty n) void
Generator.GenerateVisitor.visit
(Node.IncludeAction n) void
Generator.GenerateVisitor.visit
(Node.InvokeAction n) void
Generator.GenerateVisitor.visit
(Node.JspBody n) void
Generator.GenerateVisitor.visit
(Node.JspElement n) void
Generator.GenerateVisitor.visit
(Node.NamedAttribute n) void
Generator.GenerateVisitor.visit
(Node.PlugIn n) void
Generator.GenerateVisitor.visit
(Node.Scriptlet n) void
Generator.GenerateVisitor.visit
(Node.SetProperty n) void
Generator.GenerateVisitor.visit
(Node.TemplateText n) void
Generator.GenerateVisitor.visit
(Node.UninterpretedTag n) void
Generator.GenerateVisitor.visit
(Node.UseBean n) void
Node.Nodes.visit
(Node.Visitor v) Visit the nodes in the list with the supplied visitorvoid
Node.Visitor.visit
(Node.AttributeDirective n) void
Node.Visitor.visit
(Node.AttributeGenerator n) void
Node.Visitor.visit
(Node.Comment n) void
Node.Visitor.visit
(Node.CustomTag n) void
Node.Visitor.visit
(Node.Declaration n) void
Node.Visitor.visit
(Node.DoBodyAction n) void
Node.Visitor.visit
(Node.ELExpression n) void
Node.Visitor.visit
(Node.Expression n) void
Node.Visitor.visit
(Node.FallBackAction n) void
Node.Visitor.visit
(Node.ForwardAction n) void
Node.Visitor.visit
(Node.GetProperty n) void
Node.Visitor.visit
(Node.IncludeAction n) void
Node.Visitor.visit
(Node.IncludeDirective n) void
Node.Visitor.visit
(Node.InvokeAction n) void
Node.Visitor.visit
(Node.JspBody n) void
Node.Visitor.visit
(Node.JspElement n) void
Node.Visitor.visit
(Node.JspOutput n) void
Node.Visitor.visit
(Node.JspRoot n) void
Node.Visitor.visit
(Node.JspText n) void
Node.Visitor.visit
(Node.NamedAttribute n) void
Node.Visitor.visit
(Node.PageDirective n) void
Node.Visitor.visit
(Node.ParamAction n) void
Node.Visitor.visit
(Node.ParamsAction n) void
Node.Visitor.visit
(Node.PlugIn n) void
void
Node.Visitor.visit
(Node.Scriptlet n) void
Node.Visitor.visit
(Node.SetProperty n) void
Node.Visitor.visit
(Node.TagDirective n) void
Node.Visitor.visit
(Node.TaglibDirective n) void
Node.Visitor.visit
(Node.TemplateText n) void
Node.Visitor.visit
(Node.UninterpretedTag n) void
Node.Visitor.visit
(Node.UseBean n) void
Node.Visitor.visit
(Node.VariableDirective n) void
PageDataImpl.FirstPassVisitor.visit
(Node.JspRoot n) void
void
PageDataImpl.FirstPassVisitor.visit
(Node.TaglibDirective n) void
PageDataImpl.SecondPassVisitor.visit
(Node.AttributeDirective n) void
PageDataImpl.SecondPassVisitor.visit
(Node.Comment n) void
PageDataImpl.SecondPassVisitor.visit
(Node.CustomTag n) void
PageDataImpl.SecondPassVisitor.visit
(Node.Declaration n) void
PageDataImpl.SecondPassVisitor.visit
(Node.DoBodyAction n) void
PageDataImpl.SecondPassVisitor.visit
(Node.ELExpression n) void
PageDataImpl.SecondPassVisitor.visit
(Node.Expression n) void
PageDataImpl.SecondPassVisitor.visit
(Node.FallBackAction n) void
PageDataImpl.SecondPassVisitor.visit
(Node.ForwardAction n) void
PageDataImpl.SecondPassVisitor.visit
(Node.GetProperty n) void
PageDataImpl.SecondPassVisitor.visit
(Node.IncludeAction n) void
PageDataImpl.SecondPassVisitor.visit
(Node.IncludeDirective n) void
PageDataImpl.SecondPassVisitor.visit
(Node.InvokeAction n) void
PageDataImpl.SecondPassVisitor.visit
(Node.JspBody n) void
PageDataImpl.SecondPassVisitor.visit
(Node.JspElement n) void
PageDataImpl.SecondPassVisitor.visit
(Node.JspRoot n) void
PageDataImpl.SecondPassVisitor.visit
(Node.JspText n) void
PageDataImpl.SecondPassVisitor.visit
(Node.NamedAttribute n) void
PageDataImpl.SecondPassVisitor.visit
(Node.PageDirective n) void
PageDataImpl.SecondPassVisitor.visit
(Node.ParamAction n) void
PageDataImpl.SecondPassVisitor.visit
(Node.ParamsAction n) void
PageDataImpl.SecondPassVisitor.visit
(Node.PlugIn n) void
void
PageDataImpl.SecondPassVisitor.visit
(Node.Scriptlet n) void
PageDataImpl.SecondPassVisitor.visit
(Node.SetProperty n) void
PageDataImpl.SecondPassVisitor.visit
(Node.TagDirective n) void
PageDataImpl.SecondPassVisitor.visit
(Node.TemplateText n) void
PageDataImpl.SecondPassVisitor.visit
(Node.UninterpretedTag n) void
PageDataImpl.SecondPassVisitor.visit
(Node.UseBean n) void
PageDataImpl.SecondPassVisitor.visit
(Node.VariableDirective n) void
ScriptingVariabler.CustomTagCounter.visit
(Node.CustomTag n) void
ScriptingVariabler.ScriptingVariableVisitor.visit
(Node.CustomTag n) void
SmapUtil.SmapGenVisitor.visit
(Node.CustomTag n) void
SmapUtil.SmapGenVisitor.visit
(Node.Declaration n) void
SmapUtil.SmapGenVisitor.visit
(Node.DoBodyAction n) void
SmapUtil.SmapGenVisitor.visit
(Node.ELExpression n) void
SmapUtil.SmapGenVisitor.visit
(Node.Expression n) void
SmapUtil.SmapGenVisitor.visit
(Node.ForwardAction n) void
SmapUtil.SmapGenVisitor.visit
(Node.GetProperty n) void
SmapUtil.SmapGenVisitor.visit
(Node.IncludeAction n) void
SmapUtil.SmapGenVisitor.visit
(Node.InvokeAction n) void
SmapUtil.SmapGenVisitor.visit
(Node.JspBody n) void
SmapUtil.SmapGenVisitor.visit
(Node.JspElement n) void
SmapUtil.SmapGenVisitor.visit
(Node.JspText n) void
SmapUtil.SmapGenVisitor.visit
(Node.NamedAttribute n) void
SmapUtil.SmapGenVisitor.visit
(Node.PlugIn n) void
SmapUtil.SmapGenVisitor.visit
(Node.Scriptlet n) void
SmapUtil.SmapGenVisitor.visit
(Node.SetProperty n) void
SmapUtil.SmapGenVisitor.visit
(Node.TemplateText n) void
SmapUtil.SmapGenVisitor.visit
(Node.UninterpretedTag n) void
SmapUtil.SmapGenVisitor.visit
(Node.UseBean n) void
TagFileProcessor.TagFileDirectiveVisitor.visit
(Node.AttributeDirective n) void
TagFileProcessor.TagFileDirectiveVisitor.visit
(Node.JspRoot n) void
TagFileProcessor.TagFileDirectiveVisitor.visit
(Node.TagDirective n) void
TagFileProcessor.TagFileDirectiveVisitor.visit
(Node.VariableDirective n) void
TagFileProcessor.TagFileLoaderVisitor.visit
(Node.CustomTag n) void
TextOptimizer.TextCatVisitor.visit
(Node.AttributeDirective n) void
TextOptimizer.TextCatVisitor.visit
(Node.PageDirective n) void
TextOptimizer.TextCatVisitor.visit
(Node.TagDirective n) void
TextOptimizer.TextCatVisitor.visit
(Node.TaglibDirective n) void
TextOptimizer.TextCatVisitor.visit
(Node.TemplateText n) void
TextOptimizer.TextCatVisitor.visit
(Node.VariableDirective n) void
Validator.DirectiveVisitor.visit
(Node.AttributeDirective n) void
Validator.DirectiveVisitor.visit
(Node.IncludeDirective n) void
Validator.DirectiveVisitor.visit
(Node.PageDirective n) void
Validator.DirectiveVisitor.visit
(Node.TagDirective n) void
Validator.DirectiveVisitor.visit
(Node.VariableDirective n) void
Validator.TagExtraInfoVisitor.visit
(Node.CustomTag n) void
Validator.ValidateVisitor.visit
(Node.CustomTag n) void
Validator.ValidateVisitor.visit
(Node.Declaration n) void
Validator.ValidateVisitor.visit
(Node.DoBodyAction n) void
Validator.ValidateVisitor.visit
(Node.ELExpression n) void
Validator.ValidateVisitor.visit
(Node.Expression n) void
Validator.ValidateVisitor.visit
(Node.ForwardAction n) void
Validator.ValidateVisitor.visit
(Node.GetProperty n) void
Validator.ValidateVisitor.visit
(Node.IncludeAction n) void
Validator.ValidateVisitor.visit
(Node.IncludeDirective n) void
Validator.ValidateVisitor.visit
(Node.InvokeAction n) void
Validator.ValidateVisitor.visit
(Node.JspBody n) void
Validator.ValidateVisitor.visit
(Node.JspElement n) void
Validator.ValidateVisitor.visit
(Node.JspOutput n) void
Validator.ValidateVisitor.visit
(Node.JspRoot n) void
Validator.ValidateVisitor.visit
(Node.NamedAttribute n) void
Validator.ValidateVisitor.visit
(Node.ParamAction n) void
Validator.ValidateVisitor.visit
(Node.ParamsAction n) void
Validator.ValidateVisitor.visit
(Node.PlugIn n) void
Validator.ValidateVisitor.visit
(Node.Scriptlet n) void
Validator.ValidateVisitor.visit
(Node.SetProperty n) void
Validator.ValidateVisitor.visit
(Node.TaglibDirective n) void
Validator.ValidateVisitor.visit
(Node.UninterpretedTag n) void
Validator.ValidateVisitor.visit
(Node.UseBean n) protected void
Visit the body of a node, using the current visitorvoid
void
Constructors in org.apache.jasper.compiler that throw JasperExceptionModifierConstructorDescriptionCompiler
(JspCompilationContext ctxt, JspServletWrapper jsw, boolean jspcMode) (package private)
DirectiveVisitor
(Compiler compiler) ImplicitTagLibraryInfo
(JspCompilationContext ctxt, ParserController pc, String prefix, String tagdir, ErrorDispatcher err) Constructor.JspReader
(JspCompilationContext ctxt, String fname, String encoding, InputStreamReader reader, ErrorDispatcher err) JspReader
(JspCompilationContext ctxt, String fname, String encoding, JarFile jarFile, ErrorDispatcher err) PageDataImpl
(Node.Nodes page, Compiler compiler) Constructor.(package private)
TagHandlerInfo
(Node n, Class tagHandlerClass, ErrorDispatcher err) Constructor.TagLibraryInfoImpl
(JspCompilationContext ctxt, ParserController pc, String prefix, String uriIn, String[] location, ErrorDispatcher err) Constructor which builds a TagLibraryInfoImpl by parsing a TLD. -
Uses of JasperException in org.apache.jasper.runtime
Methods in org.apache.jasper.runtime that throw JasperExceptionModifier and TypeMethodDescriptionstatic Object
static void
JspRuntimeLibrary.createTypedArray
(String propertyName, Object bean, Method method, String[] values, Class t, Class propertyEditorClass) Create a typed array.String[]
TldScanner.getLocation
(String uri) Gets the 'location' of the TLD associated with the given taglib 'uri'.static Method
JspRuntimeLibrary.getReadMethod
(Class beanClass, String prop) static Object
JspRuntimeLibrary.getValueFromBeanInfoPropertyEditor
(Class attrClass, String attrName, String attrValue, Class propertyEditorClass) static Object
JspRuntimeLibrary.getValueFromPropertyEditorManager
(Class attrClass, String attrName, String attrValue) static Method
JspRuntimeLibrary.getWriteMethod
(Class beanClass, String prop) static Object
JspRuntimeLibrary.handleGetProperty
(Object o, String prop) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, boolean value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, byte value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, char value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, double value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, float value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, int value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, long value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, short value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, Object value) static void
JspRuntimeLibrary.handleSetPropertyExpression
(Object bean, String prop, String expression, javax.servlet.jsp.PageContext pageContext, ProtectedFunctionMapper functionMapper) Use proprietaryEvaluate public static void handleSetPropertyExpression(Object bean, String prop, String expression, PageContext pageContext, VariableResolver variableResolver, FunctionMapper functionMapper ) throws JasperException { try { Method method = getWriteMethod(bean.getClass(), prop); method.invoke(bean, new Object[] { pageContext.getExpressionEvaluator().evaluate( expression, method.getParameterTypes()[0], variableResolver, functionMapper, null ) }); } catch (Exception ex) { throw new JasperException(ex); } }static void
JspRuntimeLibrary.introspect
(Object bean, javax.servlet.ServletRequest request) static void
JspRuntimeLibrary.introspecthelper
(Object bean, String prop, String value, javax.servlet.ServletRequest request, String param, boolean ignoreMethodNF) private void
TldScanner.processTldsInFileSystem
(String startPath) private void
TldScanner.scanJar
(JarURLConnection conn, List<String> tldNames, boolean isLocal) Scans the given JarURLConnection for TLD files located in META-INF (or a subdirectory of it).private TldScanner.TldInfo
TldScanner.scanTld
(String resourcePath, String entryName, InputStream stream) Scan the given TLD for uri and listeners elements.private void
TldScanner.scanTlds()
Scan the all the tlds accessible in the web app. -
Uses of JasperException in org.apache.jasper.servlet
Fields in org.apache.jasper.servlet declared as JasperExceptionMethods in org.apache.jasper.servlet with parameters of type JasperExceptionModifier and TypeMethodDescriptionvoid
JspServletWrapper.setCompilationException
(JasperException je) Sets the compilation exception for this JspServletWrapper.Methods in org.apache.jasper.servlet that throw JasperExceptionModifier and TypeMethodDescriptionJspServletWrapper.loadTagFile()
Compile (if needed) and load a tag fileJspServletWrapper.loadTagFilePrototype()
Compile and load a prototype for the Tag file.Constructors in org.apache.jasper.servlet that throw JasperExceptionModifierConstructorDescription(package private)
JspServletWrapper
(javax.servlet.ServletConfig config, Options options, String jspUri, boolean isErrorPage, JspRuntimeContext rctxt) JspServletWrapper
(javax.servlet.ServletContext servletContext, Options options, String tagFilePath, javax.servlet.jsp.tagext.TagInfo tagInfo, JspRuntimeContext rctxt, URL tagFileJarUrl) -
Uses of JasperException in org.apache.jasper.xmlparser
Methods in org.apache.jasper.xmlparser that throw JasperExceptionModifier and TypeMethodDescriptionprivate void
XMLEncodingDetector.createInitialReader()
private Reader
XMLEncodingDetector.createReader
(InputStream inputStream, String encoding, Boolean isBigEndian) Creates a reader capable of reading the given input stream in the specified encoding.private Object[]
XMLEncodingDetector.getEncoding
(InputStream in, ErrorDispatcher err) static Object[]
XMLEncodingDetector.getEncoding
(String fname, JarFile jarFile, JspCompilationContext ctxt, ErrorDispatcher err) Autodetects the encoding of the XML document supplied by the given input stream.private static Schema
ParserUtils.parseXMLDocument
(String uri, InputStream is) Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.ParserUtils.parseXMLDocument
(String uri, InputStream is, boolean validate) Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.ParserUtils.parseXMLDocument
(String uri, InputSource is) Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.ParserUtils.parseXMLDocument
(String uri, InputSource is, boolean validate) Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.private void
XMLEncodingDetector.reportFatalError
(String msgId, String arg) Convenience function used in all XML scanners.private void
XMLEncodingDetector.scanPIData
(String target, XMLString data) Scans a processing data.XMLEncodingDetector.scanPseudoAttribute
(boolean scanningTextDecl, XMLString value) Scans a pseudo attribute.private boolean
XMLEncodingDetector.scanSurrogates
(XMLStringBuffer buf) Scans surrogates and append them to the specified buffer.private void
XMLEncodingDetector.scanXMLDecl()
private void
XMLEncodingDetector.scanXMLDeclOrTextDecl
(boolean scanningTextDecl) Scans an XML or text declaration.private void
XMLEncodingDetector.scanXMLDeclOrTextDecl
(boolean scanningTextDecl, String[] pseudoAttributeValues) Scans an XML or text declaration.