View Javadoc
1   package org.melati.servlet.test;
2   
3   import org.melati.Melati;
4   import org.melati.servlet.TemplateServlet;
5   import org.melati.template.ServletTemplateContext;
6   
7   /**
8    * @author timp
9    * @since 5/12/2006
10   *
11   */
12  public class ExceptionTemplateServlet extends TemplateServlet {
13  
14    /**
15     * Shut eclipse up.
16     */
17    private static final long serialVersionUID = 1L;
18  
19    /**
20     * Constructor.
21     */
22    public ExceptionTemplateServlet() {
23      super();
24    }
25  
26    protected String doTemplateRequest(Melati melati,
27        ServletTemplateContext templateContext) throws Exception {
28      throw new Exception("A problem");
29    }
30  
31  }