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.
-
MailServlet()
-
-
getServletInfo()
- Info about the servlet.
-
service(HttpServletRequest, HttpServletResponse)
- Implements the HttpServlet service() method.
MailServlet
public MailServlet()
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
getServletInfo
public String getServletInfo()
- Info about the servlet.
- Overrides:
- getServletInfo in class GenericServlet
All Examples This Package