A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
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.
Don't get me started about those stupid
HFS compression example query ?
regarding error message in web app deployment
Complete web.xml file in XML format
Why such web.xml and servlet invalid?
Servlet not getting invoked
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014