You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sebastian Hagenbrock <se...@eventim.de> on 2001/12/03 15:36:02 UTC
How to create global variables wich could be accessed by all jsp sites and servlet's?
Hi,
I've found nothing about how to save Variables wich are stored globally in
reference to one context.
Normally I handle the variables in session objects for each user. But I've
some preferences wich should be read only once at the start of the tomcat
server and then always only read by the classes/jsp sites.
I need it, because the initialisation of these variables consumes much time,
and i have running it now for each new created session object. But it is
only needed once at the servers startup.
How to do that?
Thx
SH
PS: Sorry for my bad english.
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
RE: How to create global variables wich could be accessed by all jsp sites and servlet's?
Posted by Ikke List <li...@ikke.net>.
You may want to use a properties file or much more 'mordern' nowadays,
create XML file which hold the values.
The Properties class is easier to work with directly I think.
Wouter
-----Original Message-----
From: Sebastian Hagenbrock [mailto:sebastian.hagenbrock@eventim.de]
Sent: Monday, 03 December, 2001 15:36
To: Tomcat Maillist
Subject: How to create global variables wich could be accessed by all
jsp sites and servlet's?
Hi,
I've found nothing about how to save Variables wich are stored globally in
reference to one context.
Normally I handle the variables in session objects for each user. But I've
some preferences wich should be read only once at the start of the tomcat
server and then always only read by the classes/jsp sites.
I need it, because the initialisation of these variables consumes much time,
and i have running it now for each new created session object. But it is
only needed once at the servers startup.
How to do that?
Thx
SH
PS: Sorry for my bad english.
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>