If the request is stuffed into the VelocityContext, yes you can. In
Struts Menu's case, you can see what's put in their in the
VelocityDisplayer.java source code:

http://struts-menu.sourceforge.net/xref/net/sf/navigator/displayer/VelocityMenuDisplayer.html

In other words, you should be able to reference any request attributes
using ${attributeName}.

Matt

On Wed, Jan 13, 2010 at 6:42 PM, Arthur Erdös <a.erd...@googlemail.com> wrote:
> Hi all,
>
> is it possible to access a request attribute in a velocity template?
>
> E.g. if I have a menu item INBOX and want to display the number of new
> messages in the menu item text... => INBOX (2 new)
>
> best regards,
> Arthur
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to