Thank you Mr KARTHIKEYAN, it is a good idea to save some data to the ServletContext if it is necessary afterwards.
But in my case I don't want to save the whole result of portlet.getContent(...). But I succeeded in approaching like this: I tried to call portlet.getContent( RunData ) directly from the Servlet. I had to create the portlet in advance. I did it with PortletFactory.getPortlet( portletEntry ) but I can only create portlets from the XREG files and not from the PSML files. And I don't have an appropriate RunData object. I just created it using RunDataFactory.getRunData( req, res, this ); I will have to investigate a little bit more how to get more information about the current user and its PSML files. Any advice is appreciated. Thank you in advance Matthias Wimmer -----Original Message----- From: KARTHIKEYAN E S [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 1:34 AM To: Wimmer, Matthias Subject: RE: getContent Hai Matthias, assume "matt" is the user name for whom you need to fetch ...... In the Portlet code, add the following if("matt".equals(rundata.getUser().getUserName()) rundata.getServletContext().setAttribute("element",portlet.getContent(rundat a)); In the Servlet Code , you can fetch the object "element " using getServletContext.getAttribute("element") Check if above logic works and kindly inform me. Best Regards, E.S.Karthikeyan -----Original Message----- From: Wimmer, Matthias To: 'Jetspeed Developers List' Sent: 6/26/02 9:03 PM Subject: getContent Hello, I already posted this question to the users' list but nobody answered. Maybe due to the lack of experience. My question is basically this: I don't want to touch the existing portlets. I would like to implement another Servlet that accesses the method Portlet.getContent(...) of a specific user that has already logged in using Jetspeed. Is this possible? Any advice will be very appreciated! Matthias Wimmer -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> Questo documento e gli eventuali allegati sono indirizzati unicamente al destinatario, a cui la lettura e l'utilizzo delle informazioni contenute sono esclusivamente riservati. Nel caso di utilizzo non autorizzato, Banca Sella potra' dar corso alle azioni piu' opportune per il risarcimento dei danni subiti anche da terzi. Nell'ipotesi che la e-mail non fosse indirizzata a Voi o il contenuto lasci intendere che possano esservi stati errori o manipolazioni nella trasmissione, vogliate cortesemente contattare i seguenti indirizzi di posta elettronica: [EMAIL PROTECTED]; [EMAIL PROTECTED] This e-mail is directed uniquely to the interested party, which is the exclusive addressee of any information contained herein. For any abuse about the content of this message, Banca Sella will claim compensation for damages occurred to third parties as well. In case the e-mail should be addressed to other than you, or the content should reveal any transmission errors or manipulations, please contact us at the following address: [EMAIL PROTECTED]; [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
