[jboss-user] [JBoss Portal] - Headerinjection in JBoss Portal 2.6 BETA 1
kthielma
do-not-reply at jboss.com
Wed Apr 11 05:47:44 EDT 2007
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?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036286#4036286
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036286
More information about the jboss-user
mailing list