>> mall wrote:
>> Can anybody tell me if it is possible for the container(tomcat) to
>> load an object and to make
>> that object available to all the pages/servlets contained within the
>> container? I've
>> asked this question before but i don't think i made my question clear
>> enough the last time.
You can put it as an attribute in the javax.servlet.ServletContext object,
which is available to the servlets and JSP pages in the application, or
you can use a singleton pattern if appropriate:
public class Foo {
static Foo instance = new Foo();
public Foo () { }
public static Foo getFoo() {
return instance;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]