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

Method setSession

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

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

(String value, Node n, ErrorDispatcher err)

Source from the content-addressed store, hash-verified

662 * @throws JasperException if the session value is invalid
663 */
664 public void setSession(String value, Node n, ErrorDispatcher err) throws JasperException {
665
666 if ("true".equalsIgnoreCase(value)) {
667 isSession = true;
668 } else if ("false".equalsIgnoreCase(value)) {
669 isSession = false;
670 } else {
671 err.jspError(n, "jsp.error.page.invalid.session");
672 }
673
674 session = value;
675 }
676
677 /**
678 * Returns the session attribute value.

Callers 1

visitMethod · 0.45

Calls 2

jspErrorMethod · 0.65
equalsIgnoreCaseMethod · 0.45

Tested by

no test coverage detected