Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

multiple servlets and same init parameter

843841Dec 24 2004 — edited Dec 25 2004
Hi all,
More than one of my servlets use the same init parameters. Currently, I am repeating the same parameter entries to all relevant <servlet> elements in web.xml. This is the surest way that the parameters will be available to each servlet. What I am looking for is a way, if any, of writing the parameters only once in web.xml and make them available to specified servlets. Is this possible?
I am just trying to make web.xml a bit neater.

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 22 2005
Added on Dec 24 2004
4 comments
242 views