Hi,
I am aware of the fact that the implicit objects, viz. application, session, request, response, etc. are not available until the service() (or jsp_service() method) is called.
In that case, how do I go about initializing/configuring a
servlet with some object instances for the other servlets in the web application to use.My requirement is to have start-up servlet which is configured with a name/value pair for an object of class
Information.This class would contain the name of the webmaster, his address and other details.
I guess, the only way to do it is using the ServletConfig class.But does it allow us to store customized objects instances of class like
Information?I would not like to store it as
web_master_name=sandeep,address=some_address, etc., as there are many such name/value pairs
I could have used the setAttribute("Information", i) with any of the implicit objects in the jspinit() (or init()) method, had any of these objects been available.
Please advise a workaround for this.
Thanks in advance.
Regards
Sandeep Desai vgdesai@bom3.vsnl.net.in
- Sun Certified Java Programmer Scored 93 per cent
- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
- IBM Enterprise Connectivity with J2EE Scored 72 per cent
- Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
[This message has been edited by Desai Sandeep (edited April 26, 2001).]