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

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/jsp/jsp2/el/functions.jsp
Status
scanned
Type
file
Name
functions.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
2506 (2.4 KB)
MD5
66e0ec1586d69d291199f207dcbaa2e8
SHA1
4225ab492d62e51981b957e5f6e7d80840de338a
SHA256
382b32f060dce9bc6f9175f43bac8389c03aff3a073ded9b0b4ad179f33b2210
SHA512

      
    
SHA1_git
d47e2e93cb0695e745f368ba569cb028f8b342a4
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
functions.jsp | 2.4 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" %> <%@ taglib prefix="my" uri="http://tomcat.apache.org/jsp2-example-taglib"%> <html> <head> <title>JSP 2.0 Expression Language - Functions</title> </head> <body> <h1>JSP 2.0 Expression Language - Functions</h1> <hr> An upgrade from the JSTL expression language, the JSP 2.0 EL also allows for simple function invocation. Functions are defined by tag libraries and are implemented by a Java programmer as static methods. <blockquote> <u><b>Change Parameter</b></u> <form action="functions.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>\${my:reverse(param["foo"])}</td> <td>${my:reverse(fn:escapeXml(param["foo"]))}&nbsp;</td> </tr> <tr> <td>\${my:reverse(my:reverse(param["foo"]))}</td> <td>${my:reverse(my:reverse(fn:escapeXml(param["foo"])))}&nbsp;</td> </tr> <tr> <td>\${my:countVowels(param["foo"])}</td> <td>${my:countVowels(fn:escapeXml(param["foo"]))}&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
42.5
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
http://tomcat.apache.org/jsp2-example-taglib 19 19