Servlet Init method

Senthil_Theerthagiri <[email protected]> Thu, 1 Sep 2005 11:55:57 +0530
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C5AEBE.03CC4BB2
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

=20

                I am a beginner in servlet programming. . I have a
question in that. Can anybody clear it for me? =20

=20

                Why do we have init() method instead of constructor.
Bcaz servlet is also a java class file, so why don't we use constructor
instead of init().=20

=20

Regards
SenthilKumar Theerthagiri
Satyam Computers Chennai.
Ph: 24353221 - Ext: 3709

=20

-- You  can do everything, if it's important enough to you to do.

=20



DISCLAIMER:
This email (including any attachments) is intended for the sole use of =
the intended recipient/s and may contain material that is CONFIDENTIAL =
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
copying or distribution or forwarding of any or all of the contents in =
this message is STRICTLY PROHIBITED. If you are not the intended =
recipient, please contact the sender by email and delete all copies; =
your cooperation in this regard is appreciated.

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


------_=_NextPart_001_01C5AEBE.03CC4BB2
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Palatino Linotype";
        panose-1:2 4 5 2 5 5 5 3 3 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Palatino Linotype";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3D"Palatino Linotype"><span
style=3D'font-size:10.0pt;font-family:"Palatino =
Linotype"'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Palatino Linotype"><span
style=3D'font-size:10.0pt;font-family:"Palatino =
Linotype"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Palatino Linotype"><span
style=3D'font-size:10.0pt;font-family:"Palatino =
Linotype"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; I
am a beginner in servlet programming. . I have a question in that. Can =
anybody
clear it for me? &nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Palatino Linotype"><span
style=3D'font-size:10.0pt;font-family:"Palatino =
Linotype"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Palatino Linotype"><span
style=3D'font-size:10.0pt;font-family:"Palatino =
Linotype"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; Why
do we have init() method instead of constructor. Bcaz servlet is also a =
java
class file, so why don&#8217;t we use constructor instead of init(). =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Palatino Linotype"><span
style=3D'font-size:10.0pt;font-family:"Palatino =
Linotype"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D"Palatino Linotype"><span
style=3D'font-size:10.0pt;font-family:"Palatino Linotype"'>Regards<br>
SenthilKumar Theerthagiri<br>
Satyam Computers Chennai.<br>
Ph: 24353221 - Ext: 3709</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center'><strong><b><font
size=3D1 face=3D"Palatino Linotype"><span =
style=3D'font-size:7.5pt;font-family:"Palatino Linotype"'>--
You&nbsp;&nbsp;can do everything, if it's important enough to you to =
do.</span></font></b></strong><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<p></p><p>DISCLAIMER:<br>This email (including any attachments) is =
intended for the sole use of the intended recipient/s and may contain =
material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any =
review or reliance by others or copying or distribution or forwarding of =
any or all of the contents in this message is STRICTLY PROHIBITED. If =
you are not the intended recipient, please contact the sender by email =
and delete all copies; your cooperation in this regard is =
appreciated..</body>

</html>
___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".
<p>
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
<p>

------_=_NextPart_001_01C5AEBE.03CC4BB2--