A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
How many different ways to create Servlets ?
Joined: Feb 25, 2007
Feb 25, 2007 09:56:00
We can create
a) Servlets by extending two classes and over write methods
b) retrive the existing Servlets from the pool
Is there any other way to create Servlets ?
Author and ninkuma
Joined: Jan 10, 2002
Feb 25, 2007 10:05:00
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the
JavaRanch Naming Policy
adjust your display name
to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Asking smart questions
Books by Bear
Joined: Mar 22, 2005
Feb 25, 2007 10:07:00
I'm not sure that I understand your question. You create a
by declaring it in the web.xml file. The class needs to implement the Servlet interface.
As to a), in Java a class can not extend two classes - only a single one. Or did you mean youj can either extend
As to b), what pool are you talking about?
[ February 25, 2007: Message edited by: Ulf Dittmer ]
Ping & DNS, my free Android app for network diagnostics
I agree. Here's the link:
subject: How many different ways to create Servlets ?
Deploying a servlet
J2EE Environment Variables
Is it allowed to create threads inside servlets?
Passing the session variable from one HTML to JSP through Servlets?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014