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

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/jsp/jsp2/el/basic-arithmetic.jsp
Status
scanned
Type
file
Name
basic-arithmetic.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
2474 (2.4 KB)
MD5
a761d05bb75ae5b9229006813147328a
SHA1
5912314d8bdce6c09649231a79668e37d1ae0d67
SHA256
d7590d7984036810440b6e238e8d4ce3e2211ad464b886e4093e37a6d09e5e2c
SHA512

      
    
SHA1_git
a3b3e7afb1acc9a21829d4f707169440e57d7bb2
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
basic-arithmetic.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. --%> <html> <head> <title>JSP 2.0 Expression Language - Basic Arithmetic</title> </head> <body> <h1>JSP 2.0 Expression Language - Basic Arithmetic</h1> <hr> This example illustrates basic Expression Language arithmetic. Addition (+), subtraction (-), multiplication (*), division (/ or div), and modulus (% or mod) are all supported. Error conditions, like division by zero, are handled gracefully. <br> <blockquote> <code> <table border="1"> <thead> <td><b>EL Expression</b></td> <td><b>Result</b></td> </thead> <tr> <td>\${1}</td> <td>${1}</td> </tr> <tr> <td>\${1 + 2}</td> <td>${1 + 2}</td> </tr> <tr> <td>\${1.2 + 2.3}</td> <td>${1.2 + 2.3}</td> </tr> <tr> <td>\${1.2E4 + 1.4}</td> <td>${1.2E4 + 1.4}</td> </tr> <tr> <td>\${-4 - 2}</td> <td>${-4 - 2}</td> </tr> <tr> <td>\${21 * 2}</td> <td>${21 * 2}</td> </tr> <tr> <td>\${3/4}</td> <td>${3/4}</td> </tr> <tr> <td>\${3 div 4}</td> <td>${3 div 4}</td> </tr> <tr> <td>\${3/0}</td> <td>${3/0}</td> </tr> <tr> <td>\${10%4}</td> <td>${10%4}</td> </tr> <tr> <td>\${10 mod 4}</td> <td>${10 mod 4}</td> </tr> <tr> <td>\${(1==2) ? 3 : 4}</td> <td>${(1==2) ? 3 : 4}</td> </tr> </table> </code> </blockquote> </body> </html>
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
49.38
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