See section PLT 10.3.1 of the Portlet API:

"The following methods of the PortletContext should provide the same functionality as
the methods of the ServletContext of similar name: getAttribute,
getAttributeNames, getInitParameter, getInitParameterNames,
getMimeType, getRealPath, getResource, getResourcePaths,
 getResourceAsStream, log, removeAttribute and setAttribute"

Another way I've done this is to make beans available via jetspeed services, although less portable

Shah Amit wrote:
Hi all,

Is it possible to access ServletContext from renderRequest ? I tried to go thru the specs and api but couldn't find anything.

The reason why I need this is because I have my business logic written with spring framework and I want to be able to call my spring beans from renderAction of my portlet. My portlet extends GenericServletPortlet.

THanks,
Amit



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





--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194

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

Reply via email to