MCPcopy Index your code
hub / github.com/apache/tomcat / setIsErrorPage

Method setIsErrorPage

java/org/apache/jasper/compiler/PageInfo.java:782–793  ·  view source on GitHub ↗

Sets the isErrorPage attribute. @param value The isErrorPage value @param n The node @param err The error dispatcher @throws JasperException if the value is invalid

(String value, Node n, ErrorDispatcher err)

Source from the content-addressed store, hash-verified

780 * @throws JasperException if the value is invalid
781 */
782 public void setIsErrorPage(String value, Node n, ErrorDispatcher err) throws JasperException {
783
784 if ("true".equalsIgnoreCase(value)) {
785 isErrorPage = true;
786 } else if ("false".equalsIgnoreCase(value)) {
787 isErrorPage = false;
788 } else {
789 err.jspError(n, "jsp.error.page.invalid.iserrorpage");
790 }
791
792 isErrorPageValue = value;
793 }
794
795 /**
796 * Returns the isErrorPage attribute value.

Callers 1

visitMethod · 0.80

Calls 2

jspErrorMethod · 0.65
equalsIgnoreCaseMethod · 0.45

Tested by

no test coverage detected