struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: newbie issue - tiles plugin, adding content to "dynamic" attributes
Date Tue, 03 Jun 2008 07:34:00 GMT
2008/6/2 Markus L. <ml.in.hell@gmail.com>:
> in the ViewPreparer i can add attributes, but i don't know how to access the
> action controller to fill them with data.. (as that would avoid the JSPs..)

I think you can get it this way.
The TilesRequestContext has a "getRequest" method. Simply cast the
result to "HttpServletRequest" and use:
ServletActionContext.getActionContext
method.

HTH
Antonio

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


Mime
View raw message