2 Replies Latest reply on Apr 13, 2007 1:19 PM by antoine_h

    Headerinjection in JBoss Portal 2.6 BETA 1

    kthielma

      I need to inject the portlet css-path dynamically. I tried to do it like this but without any success

      public class Portlet extends GenericPortlet{
      
       private static final String JSP_PATH = "/WEB-INF/jsp/info";
      
       @Override
       protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
       {
       rResponse.setContentType("text/html");
       javax.portlet.PortletRequestDispatcher pRD = this.getPortletContext().getRequestDispatcher(JSP_PATH + "/view.jsp");
       rResponse.setProperty("HEADER_CONTENT", "/path/to/css");
       pRD.include(rRequest, rResponse);
       }
       }


      What is wrong?