DispatcherPortlet.java 文件源码

java
阅读 21 收藏 0 点赞 0 评论 0

项目:class-guard 作者:
/**
 * Actually render the given view.
 * <p>The default implementation delegates to
 * {@link org.springframework.web.servlet.ViewRendererServlet}.
 * @param view the View to render
 * @param model the associated model
 * @param request current portlet render/resource request
 * @param response current portlet render/resource response
 * @throws Exception if there's a problem rendering the view
 */
protected void doRender(View view, Map model, PortletRequest request, MimeResponse response) throws Exception {
    // Expose Portlet ApplicationContext to view objects.
    request.setAttribute(ViewRendererServlet.WEB_APPLICATION_CONTEXT_ATTRIBUTE, getPortletApplicationContext());

    // These attributes are required by the ViewRendererServlet.
    request.setAttribute(ViewRendererServlet.VIEW_ATTRIBUTE, view);
    request.setAttribute(ViewRendererServlet.MODEL_ATTRIBUTE, model);

    // Include the content of the view in the render/resource response.
    doDispatch(getPortletContext().getRequestDispatcher(this.viewRendererUrl), request, response);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号