Class ViewRendererServlet

  • All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

    public class ViewRendererServlet
    extends HttpServlet
    ViewRendererServlet is a bridge servlet, mainly for the Portlet MVC support.

    For usage with Portlets, this Servlet is necessary to force the portlet container to convert the PortletRequest to a ServletRequest, which it has to do when including a resource via the PortletRequestDispatcher. This allows for reuse of the entire Servlet-based View support even in a Portlet environment.

    The actual mapping of the bridge servlet is configurable in the DispatcherPortlet, via a "viewRendererUrl" property. The default is "/WEB-INF/servlet/view", which is just available for internal resource dispatching.

    Since:
    2.0
    Author:
    William G. Thompson, Jr., John A. Lewis, Juergen Hoeller
    See Also:
    Serialized Form