org.paneris.melati.site
Class Display

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.melati.servlet.ConfigServlet
              extended by org.melati.servlet.PoemServlet
                  extended by org.melati.servlet.TemplateServlet
                      extended by org.paneris.melati.site.SiteServlet
                          extended by org.paneris.melati.site.Display
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Display
extends SiteServlet

Display an object using its Template. This is the main servlet for the site, so it needs to handle a number of request types. 1. Display of a record from the db 2. Display a selection of records from a table in the db 3. Display images or files from the DOCUMENT_ROOT This last is a trick to enable an image or page to be displayed instead of a db record/table. http://localhost/db/Display/table/record.html Table Record Method URL null null null Display - Error null null present Display/AllUrls.html valid null present Display/page/Summary.html valid valid null Display/page/1.html valid valid null Display/page/About.melati.site.html valid valid present Display/page/1/Special.html valid valid present Display/page/About.Us/intranet.html

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.paneris.melati.site.SiteServlet
SiteServlet.Util
 
Field Summary
 
Fields inherited from class org.paneris.melati.site.SiteServlet
DEBUG
 
Fields inherited from class org.melati.servlet.TemplateServlet
templateEngine
 
Fields inherited from class org.melati.servlet.ConfigServlet
melatiConfig, sysAdminEmail, sysAdminName
 
Constructor Summary
Display()
           
 
Method Summary
protected  java.lang.String reallyDoTemplateRequest(org.melati.Melati melati, org.melati.template.ServletTemplateContext context)
          Override this method to build up output in individual servlets.
 
Methods inherited from class org.paneris.melati.site.SiteServlet
doConfiguredRequest, doTemplateRequest, fileAt, getDB_NAME, getSetting, getSTATIC_ROOT, poemContext
 
Methods inherited from class org.melati.servlet.TemplateServlet
addExtension, doPoemRequest, error, init, prePoemSession
 
Methods inherited from class org.melati.servlet.PoemServlet
_handleException, dbBusyMessage, destroy, getSysAdminEmail, getSysAdminName, handleException, poemContextWithLDB
 
Methods inherited from class org.melati.servlet.ConfigServlet
doGet, doPost, melatiConfig, setSysAdminEmail, setSysAdminName, writeConnectionPendingException, writeError
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Display

public Display()
Method Detail

reallyDoTemplateRequest

protected java.lang.String reallyDoTemplateRequest(org.melati.Melati melati,
                                                   org.melati.template.ServletTemplateContext context)
                                            throws java.lang.Exception
Description copied from class: SiteServlet
Override this method to build up output in individual servlets.

Specified by:
reallyDoTemplateRequest in class SiteServlet
Returns:
Template name without path or extension
Throws:
java.lang.Exception


Copyright © 1997-2008 PanEris. All Rights Reserved.