org.mentawai.template
Class JspTemplateServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.mentawai.template.TemplateServlet
              extended by org.mentawai.template.JspTemplateServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JspTemplateServlet
extends TemplateServlet

Heranca de TemplateServlet para trabalhar com JSP.

Author:
Davi Luan Carneiro
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mentawai.template.TemplateServlet
CURRENT_VIEW_ATTR, PAGE_ATTR, TEMPLATE_MANAGER_ATTR
 
Constructor Summary
JspTemplateServlet()
           
 
Method Summary
protected  void putPageInResponse(Page page, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext application)
          Seta o page na request.
protected  void showPage(Page page, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext application)
          Exibe a pagina no brownser do usuario, usando um dispatcher
 
Methods inherited from class org.mentawai.template.TemplateServlet
doGet, doPost, executeListener, extractPagePath, getTemplateManager, init, processRequest, processTemplate, setTemplateManager
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspTemplateServlet

public JspTemplateServlet()
Method Detail

putPageInResponse

protected void putPageInResponse(Page page,
                                 javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 javax.servlet.ServletContext application)
                          throws Exception
Seta o page na request. Faz isso atraves do metodo request.setAttribute

Specified by:
putPageInResponse in class TemplateServlet
Throws:
Exception

showPage

protected void showPage(Page page,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response,
                        javax.servlet.ServletContext application)
                 throws Exception
Exibe a pagina no brownser do usuario, usando um dispatcher

Specified by:
showPage in class TemplateServlet
Throws:
Exception


Copyright © 2013. All Rights Reserved.