coreservlets
Class ShowMessage
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--coreservlets.ShowMessage
- public class ShowMessage
- extends HttpServlet
Example using servlet initialization. Here, the message
to print and the number of times the message should be
repeated is taken from the init parameters.
Taken from Core Servlets and JavaServer Pages
from Prentice Hall and Sun Microsystems Press,
http://www.coreservlets.com/.
© 2000 Marty Hall; may be freely used or adapted.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ShowMessage
public ShowMessage()
init
public void init(ServletConfig config)
throws ServletException
- Overrides:
- init in class GenericServlet
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
- doGet in class HttpServlet
 |
|---|
| CSAJSP @ amazon.com |
|---|