Passing values from a Startup servlet to another servlet
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prak_Babu
Posted On:   Monday, June 24, 2002 01:33 PM

Hi All,


I am using Tomcat3.3a for my application and when i start the server i am starting a servlet along with that.


I am not able to send the values from this servlet to another servlet


How can i send the values from a startup servlet to another servlet?


Could anyone help me please



Thanks&Regards


Prak Babu

Re: Passing values from a Startup servlet to another servlet

Posted By:   Ed_Hoden  
Posted On:   Tuesday, June 25, 2002 05:47 AM

You can also have the startup servlet store the appropriate values as context attributes so that other servlets can reference them from there. -HTH Ed

Re: Passing values from a Startup servlet to another servlet

Posted By:   Steven_Martin  
Posted On:   Monday, June 24, 2002 02:22 PM

Pass parameters as normal:

/myservlet?hello=1&helloagain=2



If you are worried about getting appliction properties, I would construct a application property object that is a singleton for each servlet to reference.
About | Sitemap | Contact