You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rajnish Bhaskar <r....@compserv.gla.ac.uk> on 2001/12/12 10:42:26 UTC
Getting a ServletContext in a JavaBean
Hi folks,
Is it possible to get a ServletContext object in a JavaBean? I want
to be able to read a context parameter when a bean is initialised and
use that to load a properties file.
Passing it in later with a setServletContext() method is no good
since I need to access it in the constructor of the bean.
TIA,
Raj.
--
Rajnish Bhaskar
r.bhaskar@compserv.gla.ac.uk, http://lordofthemoon.com
IT Education Unit, University of Glasgow
http://www.iteu.gla.ac.uk/
--
Sometimes it's better to light a flamethrower than curse the
darkness.
-- (Terry Pratchett, Men At Arms)
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>