Adrian, Is working with webapp init-params a working solution to your problem? These are easily queried from JSTL... In the case of your application name this sound sufficient.
Martin > -----Original Message----- > From: Kris Schneider [mailto:[EMAIL PROTECTED] > Sent: woensdag 18 februari 2004 13:59 > To: Tag Libraries Users List; [EMAIL PROTECTED] > Subject: Re: Standard: Retrieving values defined in a > <env-entry> tag in a web.xml file? > > > There's really no direct way to get at environment entries > with JSTL. I'm not sure if the JNDI taglib would be of any > help, but you could always create your own helper bean: > > <jsp:useBean id="jndiBean" class="com.dotech.JndiLookupBean"/> > <jsp:setProperty name="jndiBean" > property="lookupName" > value="java:comp/env/applicationName"/> > <jsp:getProperty name="appName" property="lookupResult"/> > > Quoting Adrian Beech <[EMAIL PROTECTED]>: > > > G'day all, > > > > Can someone please tell me how to retrieve the value which as been > > defined using a <env-entry> tag in the web.xml file? > > > > For example, the snipet below is what has been defined in > the web.xml > > file: > > > > <env-entry> > > <env-entry-name>applicationName</env-entry-name> > > <env-entry-value>RASCAL - Development</env-entry-value> > > <env-entry-type>java.lang.String</env-entry-type> > > </env-entry> > > <env-entry> > > > > The aim is to have something like <c:out value="..."/> > where the value > > is equated to the defined env entry in the web xml file. > > > > Thanks if you can help. > > AB > > -- > Kris Schneider <mailto:[EMAIL PROTECTED]> > D.O.Tech <http://www.dotech.com/> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]