• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Env-Entry tag

 
Paul McKenna
Ugly Redneck
Ranch Hand
Posts: 1006
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does one extract the <env-entry> tag placed in the web.xml file? I am using JRUN and if I try the following to extract it I get an error
InitialContext ctx = new InitiaContext();
System.out.println(ctx.lookup("sampleEntry"));
Where sampleEntry is specified in my web.xml with a value.
Thanks
SR
 
Andrew Perepelytsya
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try the following syntax for your entry:
java:comp:/env/myEntry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic