ActionMappingAware ?

2007-12-12 Thread Dale Newfield
I think I'm missing something. Shouldn't there be a way for an action to get ahold of the mapping that resulted in the action being called, and maybe even the ActionMapper that chose it? ActionMapper has a very useful method getUriFromActionMapping that I'd like to be able to call from within

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Dale Newfield
Alberto A. Flores wrote: Is this a Struts 1.x or Struts 2.x? Sorry I didn't include that. Struts2. (If I recall correctly, that was one of the arguments to the action's exectute method in Struts1.) -Dale Dale Newfield wrote: I think I'm missing something. Shouldn't there be a way for

Re: ActionMappingAware ?

2007-12-12 Thread Alberto A. Flores
Is this a Struts 1.x or Struts 2.x? Dale Newfield wrote: I think I'm missing something. Shouldn't there be a way for an action to get ahold of the mapping that resulted in the action being called, and maybe even the ActionMapper that chose it? ActionMapper has a very useful method

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Alberto A. Flores
Have you tried? ActionContext.getContext().getContextMap().get(ServeltActionContext.ACTION_MAPPING); Although I haven't taken the time (yet) to explore all source code relationships within Struts 2. Good luck! Dale Newfield wrote: Alberto A. Flores wrote: Is this a Struts 1.x or Struts

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Martin Gainty
] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, December 12, 2007 4:42 PM Subject: Re: [struts] ActionMappingAware ? Have you tried? ActionContext.getContext().getContextMap().get(ServeltActionContext.ACTION_M APPING); Although I haven't taken the time (yet) to explore all

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Dave Newton
] ActionMappingAware ? Have you tried? ActionContext.getContext().getContextMap().get(ServeltActionContext.ACTION_M APPING); Although I haven't taken the time (yet) to explore all source code relationships within Struts 2. Good luck! Dale Newfield wrote: Alberto A. Flores

Re: [struts] ActionMappingAware ?

2007-12-12 Thread Dale Newfield
Alberto A. Flores wrote: Have you tried? ActionContext.getContext().getContextMap().get(ServeltActionContext.ACTION_MAPPING); Thanks for the suggestion. I did not try that because I've found a different solution that didn't require getting ahold of the mapping. s:url w/o specifying an