ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/jsp/jsp2/el/implicit-objects.jsp

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/jsp/jsp2/el/implicit-objects.jsp
Status
scanned
Type
file
Name
implicit-objects.jsp
Extension
.jsp
Programming language
Java Server Page
Mime type
text/html
File type
HTML document, ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
3592 (3.5 KB)
MD5
a19bbf6bc0eb50332b5f15fabc2b8841
SHA1
6a7d671ab8108bb38cdcc55dba5b7f366f30f6d6
SHA256
afd38213dee7820b5737e01cb5572ef6b2df0894472018022a09573c293103f1
SHA512

      
    
SHA1_git
a832930a697133e49a7d6313d3930f4a4ee9c196
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
implicit-objects.jsp | 3.5 KB |

<%-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --%> <%@page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <html> <head> <title>JSP 2.0 Expression Language - Implicit Objects</title> </head> <body> <h1>JSP 2.0 Expression Language - Implicit Objects</h1> <hr> This example illustrates some of the implicit objects available in the Expression Language. The following implicit objects are available (not all illustrated here): <ul> <li>pageContext - the PageContext object</li> <li>pageScope - a Map that maps page-scoped attribute names to their values</li> <li>requestScope - a Map that maps request-scoped attribute names to their values</li> <li>sessionScope - a Map that maps session-scoped attribute names to their values</li> <li>applicationScope - a Map that maps application-scoped attribute names to their values</li> <li>param - a Map that maps parameter names to a single String parameter value</li> <li>paramValues - a Map that maps parameter names to a String[] of all values for that parameter</li> <li>header - a Map that maps header names to a single String header value</li> <li>headerValues - a Map that maps header names to a String[] of all values for that header</li> <li>initParam - a Map that maps context initialization parameter names to their String parameter value</li> <li>cookie - a Map that maps cookie names to a single Cookie object.</li> </ul> <blockquote> <u><b>Change Parameter</b></u> <form action="implicit-objects.jsp" method="GET"> foo = <input type="text" name="foo" value="${fn:escapeXml(param["foo"])}"> <input type="submit"> </form> <br> <code> <table border="1"> <thead> <td><b>EL Expression</b></td> <td><b>Result</b></td> </thead> <tr> <td>\${param.foo}</td> <td>${fn:escapeXml(param["foo"])}&nbsp;</td> </tr> <tr> <td>\${param["foo"]}</td> <td>${fn:escapeXml(param["foo"])}&nbsp;</td> </tr> <tr> <td>\${header["host"]}</td> <td>${fn:escapeXml(header["host"])}&nbsp;</td> </tr> <tr> <td>\${header["accept"]}</td> <td>${fn:escapeXml(header["accept"])}&nbsp;</td> </tr> <tr> <td>\${header["user-agent"]}</td> <td>${fn:escapeXml(header["user-agent"])}&nbsp;</td> </tr> </table> </code> </blockquote> </body> </html>
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
31.73
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9
http://java.sun.com/jsp/jstl/functions 18 18