aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: we can use constructor to initialize the parameters
 
Similar Threads
regarding constructor
When to use Static initial block?
can there be sevlet constructor with parameters
final static variable
use of init() in servlet life cycle