File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
difference between env-entry and context init parameter
Joined: May 06, 2005
Mar 27, 2006 00:57:00
I want to know the difference between env-entry tag and context init parameter tag
mentioned in the web.xml.As both the tags are used to pass the variables to the
Joined: Nov 24, 2005
Mar 27, 2006 01:13:00
The env-entry element is used to get some resource via JNDI.
From the spec:
The name is a JNDI name relative to the
The name must be unique within a web application.
On the other hand, the value you define in context init can be used directly to retrieve a defined value.
All roads lead to JavaRanch
I agree. Here's the link:
subject: difference between env-entry and context init parameter
context init parameters
Question on ServletContext
Accessing parameter from web.xml inside a MessageResource class
tomcat JNDI bug????
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015