Re: How to get method name in interceptor

2012-05-17 Thread Maurizio Cucchiara
You're welcome.

Re: How to get method name in interceptor

2012-05-17 Thread SudhirSahoo
That works like a charm. Thanks a lot. Thanks, Sudhir -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-get-method-name-in-interceptor-tp3476096p5709802.html Sent from the Struts - User mailing list archive at Nabble.com

Re: How to get method name in interceptor

2012-05-17 Thread Maurizio Cucchiara
t; http://struts.1045723.n5.nabble.com/How-to-get-method-name-in-interceptor-tp3476096p5709800.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@st

Re: How to get method name in interceptor

2012-05-17 Thread SudhirSahoo
Hi, It seems the url (http://strutsschool.com/downloads/downloads.action) is not working now. Can you please post here the logic how to get the method name in interceptor. Thanks, Sudhir -- View this message in context: http://struts.1045723.n5.nabble.com/How-to-get-method-name-in-interceptor

Re: How to get method name in interceptor

2008-02-21 Thread stanlick
Right on! Rather than bale out of the interceptor stack, do this: ${destination} and provide a get/set destination in your Action class that determines where to go next. It's much cleaner and intuitive than burying controller logic in the interceptor stack. Holler if you have questions, as

Re: How to get method name in interceptor

2008-02-21 Thread Toni Lyytikäinen
I'm trying to write an interceptor that makes redirecting decisions based on an annotation on the method on that is going to be executed. Like this: public class MyAction extends ActionSupport { ... @SomeAnnotation(value="value") public String list() { ... return SUCCESS; } } publ

Re: How to get method name in interceptor

2008-02-21 Thread stanlick
Tell me more. One thing I have learned using Struts 2 is if you think it should be possible, it probably is! What are you trying? On Thu, Feb 21, 2008 at 1:29 AM, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: > Thanks. This approach works, but isn't quite as elegant as I was hoping. > > On Wed, F

Re: How to get method name in interceptor

2008-02-20 Thread Toni Lyytikäinen
Thanks. This approach works, but isn't quite as elegant as I was hoping. On Wed, Feb 20, 2008 at 2:47 PM, <[EMAIL PROTECTED]> wrote: > download the breadcrumb > interceptor > and look at the intercept method. You will see what's happening right

Re: How to get method name in interceptor

2008-02-20 Thread stanlick
download the breadcrumb interceptor and look at the intercept method. You will see what's happening right away. On Wed, Feb 20, 2008 at 5:40 AM, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to access the ActionMapping from

How to get method name in interceptor

2008-02-20 Thread Toni Lyytikäinen
Hi, I'm trying to access the ActionMapping from an interceptor, like the following test stub: public String intercept(ActionInvocation invocation) throws Exception { ActionMapping am=ServletActionContext.getActionMapping(); log.info("The method is "+am.getMethod()); return invocation.