How to use a JNDI Ressource

2003-03-14 Thread Georges Roux
Hi, I run tomcat 4.1.18 Standalone on Linux. How can I use my named values from my context environment in a jsp? I have this in my server.xml : Context... ... Environment name=simpleValue override=false type=java.lang.String value=hello world./ ... /Context Georges

Re: How to use a JNDI Ressource

2003-03-14 Thread Alexander Wallace
Something like: try { Context ctx = new InitialContext(); String whatever = (String)ctx.lookup(java:comp/env/whatever); } catch (Exception e) { } On Friday 14 March 2003 14:32, Georges Roux wrote: Hi, I run tomcat 4.1.18 Standalone on Linux. How