public class TestSpreadsheetHelpers extends HttpServlet
It makes use of a database named sample that is located on my laptop computer.
SpreadsheetHelpers,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Inserted in order to satisfy serializable interface
|
| Constructor and Description |
|---|
TestSpreadsheetHelpers() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init(ServletConfig config) |
void |
service(HttpServletRequest req,
HttpServletResponse res)
Creates the web page.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logprivate static final long serialVersionUID
public TestSpreadsheetHelpers()
public void init(ServletConfig config) throws ServletException
init in interface Servletinit in class GenericServletServletExceptionpublic void destroy()
destroy in interface Servletdestroy in class GenericServletpublic void service(HttpServletRequest req, HttpServletResponse res) throws IOException
The methods setHeader and setContentType for the HttpServletResponse object are used to set the properties of the file being downloaded.
service in class HttpServletIOExceptionHttpServletRequest,
HttpServletResponse