No problem, the 'portal driver' is the official name of Pluto's portal.
I have never used the driver, just the container so I don't know where to point you config file wise but what you would need to do is:
-Extend DefaultPortletEnvironmentService and override the methods you need to for adding the wrappers to provide the attributes. -Extend DefaultOptionalContainerServices to provide your PortletEnviornmentService implementation.
You'll need to find the Spring config that setups the PortletContainerImpl and inject your extended OptionalContainerServices impl there.
-Eric Javadocs that may help: http://portals.apache.org/pluto/pluto-container/apidocs/index.html ARK wrote:
Sorry for my expression. I used the pluto portal. It uses the pluto container. Actually I don't know what is the 'portal driver' used for. I want to add some attributes to the renderRequest which gets from the standard httpServletRequest. So I have to enhance/hack the pluto container. I am wondering whether the renderRequest/portletRequest wrapper is configurable, how to config it to inject my own wrapper. I am new to this, so detail guild is really preferred. Thanks! Regards, Ark On Tue, 2008-03-04 at 08:10 -0600, Eric Dalquist wrote:Pluto has several parts. The Pluto Portlet Container can be embedded in web applications to provide portlet support in that web application. To use the Portlet Container you have to write some code including code that calls methods on the PortletContainer interface to dispatch actions and rendering to portlets. The Pluto Portal Driver is a very simple stand-alone portal web application which uses the Portlet Container to render portlets in a static layout. I don't believe you need to write any code to use the Portal Driver though its purpose is more for demonstrating and testing the Portlet Container functionality. Do those descriptions help? The easiest way to do what you're trying depends on which one you're doing. -EricARK wrote:I am using the pluto 1.1.4. So I think it means 'pluto portal driver'. I use the pluto as the container that I can deploy my own portlet. Ark On Tue, 2008-03-04 at 05:58 -0600, Eric Dalquist wrote:Are you embedding the Pluto container in a portal / web app of your own or are you using the Pluto portal driver? -EricArk Xu wrote:Hi Eric, Where is the Srping config xml file that I can inject my own HttpServletRequestWrapper implementations? Thanks! Regards, Ark On 04/03/2008, Eric Dalquist <[EMAIL PROTECTED]> wrote:The easiest way would be to wrap the HttpServletRequest you pass to the container when dispatching to the portlet in your own HttpServletRequestWrapper implementation that provides the custom attributes. -Eric Ark Xu wrote: > I want to make some customize to the portlet container in order to set > some > special attributes to the renderRequest. > I don't want to hack the PortletContainerImpl and add my own codes. > How to do it? Is there any Spring bean xml file that can be configured? > -- > Best regards, > > Ark Xu
smime.p7s
Description: S/MIME Cryptographic Signature