Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Servlet question. 1

Status
Not open for further replies.

GT500FOMOCO

Programmer
Jul 5, 2001
143
US
Which class does a servlet usually inherit from? X-) :cool: "and everything under the sun is in tune
but the sun is eclipsed by the moon." --Pink Floyd: Eclipse


"I'm going to spend eternity
reinstalling Windows." --Reinstalling Windows: by some British guy
 
Sorry, I replied to your other post also.

To service HTTP Requests a Servlet usually (99.99% of the time) extends
Code:
javax.servlet.http.httpServlet
. In theory Servlets can be used for other purposes besides Web Interfaces (I don't know of anybody doing this though), in these cases a Servlet would extend from
Code:
javax.servlet.GenericServlet
or implement
Code:
javax.servlet.Servlet
.
 
Thanks again! "and everything under the sun is in tune
but the sun is eclipsed by the moon." --Pink Floyd: Eclipse


"I'm going to spend eternity
reinstalling Windows." --Reinstalling Windows: by some British guy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top