Re: How to get the input action path?

2005-01-25 Thread Gianpiero Caretti
Kishore Senji wrote: As I use Jakarta Velocity I cannot use static fields such as org.apache.struts.Globals.MAPPING_KEY Please take a look at FieldMethodizer, which allows access to static fields from the template

Re: How to get the input action path?

2005-01-25 Thread Gianpiero Caretti
[Gianpiero] The only think I don't like with this solution is that the JSP writer has to know the existence of the command attribute into request. Moreover if the Action writer forgot to call the setup method the request attribute will not set. [Jeff Beal] You can use a custom RequestProcessor

Generic

2005-01-24 Thread Gianpiero Caretti
Hi All, I need help about struts and tiles. I have an application using tiles and I have a jsp page that can be used as output page for several different actions. In this page I'd like to have a link to recall the input action (with different parameters). Something like ActionMapping.getPath()

How to get the input action path?

2005-01-24 Thread Gianpiero Caretti
Hi All, I need help about struts and tiles. I have an application using tiles and I have a jsp page that can be used as output page for several different actions. In this page I'd like to have a link to recall the input action (with different parameters). Something like ActionMapping.getPath()

Re: How to get the input action path?

2005-01-24 Thread Gianpiero Caretti
[EMAIL PROTECTED] wrote: There will be a request attribute under the name org.apache.struts.action.mapping.instance. Call getPath() on that (after casting to an ActionMapping). It works! Thanks to all, Gianpiero - To unsubscribe,

Re: How to get the input action path?

2005-01-24 Thread Gianpiero Caretti
[EMAIL PROTECTED] wrote: FYI, all of my Actions call a common setup function at the start of execute(), and one of the things it does is set an attribute command in the request with the value of getPath() called on the ActionMapping. FYI, that's exactly what I am doing rigth now! As I use Jakarta

Re: How to get the input action path?

2005-01-24 Thread Gianpiero Caretti
Gianpiero Caretti wrote: If you use jakarta velocity, another easy and probably less restricted solution could be to extend the StrutsLinkTool and register it into toolbox.xml instead of the standar link tool And using into the VM files directly the methods: $link.inputAction