ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/webapp-fragments/jndi.jsp

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/test/webapp-fragments/jndi.jsp
Status
scanned
Type
file
Name
jndi.jsp
Extension
.jsp
Programming language
Java Server Page
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
1366 (1.3 KB)
MD5
c9a3c0eb5bffd8bd35aea4eb818943f6
SHA1
b2d88c5ff3ccd5602ac5fab2bcc09a880d268162
SHA256
0b4ad0a8fff434578f3a2b4efa7e03b4978a29c8bb54eb43b73d2b32de616d52
SHA512

      
    
SHA1_git
933e6ffb4ac617951e1e6e695d53fcc600695f4c
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
jndi.jsp | 1.3 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/plain" pageEncoding="UTF-8"%><% String jndiName = request.getParameter("jndiName"); javax.naming.Context initCtx = new javax.naming.InitialContext(); javax.naming.Context envCtx = (javax.naming.Context) initCtx.lookup("java:comp/env"); try { Object obj = envCtx.lookup(jndiName); out.println(obj.toString()); } catch (javax.naming.NameNotFoundException e) { out.println("Not Found"); } catch (javax.naming.NamingException e) { out.println("Naming Error"); } %>
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
66.48
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