A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Nov 20, 2003
Nov 27, 2003 06:06:00
is it possible to declare a constant variable in web.xml so i can use it again and again.
if it is , can u tell how ,
if u can't impress people with ur intelligence , confuse them with ur bullshit
Joined: Jun 29, 2003
Nov 27, 2003 06:59:00
You can set variables in the appliation context by doing the following:
<context-param> <param-name>FLOOR_MILEAGE</param-name> <param-value>10</param-value> </context-param>
and in your application you can do the following:
FLOOR_MILEAGE = Integer.parseInt(context.getInitParameter("FLOOR_MILEAGE"));
The secret to creativity is knowing how to hide your sources.
I agree. Here's the link:
Complete web.xml file in XML format
regarding error message in web app deployment
HFS compression example query ?
Servlet not getting invoked
Why such web.xml and servlet invalid?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013