struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom tom <>
Subject Re: SessionAware vs ActionContext access to session - confused..
Date Thu, 13 Sep 2007 05:23:29 GMT
Yes in theory you are correct, but in side a S2
portlet (which  implements ServletRequestAware
interface) if you try to get a handler for
HttpServletRequest object via the setServletRequest
method it basically gives null.

How we make a handler for the HttpServletRequest
object is as follows,

PortletRequest portletRequest
 request = (HttpServletRequest) portletRequest;

there were lot of other things we had to do
differently, but for all we got some solution.

I thing this is a seperate discussion alltogether why
it doesnt work like a web application etc?

hope this helps

--- Chris Pratt <> wrote:

> On 9/12/07, tom tom <> wrote:
> > If you are developing portlets with struts2
> > I doubt *Aware interfaces work properly, you have
> to
> > do it differently.
> I don't know of anything that would preclude you (or
> anyone else) from
> writing a set of Portlet aware Interceptors.  They
> could even use the
> same *Aware interfaces.  The advantage is that you
> could use the same
> actions whether or not they were in a Portlet by
> just changing the
> Interceptor Stack.
>   (*Chris*)
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy)
at Yahoo! Games.  

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message