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

    Headerinjection in JBoss Portal 2.6 BETA 1

    Kay Thielmann Newbie

      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";
       protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException
       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?