RE: global.asa -> Web.xml

2003-12-18 Thread GuptaD
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

Re: global.asa -> Web.xml

2003-12-15 Thread SAT
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

Re: global.asa -> Web.xml

2003-12-15 Thread Ben Souther
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

Re: global.asa -> Web.xml

2003-12-15 Thread neal cabage
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

Re: global.asa -> Web.xml

2003-12-15 Thread Ben Souther
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

RE: global.asa -> Web.xml

2003-12-15 Thread Shapira, Yoav
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

RE: global.asa -> Web.xml

2003-12-15 Thread neal cabage
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

RE: global.asa -> Web.xml

2003-12-15 Thread Shapira, Yoav
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