Hi Nikos, There is now MVC portlet paradigm that allows the developer to define what type of view, in your case, jsp, at the registry level as opposed to having to use a template-language specific action class. The action class that supports the MVC portlet, GenericMVCAction, which gives you access to a context object. This is available in the current cvs head.
However, I do not think this going to fulfill your needs. The Context object provided within a portlet action is "scoped" to that portlet and that portlet only, meaning no other portlet will ever see it. One possible approach is to grab the current request context using the TurbineVelocity.getContext(RunData) which will give you access to the current request context as opposed to current portlet's individual context. At that point, you could place any information in that context and it will be available to all portlets through TurbineVelocity.getContext(RunData). The only catch is that your first portlet action, is in fact, invoked before the second one. You may also want to look at the SatateManagerService service as it may also provide you with the functionality you require. *===================================* * Scott T Weaver������������������� * * Jakarta Jetspeed Portal Project�� * * [EMAIL PROTECTED] * *===================================* � > -----Original Message----- > From: nick the mytilian [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 29, 2003 12:58 PM > To: [EMAIL PROTECTED] > Subject: Jsp Portlet Problem. > > Hi, > > I am facing the following problem: > I use the JspPortlet to present the output of a JSP in a portlet. > I want to "put" a String in the context, so that another portlet > can get it. > Unfortunately, i see that the only way to use something like: > String lala = (String) rundata.getSession().getAttribute("Testing"); > context.put("testing",lala); > > is to implement a portlet with action that extends the > VelocityPortletAction. > > BUT: I do not want to use Velocity! (I have already written the code in > JSP) > > How can i put something in the Context, using the JspPortlet and not the > VelocityPortlet? > > Thanks in advance! > > Nikos. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
