Class Ass13
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--Ass13
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class Ass13
- extends javax.servlet.http.HttpServlet
This class implements a simple class, that returns a webfile.
- Version:
- $Revision: 1.0.1, 2003-11-07 $
- Author:
- Peter Larsson
- See Also:
- Serialized Form
Field Summary |
static java.text.SimpleDateFormat |
dateFormat
|
Constructor Summary |
Ass13()
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
The GET-method runs at request. |
void |
init()
Reads the htmlFile. |
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dateFormat
public static final java.text.SimpleDateFormat dateFormat
Ass13
public Ass13()
init
public void init()
throws javax.servlet.ServletException
Reads the htmlFile.
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
- The standard ServletException
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
The GET-method runs at request. It returns a webpage.
- Parameters:
request
- The Requestresponse
- The Response- Throws:
java.io.IOException
- throws an IOExceptionjavax.servlet.ServletException
- throws a ServletException