org.melati.test
Class EmailTemplateServletTest
java.lang.Object
  
javax.servlet.GenericServlet
      
javax.servlet.http.HttpServlet
          
org.melati.servlet.ConfigServlet
              
org.melati.servlet.PoemServlet
                  
org.melati.servlet.TemplateServlet
                      
org.melati.test.EmailTemplateServletTest
- All Implemented Interfaces: 
 - Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
 
public class EmailTemplateServletTest
- extends TemplateServlet
 
Test display of various characters using a Template Engine.
- See Also:
 - Serialized Form
 
 
 
 
 
 
 
 
 
| 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 | 
 
EmailTemplateServletTest
public EmailTemplateServletTest()
init
public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
- Description copied from class: 
TemplateServlet 
- Inititialise the template engine.
- Specified by:
 init in interface javax.servlet.Servlet- Overrides:
 init in class TemplateServlet
 
- Parameters:
 config - a ServletConfig
- Throws:
 javax.servlet.ServletException - if the ServletTemplateEngine has a problem
 
 
doTemplateRequest
protected String doTemplateRequest(Melati melati,
                                   ServletTemplateContext context)
                            throws Exception
- Description copied from class: 
TemplateServlet 
- Override this method to build up your own output.
- Specified by:
 doTemplateRequest in class TemplateServlet
 
- Parameters:
 melati - the current Melaticontext - the current ServletTemplateContext
- Returns:
 - a Template name, possibly excluding extension.
 - Throws:
 Exception
 
 
poemContext
protected PoemContext poemContext(Melati melati)
                           throws PathInfoException
- Set up the melati context so we don't have to specify the logicaldatabase
 on the pathinfo.
 
 Useful when writing applications where you are typically only accessing a
 single database.
- Overrides:
 poemContext in class PoemServlet
 
- Throws:
 PathInfoException
 
 
Copyright © 2000-2010 PanEris. All Rights Reserved.