File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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.
It is sorta covered in the
JavaRanch Style Guide
HFS compression example query ?
Why such web.xml and servlet invalid?
regarding error message in web app deployment
Servlet not getting invoked
Complete web.xml file in XML format
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014