ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/jsp/checkbox/checkresult.jsp

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/webapps/examples/jsp/checkbox/checkresult.jsp
Status
scanned
Type
file
Name
checkresult.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
1718 (1.7 KB)
MD5
699660f9e85ac10d42911fb8a9bf6bfe
SHA1
4d7165f276714861564f729273da4433c0b34546
SHA256
083c3719b790ff3713828982212a2dde2f07cb911dc0347ae50c5a0e22c220b5
SHA512

      
    
SHA1_git
97c2e21332143b53399eea28049b55ffb265378d
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
checkresult.jsp | 1.7 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> <body bgcolor="white"> <font size=5 color="red"> <%! String[] fruits; %> <jsp:useBean id="foo" scope="page" class="checkbox.CheckTest" /> <jsp:setProperty name="foo" property="fruit" param="fruit" /> <hr> The checked fruits (got using request) are: <br> <% fruits = request.getParameterValues("fruit"); %> <ul> <% if (fruits != null) { for (String fruit : fruits) { %> <li> <% out.println (util.HTMLFilter.filter(fruit)); } } else out.println ("none selected"); %> </ul> <br> <hr> The checked fruits (got using beans) are <br> <% fruits = foo.getFruit(); %> <ul> <% if (!fruits[0].equals("1")) { for (String fruit : fruits) { %> <li> <% out.println (util.HTMLFilter.filter(fruit)); } } else { out.println ("none selected"); } %> </ul> </font> </body> </html>
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
57.77
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