Re: Servlet Init method

Chris Pratt <[email protected]> Thu, 1 Sep 2005 09:53:47 -0700
Newsgroups gmane.comp.java.sun.servlet
Message-ID <[email protected]>
------=_Part_10447_25202289.1125593627242
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

The API isn't based around GenericServlet, it's based around Servlet.
(*Chris*)

On 9/1/05, Nic Ferrier <[email protected]> wrote:
>=20
> Chris Pratt <[email protected]> writes:
>=20
> > Actually, what I remember from the early days of Servlets, it is becaus=
e=20
> the
> > Servlet API is interface based, and you can't specify constructors in a=
=20
> Java
> > interface. The developers decided to use a method that they can specify=
=20
> in
> > the interface contract.
> > (*Chris*)
>=20
> Well, it's academic... but remember that GenericServlet is a class,
> not an interface so we could have used that.
>=20
> Applet's are also classes and they have a similar init method.
>=20
> The real reason, as I said, is lifecycle management.
>=20
>=20
>=20
> Nic
>=20
>=20
> _________________________________________________________________________=
__
> To unsubscribe, send email to [email protected] and include in the=20
> body
> of the message "signoff SERVLET-INTEREST".
>=20
> 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
>

___________________________________________________________________________
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


------=_Part_10447_25202289.1125593627242
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

The API isn't based around GenericServlet, it's based around Servlet.<br>
&nbsp; (*Chris*)<br><br><div><span class=3D"gmail_quote">On 9/1/05, <b clas=
s=3D"gmail_sendername">Nic Ferrier</b> &lt;<a href=3D"mailto:nferrier@tapse=
llferrier.co.uk">[email protected]</a>&gt; wrote:</span><blockq=
uote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 20=
4); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Chris Pratt &lt;<a href=3D"mailto:[email protected]">thechrispratt@GM=
AIL.COM</a>&gt; writes:<br><br>&gt; Actually, what I remember from the earl=
y days of Servlets, it is because the<br>&gt; Servlet API is interface base=
d, and you can't specify constructors in a Java
<br>&gt; interface. The developers decided to use a method that they can sp=
ecify in<br>&gt; the interface contract.<br>&gt; (*Chris*)<br><br>Well, it'=
s academic... but remember that GenericServlet is a class,<br>not an interf=
ace so we could have used that.
<br><br>Applet's are also classes and they have a similar init method.<br><=
br>The real reason, as I said, is lifecycle management.<br><br><br><br>Nic<=
br><br>____________________________________________________________________=
_______
<br>To unsubscribe, send email to <a href=3D"mailto:[email protected]">=
[email protected]</a> and include in the body<br>of the message &quot;s=
ignoff SERVLET-INTEREST&quot;.<br><br>Archives: <a href=3D"http://archives.=
java.sun.com/archives/servlet-interest.html">
http://archives.java.sun.com/archives/servlet-interest.html</a><br>Resource=
s: <a href=3D"http://java.sun.com/products/servlet/external-resources.html"=
>http://java.sun.com/products/servlet/external-resources.html</a><br>LISTSE=
RV Help:=20
<a href=3D"http://www.lsoft.com/manuals/user/user.html">http://www.lsoft.co=
m/manuals/user/user.html</a><br></blockquote></div><br>
___________________________________________________________________________
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>

------=_Part_10447_25202289.1125593627242--