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

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/jsp/jsp2/el/composite.jsp
Status
scanned
Type
file
Name
composite.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
4140 (4.0 KB)
MD5
9c5d13062cdce8616cf29333a37570e5
SHA1
ae9d6f2749a401fc5865b7df5d5aa390eb1b5b4d
SHA256
0a374e38ddc704f435b384e16b84579751fa97fdb6e90fd0292ea79e5ee6161c
SHA512

      
    
SHA1_git
c6fa113fef66c42f3af54de83b50987e528059e9
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
composite.jsp | 4.0 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="my" uri="http://tomcat.apache.org/example-taglib" %> <html> <head> <title>JSP 2.0 Expression Language - Composite Expressions</title> </head> <body> <h1>JSP 2.0 Expression Language - Composite Expressions</h1> <hr> This example illustrates EL composite expressions. Composite expressions are formed by grouping together multiple EL expressions. Each of them is evaluated from left to right, coerced to String, all those strings are concatenated, and the result is coerced to the expected type. <jsp:useBean id="values" class="jsp2.examples.ValuesBean" /> <blockquote> <code> <table border="1"> <thead> <td><b>EL Expression</b></td> <td><b>Type</b></td> <td><b>Result</b></td> </thead> <tr> <td>\${'hello'} wo\${'rld'}</td> <td>String</td> <td><jsp:setProperty name="values" property="stringValue" value="${'hello'} wo${'rld'}"/>${values.stringValue}</td> </tr> <tr> <td>\${'hello'} wo\${'rld'}</td> <td>String</td> <td><my:values string="${'hello'} wo${'rld'}"/></td> </tr> <tr> <td>\${1+2}.\${220}</td> <td>Double</td> <td><jsp:setProperty name="values" property="doubleValue" value="${1+2}.${220}"/>${values.doubleValue}</td> </tr> <tr> <td>\${1+2}.\${220}</td> <td>Double</td> <td><my:values double="${1+2}.${220}"/></td> </tr> <tr> <td>000\${1}\${7}</td> <td>Long</td> <td><jsp:setProperty name="values" property="longValue" value="000${1}${7}"/>${values.longValue}</td> </tr> <tr> <td>000\${1}\${7}</td> <td>Long</td> <td><my:values long="000${1}${7}"/></td> </tr> <!-- Undefined values are to be coerced to String, to be "", https://bz.apache.org/bugzilla/show_bug.cgi?id=47413 --> <tr> <td>\${undefinedFoo}hello world\${undefinedBar}</td> <td>String</td> <td><jsp:setProperty name="values" property="stringValue" value="${undefinedFoo}hello world${undefinedBar}"/>${values.stringValue}</td> </tr> <tr> <td>\${undefinedFoo}hello world\${undefinedBar}</td> <td>String</td> <td><my:values string="${undefinedFoo}hello world${undefinedBar}"/></td> </tr> <tr> <td>\${undefinedFoo}\${undefinedBar}</td> <td>Double</td> <td><jsp:setProperty name="values" property="doubleValue" value="${undefinedFoo}${undefinedBar}"/>${values.doubleValue}</td> </tr> <tr> <td>\${undefinedFoo}\${undefinedBar}</td> <td>Double</td> <td><my:values double="${undefinedFoo}${undefinedBar}"/></td> </tr> <tr> <td>\${undefinedFoo}\${undefinedBar}</td> <td>Long</td> <td><jsp:setProperty name="values" property="longValue" value="${undefinedFoo}${undefinedBar}"/>${values.longValue}</td> </tr> <tr> <td>\${undefinedFoo}\${undefinedBar}</td> <td>Long</td> <td><my:values long="${undefinedFoo}${undefinedBar}"/></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.07
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://tomcat.apache.org/example-taglib 17 17
https://bz.apache.org/bugzilla/show_bug.cgi?id=47413 73 73