t: 15 December 2003 23:31
To: Tomcat Users List
Subject: Re: global.asa -> Web.xml
In your web.xml file:
city_name
NY
In your JSP
City: <%= application.getInitParameter("session-expired-page")%>
On Monday 15 December 2003 02:40 pm, you wrote:
> I'm
hi
why do not u try this statment inyour jsp?
getServletContext().getInitParameter("");
this statement will just retrieve the value of the parameter name u set in
the web.xml.
good luck
sat
- Original Message -
From: "neal cabage" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTE
No problem.
BTW: If you're not using an IDE for development, you might want to bookmark
the j2ee API Docs.
http://java.sun.com/j2ee/1.4/docs/api/
On Monday 15 December 2003 07:39 pm, you wrote:
> Ah, thanks Ben. Yes, I tried what I wrote prior and also tried
> application.getAttribute ... bu
Ah, thanks Ben. Yes, I tried what I wrote prior and also tried
application.getAttribute ... but didn't realize there was a getInitParameter() method.
That did the trick.
Thanks.
N
Ben Souther <[EMAIL PROTECTED]> wrote:
In your web.xml file:
city_name
NY
In your JSP
City:
On
In your web.xml file:
city_name
NY
In your JSP
City: <%= application.getInitParameter("session-expired-page")%>
On Monday 15 December 2003 02:40 pm, you wrote:
> I'm trying to do something as simple as define global constants for my JSP
> application. In ASP there is a Glo
Howdy,
>Oops, you're right that line would not have compiled...I meant I use
this:
>
>DataSource ds = (DataSource) new
>InitialContext().lookup(application.getInitParameter("db.jndi.dsn"));
What is the type of the application object?
>
>...to get a datasource values and assumed the similar lin
Oops, you're right that line would not have compiled...I meant I use this:
DataSource ds = (DataSource) new
InitialContext().lookup(application.getInitParameter("db.jndi.dsn"));
...to get a datasource values and assumed the similar line would work for retrieving a
String:
String str = (Str
Howdy,
>I'm trying to do something as simple as define global constants for my
JSP
>application. In ASP there is a Global.asa file and the closest thing in
JSP
>is of course the web.xml file. I defined a value in my web.xml file
and
>assumed I could retrieve it using the following line:
>
>Strin