jsp
<% Context ctx = new InitialContext(); String jndiName = (String) ctx.lookup("java:comp/env/jndiName"); out.print(jndiName); %>
context.xml
<Environment name="jndiName" value="jndiValue" type="java.lang.String" />
2023-07-26 09:18:22
jsp
<% Context ctx = new InitialContext(); String jndiName = (String) ctx.lookup("java:comp/env/jndiName"); out.print(jndiName); %>
context.xml
<Environment name="jndiName" value="jndiValue" type="java.lang.String" />