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!

accessing parameters from request header in init()

843840Apr 27 2002 — edited Apr 28 2002
Hello

How can I access parameters passed on the client request header like

http://localhost:8080/servlet/DBServlet?database=mydatabase

from the servlet initialization method ini()

The getInitParameter() only returns parameters defined in the web.xml file (if is this correct).
I would like to use the getParameter() from the request class, how can I do this within init()

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 26 2002
Added on Apr 27 2002
1 comment
58 views