//Si une redirection est a faire, on ne fait pas de rendu
if (portletHolder.getActionResponse()!=null && portletHolder.getActionResponse().isRedirected()) return;
/*
* Calcul du portlet
*/
TpRenderRequest TPrequest = (TpRenderRequest)portletHolder.getRenderRequest();
TpRenderResponse TPresponse = (TpRenderResponse)portletHolder.getRenderResponse();
RequestDispatcher servletDispatcher;
portlet.render(TPrequest,TPresponse);
if (TPresponse.getDispatcher() != null) {
Enumeration eAttribute = TPrequest.getAttributeNames();
while (eAttribute.hasMoreElements()) {
String attribute = (String) eAttribute.nextElement();
Object value = TPrequest.getAttribute(attribute);
request.setAttribute(attribute, value);
}
servletDispatcher = TPresponse.getDispatcher();
HttpServletResponse newResponse = new FictiveHttpServletResponse((HttpServletResponse) response, TPresponse);
servletDispatcher.include(request, newResponse);