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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
