ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/webapp/el-optional.jsp

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/webapp/el-optional.jsp
Status
scanned
Type
file
Name
el-optional.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
2541 (2.5 KB)
MD5
253ed6934b91ab9cd8dca2243a065906
SHA1
43b159029fe0e1f097337069424d4a69086a645d
SHA256
a02ba9cc3259c9fd8068869bc7b52e63776756997352d0a3bae8a5d4a8b674a8
SHA512

      
    
SHA1_git
f41ff0b90896d34312cd98a92a7be331b8da99ae
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
el-optional.jsp | 2.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. --%> <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %> <%@ page import="jakarta.el.TesterBeanA" %> <%@ page import="jakarta.el.TesterBeanB" %> <html> <head><title>EL method test cases</title></head> <body> <% TesterBeanA beanA1 = new TesterBeanA(); TesterBeanA beanA2 = new TesterBeanA(); TesterBeanB beanB = new TesterBeanB("test"); beanA2.setBeanB(beanB); pageContext.setAttribute("testBeanA1", beanA1, PageContext.REQUEST_SCOPE); pageContext.setAttribute("testBeanA2", beanA2, PageContext.REQUEST_SCOPE); %> <tags:echo echo="00-${testBeanA1.beanBOpt}" /> <tags:echo echo="01-${testBeanA1.beanBOpt.name}" /> <tags:echo echo="02-${testBeanA1.beanBOpt.map(b -> b.name)}" /> <tags:echo echo="03-${testBeanA1.beanBOpt.doSomething()}" /> <tags:echo echo="10-${testBeanA2.beanBOpt}" /> <tags:echo echo="11-${testBeanA2.beanBOpt.name}" /> <%-- Triggers MethodNotFoundException <tags:echo echo="12-${testBeanA2.beanBOpt.map(b -> b.name)}" /> --%> <tags:echo echo="13-${testBeanA2.beanBOpt.doSomething()}" /> <tags:echo-deferred echo="20-#{testBeanA1.beanBOpt}" /> <tags:echo-deferred echo="21-#{testBeanA1.beanBOpt.name}" /> <tags:echo-deferred echo="22-#{testBeanA1.beanBOpt.map(b -> b.name)}" /> <tags:echo-deferred echo="23-#{testBeanA1.beanBOpt.doSomething()}" /> <tags:echo-deferred echo="30-#{testBeanA2.beanBOpt}" /> <tags:echo-deferred echo="31-#{testBeanA2.beanBOpt.name}" /> <%-- Triggers MethodNotFoundException <tags:echo-deferred echo="32-#{testBeanA2.beanBOpt.map(b -> b.name)}" /> --%> <tags:echo-deferred echo="33-#{testBeanA2.beanBOpt.doSomething()}" /> </body> </html>
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
43.12
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