--- Martin Gainty <[EMAIL PROTECTED]> wrote: > Alberto/Dale > > there is a mapping parameter in execute method of DispatchAction > http://struts.apache.org/1.2.x/api/org/apache/struts/actions/DispatchAction. > html > which class should implement mapping attribute?
They're talking S2, and there's a mapping parameter in *every* S1 action's execute method; it's where the forwards come from. d. > > Martin-- > ----- Original Message ----- > From: "Alberto A. Flores" <[EMAIL PROTECTED]> > 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 source code > > relationships within Struts 2. > > > > Good luck! > > > > Dale Newfield wrote: > > > 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 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 > > >>> the action... > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > -- > > > > Alberto A. Flores > > http://www.linkedin.com/in/aflores > > > > > > > > > ---------------------------------------------------------------------------- > ---- > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]