You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by zazo <za...@tlen.pl> on 2005/02/24 18:51:27 UTC

JSP decorator

Hello everyone,

I have J2 checkouted from CVS. What I'm trying to do is to replace
vm decorators with jsp. I've got 2 questions.

--- 1. How to do I initialize/use JetspeedPowerTool in custom JSP
decorator page. I had modified LayoutPortlet.java before I tried to
use jsp like this:

<%
JetspeedPowerTool jpt = new JetspeedPowerTool(pageContext);
out.write(jpt.getPage().getTitle());
%>

Then I got:

JetspeedRequestDispatcher failed to include servlet resources.
(details below)
Exception: org.apache.jasper.JasperException
Message: JetspeedPowerTool has not been properly initialized. The
JetspeedPowerTool generally only usuable during the rendering phase
of internal portlet applications.

Stack Trace:
  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:207)
...

--- 2. Is there any way to make layout.properties work with other
extensions (.jsp). I do realize that this question is similar to one
from this page
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg14934.html
but I hope maybe you have some other clues.

Thanks for any help!

Best regards,

Tomasz


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org