This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
The forward name is something that Struts keeps track of, but once the page is displayed, all you know is the path name, and you lose all reference to the forward name that was used to call the URL.
It's complicated, but here's one way you could find it:
Get the ModuleConfig object. You can do this with the statement: Once you have this object, you can get the array of ActionConfig objects using the findActionConfigs() method, and then in each action, get the array of ForwardConfig objects using the findForwardConfigs() method. By iterating through all these forwards, you could find the one that matches the path you want. If there's more than one forward that points to the same path, you're out of luck. There's no way to tell which of the two forwards was invoked.
The above assumes you only have one module. If you have more than one, the code would be different. I'm not sure what the differences are. You'd have to research it. [ June 09, 2006: Message edited by: Merrill Higginson ]