Charukeshi Pathak

Greenhorn
+ Follow
since Apr 14, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Charukeshi Pathak

Hi,

I think adeel is perfectly correct. init() method can be well understood by following example :

If we want to make a database connection for getting data. We would ideally want it to happen only once when first time the servlet is loaded and not that everytime we call the servlet the database connection happens. If we do the same in constructor, the connection will be made each time the servlet is instantiated.

Now i think you can reason with yourself that why not constructor and why to user init().

enjoy java......
16 years ago
Hi Suki,

Please state the step by step directory structure so that we can cross check whether you are missing a step.
16 years ago
Hi,
please specify from where are the values coming ? are they static values or are they fetched from database initiatlly.Also specify if coming from database what are the fields that are fetched.
Regards,
Charukeshi.