Hi,

While waiting for the next stable release of Jetspeed, I have gotten an alternative method that works by using the include tag within JSP page and setting the actual page to include via the servlet associated with the page. For instance,

In mypage.jsp:

<%
 try {
   template = (String) request.getAttribute("template");
 ...
%>
 ...
   <jsp:include page="<%=template%>" flush="true"/>
 ...


In the associated servlet action class:


private final static String TEMPLATE = "template";
...
rundata.getRequest().setAttribute(TEMPLATE, portlet.getPortletConfig().getInitParameter("my-next-template");




Finally, in your portlet registry:
 ...
   <parameter name="my-next-template" value="next-template.jsp" ... />


regards, yb


If you're using Jetspeed 1.4b4-dev check out from CVS today, then it should work. I just checked in a fix to make setTemplate work in JspPortlet yesterday.

Best regards,

Mark Orciuch - [EMAIL PROTECTED]
Jakarta Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/

-----Original Message-----
From: Damle, Nikhil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 1:04 PM
To: 'Jetspeed Users List'
Subject: setTemplate using JSPAction


Hi,


When I use the setTemplate method, ( ex. setTemplate(rundata,
"somefile.jsp") ), under what folder should this "somefile.jsp"
file reside.
Seems like jetspeed is not able to find this file. I have it under the
templates/jsp/portlets/html folder.

Thanks


-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






_________________________________________________________________
MSN Instant Messenger now available on Australian mobile phones.�Go to http://ninemsn.com.au/mobilecentral/hotmail_messenger.asp



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to