File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Everything i need to know about Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Everything i need to know about "init-param"?" Watch "Everything i need to know about "init-param"?" New topic

Everything i need to know about "init-param"?

mocca az
Ranch Hand

Joined: Mar 07, 2001
Posts: 93
Can someone, in plain english, explain to me everythin one would need to know about <init-param>. How to use it, why advantages, disadvantages etc.
Thank you
<servlet-class>full classpath</servlet-class>

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
init params are the preferred way of communicating setup information to a servlet. They are more flexible than hard coding things like file locations into your servlet code. Thats about all there is to say about that.
I agree. Here's the link:
subject: Everything i need to know about "init-param"?
It's not a secret anymore!