You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Gregory Joseph <gj...@kiala.com> on 2003/09/05 17:51:34 UTC

setTemplate using JSPAction

Hi list,

In my action class extending jspAction, i try to use the setTemplate method,
but it doesn't work. I throws a NullPointerException somewhere when trying to
retrieve a "VelocityPortletContext" (how surprising when working with a
JSPPortlet) Besides, I had to catch this exception myself, otherwise it
wasn't appearing anywhere in the logs, not even a single error message...

I found this had been fixed a while ago:
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg07770.html
Bug when looking on the cvs view, i see there's been some refactoring
afterwards, so i think the issue might have re-appeared.

Can someone confirm and/or propose a solution?

my code simply looks like:

//.....blahblah do stuff
setTemplate(rundata, "mypage.jsp");

But then the portlet still displays the original template (the one set in the
xreg file).
(I also tried without the .jsp extension, but result is exactly the same)