wood burning stoves 2.0*
The moose likes Servlets and the fly likes we can use constructor to initialize the parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "we can use constructor to initialize the parameters " Watch "we can use constructor to initialize the parameters " New topic
Author

we can use constructor to initialize the parameters

swatione chowdary
Greenhorn

Joined: Apr 07, 2005
Posts: 27
we can use constructor to initialize the parameters in a servlet with out using the init() method, what problem we get if we do like that.

can any one please reply me.

thank u , swati.
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
Just updated ServletsFaq


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Excellent.
Thank you, Vishnu.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Consider Paul's rocket mass heater.
 
subject: we can use constructor to initialize the parameters
 
Similar Threads
regarding constructor
use of init() in servlet life cycle
When to use Static initial block?
can there be sevlet constructor with parameters
final static variable