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
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
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
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
]
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
] 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
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
7 matches
Mail list logo