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!

How to get init parameter in a java file

843838Dec 20 2006 — edited Dec 21 2006
Hai

I hava an init parameter described in my deployment discriptor. i using this init paramater in the servlet. the same init object i want to use in a javabean which is used by a jsp.

And also i want to load this servlet loaded when my application is loaded in to the container.
i was trying this using <load-on-startup>1</load-on-startup> tag in web.xml

i have mentioned the value as 1 because that is the first servlet discribed in my <servlet> tag in the web.xml

is this process right, what exactly does the value in <load-on-startup> do.

Please help me soon
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 18 2007
Added on Dec 20 2006
6 comments
129 views