velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <nat...@esha.com>
Subject Re: Struts Action path or Forward name in my velocity template
Date Mon, 19 Jul 2004 18:13:10 GMT
Matt Higgins said:
> I'm using Velocity with Struts as my subject implies. Is there a way to
> find the Action path or the forward name that returned the current page.
> I need this info to generate dynamic navigation links that are 
> based on the current page. 
> 
> I looked into the the VelocityStruts toolbox but found nothing. I also
> looked at the objects that are placed in the context by default i.e.
> $application, $request, $response. I can easily get a list of all the
> Forwards and/or ActionMappings but that tells me little about the
> current forward or action. 
> 
> Can I get this info through a combination of calls, I am not seeing ?

i dunno.

> Is this more of a Struts question?

yes. :)  you might get better answers on struts-user.

> Should I have a custom Action for each page and stuff the forward name
> in the users session?
...

in the session?!  do you mean request?  i think that would work alright.

Nathan Bubna
nathan@esha.com

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


Mime
View raw message