All Examples  This Package

Class examples.servlets.MailServlet

java.lang.Object
   |
   +----javax.servlet.GenericServlet
           |
           +----javax.servlet.http.HttpServlet
                   |
                   +----examples.servlets.MailServlet

public class MailServlet
extends HttpServlet
This simple servlet sends a form requesting a name and an email address. When form data is posted back from the browser, email is send to the address given using the name given.

Author:
Copyright (c) 1996-98 by WebLogic, Inc. All Rights Reserved., Copyright (c) 1999 by BEA WebXpress. All Rights Reserved.

Constructor Index

 o MailServlet()

Method Index

 o getServletInfo()
Info about the servlet.
 o service(HttpServletRequest, HttpServletResponse)
Implements the HttpServlet service() method.

Constructors

 o MailServlet
 public MailServlet()

Methods

 o service
 public synchronized void service(HttpServletRequest req,
                                  HttpServletResponse res) throws IOException
Implements the HttpServlet service() method. This uses an htmlKona FormServlet to take the user's input, which is formatted into an email message and posted.

Overrides:
service in class HttpServlet
 o getServletInfo
 public String getServletInfo()
Info about the servlet.

Overrides:
getServletInfo in class GenericServlet

All Examples  This Package