Two Laptop Bag*
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 Spring in Action this week in the Spring 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
Author

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

mocca az
Ranch Hand

Joined: Mar 07, 2001
Posts: 93
Greetings,
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>
<servlet-name>ServletName</servlet-name>
<servlet-class>full classpath</servlet-class>

<init-param>
<param-name>file</param-name>
<param-value>employee.jds</param-value>
</init-param>
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12805
    
    5
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.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Everything i need to know about "init-param"?