struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom tom <j_lal...@yahoo.com>
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
=PortletActionContext.getRequest();
	    
 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 <thechrispratt@gmail.com> wrote:

> On 9/12/07, tom tom <j_lalith@yahoo.com> 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:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy)
at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message