Re: Interceptor implementing SessionAware interface

2017-12-03 Thread Yasser Zamani
On 12/4/2017 3:00 AM, saravana2...@gmail.com wrote: > setSession() method is not called even after implementing sessionAware ServletConfigInterceptor calls setSession but only on action, not on previous or next interceptors: if (action instanceof SessionAware) { ((Session

Re: Interceptor in various struts.xml

2013-08-27 Thread Lukasz Lenart
2013/8/28 Ken McWilliams : > Not looking that closely but both your packages extend "struts-default" if > you want the interceptors/results of package "default" to be available to > package "M1" you should extend "default" on that package rather than > "struts-default"... Exactly! How do you want

Re: Interceptor in various struts.xml

2013-08-27 Thread Ken McWilliams
Not looking that closely but both your packages extend "struts-default" if you want the interceptors/results of package "default" to be available to package "M1" you should extend "default" on that package rather than "struts-default"... On Tue, Aug 27, 2013 at 5:04 PM, Thomas Lionel SMETS (prof)

Re: Interceptor in various struts.xml

2013-08-27 Thread Thomas Lionel SMETS (prof)
So, I found a solution to the issue. Defining the MDC-interceptor is done like this : http://struts.apache.org/dtds/struts-2.3.dtd";> ^[a-zA-Z0-9_]+$

Re: Interceptor in various struts.xml

2013-08-27 Thread Ken McWilliams
To be clear, the term "submodule" to me indicates some type of encapsulation... you know that the includes only make one big XML file? If this is a new project consider the struts2-conventions-plugin, if it is in use I don't think your configuration should need to grow beyond more than one xml file

Re: Interceptor in various struts.xml

2013-08-27 Thread Dave Newton
Are the actions in the same package? You need to provide more information; we cannot see your project and without specifics, we have to guess. Dave On Tue, Aug 27, 2013 at 9:30 AM, Thomas Lionel SMETS (prof) < tsm...@a3-system.eu> wrote: > Typically, MdcLoggingUtility does this : > >@Ove

Re: Interceptor in various struts.xml

2013-08-27 Thread Thomas Lionel SMETS (prof)
Typically, MdcLoggingUtility does this : @Override public String intercept(ActionInvocation invocation) throws Exception { /* * This code puts a unique Id to the Mapped Diagnostic * context. Since MDC is a static class, we can directly access it * w

Re: Interceptor in various struts.xml

2013-08-27 Thread Dave Newton
What doesn't work? Dave On Aug 27, 2013 7:08 AM, "Thomas Lionel SMETS (prof)" wrote: > > I created my interceptor stack in the top-level struts.xml, like this : >"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" > > "http://struts.apache.org/dtds/struts-2.3.dtd";

Re: interceptor init twice

2013-05-29 Thread Steven Yang
finally got time to test it and it works wonder thanks On Fri, May 17, 2013 at 4:09 PM, Steven Yang wrote: > Thanks will do asap > > > On Fri, May 17, 2013 at 2:39 PM, Lukasz Lenart wrote: > >> Committed, please check with the latest snapshot. >> >> >> Regards >> -- >> Łukasz >> + 48 606 323 12

Re: interceptor init twice

2013-05-17 Thread Steven Yang
Thanks will do asap On Fri, May 17, 2013 at 2:39 PM, Lukasz Lenart wrote: > Committed, please check with the latest snapshot. > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > > 2013/5/17 Steven Yang : > > Wow that's fast > > > > here it is > > https://issues.apache.or

Re: interceptor init twice

2013-05-16 Thread Lukasz Lenart
Committed, please check with the latest snapshot. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/17 Steven Yang : > Wow that's fast > > here it is > https://issues.apache.org/jira/browse/WW-4067 > > thanks > > > On Fri, May 17, 2013 at 3:42 AM, Lukasz Lenart wrote: > >> Fi

Re: interceptor init twice

2013-05-16 Thread Steven Yang
Wow that's fast here it is https://issues.apache.org/jira/browse/WW-4067 thanks On Fri, May 17, 2013 at 3:42 AM, Lukasz Lenart wrote: > Fix is ready, I just need a JIRA task :-) > > 2013/5/16 Lukasz Lenart : > > I have been looking into that and I am sure that's the problem, could > > you regi

Re: interceptor init twice

2013-05-16 Thread Lukasz Lenart
Fix is ready, I just need a JIRA task :-) 2013/5/16 Lukasz Lenart : > I have been looking into that and I am sure that's the problem, could > you register an issue with JIRA? > > > Thanks in advance > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2013/5/16 Lukasz Lenart : >> Maybe y

Re: interceptor init twice

2013-05-16 Thread Lukasz Lenart
I have been looking into that and I am sure that's the problem, could you register an issue with JIRA? Thanks in advance -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/16 Lukasz Lenart : > Maybe your problem is related to: > > https://issues.apache.org/jira/browse/WW-3870 > > > Reg

Re: interceptor init twice

2013-05-16 Thread Lukasz Lenart
Maybe your problem is related to: https://issues.apache.org/jira/browse/WW-3870 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/9 Steven Yang : > thanks good to know i am not being forgotten :) > > > On Thu, May 9, 2013 at 12:51 PM, Lukasz Lenart wrote: > >> It's on my ToD

Re: interceptor init twice

2013-05-09 Thread Steven Yang
thanks good to know i am not being forgotten :) On Thu, May 9, 2013 at 12:51 PM, Lukasz Lenart wrote: > It's on my ToDo list ;-) > > 2013/5/9 Steven Yang : > > Hi just wondering is anyone as any insight on this? Or do I need to > provide > > more information? > > > > thanks > > > > > > On Fri, A

Re: interceptor init twice

2013-05-08 Thread Lukasz Lenart
It's on my ToDo list ;-) 2013/5/9 Steven Yang : > Hi just wondering is anyone as any insight on this? Or do I need to provide > more information? > > thanks > > > On Fri, Apr 26, 2013 at 3:37 PM, Steven Yang wrote: > >> same behavior for devMode=true and false >> >> i am not sure what you mean, s

Re: interceptor init twice

2013-05-08 Thread Steven Yang
Hi just wondering is anyone as any insight on this? Or do I need to provide more information? thanks On Fri, Apr 26, 2013 at 3:37 PM, Steven Yang wrote: > same behavior for devMode=true and false > > i am not sure what you mean, shouldnt init only be called during > initialization? > or do you

Re: interceptor init twice

2013-04-26 Thread Steven Yang
same behavior for devMode=true and false i am not sure what you mean, shouldnt init only be called during initialization? or do you want to confirm that when I run my app after initialization, the init method wont be called again? so far the observation is that this only happen during initializati

Re: interceptor init twice

2013-04-25 Thread Lukasz Lenart
2013/4/25 Felipe Lorenz : > with version 2.3.12, same behavior. Is this happen only during initialisation? in devMode? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@str

Re: interceptor init twice

2013-04-24 Thread Lukasz Lenart
2013/4/25 Steven Yang : > And sorry this behavior started on 2.3.7 and 2.3.4.1 does not have this > behavior I would said, it isn't expected behavior ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubs

Re: interceptor init twice

2013-04-24 Thread Steven Yang
@Maurizio sorry in the sample app I do not using Spring. I am using Spring in my projects, sorry for the confusion And sorry this behavior started on 2.3.7 and 2.3.4.1 does not have this behavior On Thu, Apr 25, 2013 at 9:13 AM, Steven Yang wrote: > @Maurizio I am indeed using Spring, I will t

Re: interceptor init twice

2013-04-24 Thread Steven Yang
@Maurizio I am indeed using Spring, I will try without Spring. @Dave what i mean by "include" is that I use the tag I do understand that Interceptor is singleton-ish. And I do understand if I defined the same interceptor in two different stacks there should be two different instances. However the

Re: interceptor init twice

2013-04-24 Thread Maurizio Cucchiara
Yep, it makes sense definitely, otherwise there would not be way to share a single instance with different params. Il giorno 24/apr/2013 15:31, "Dave Newton" ha scritto: > Definitely singleton-ish, although i thought there was an > instance-per-package--I thought I had packages with the same inte

Re: interceptor init twice

2013-04-24 Thread Dave Newton
Definitely singleton-ish, although i thought there was an instance-per-package--I thought I had packages with the same interceptor configured in different ways, but I can't check at the moment. Dave On Wed, Apr 24, 2013 at 9:28 AM, Maurizio Cucchiara wrote: > @Dave, I also could be wrong, but

Re: interceptor init twice

2013-04-24 Thread Maurizio Cucchiara
@Dave, I also could be wrong, but I remember that interceptors are singletone (maybe there is a single instance per package). @Steven looks like you're using Spring, if yes, could you check if you experience the same behavior w/o it? Il giorno 24/apr/2013 14:04, "Dave Newton" ha scritto: > I'm no

Re: interceptor init twice

2013-04-24 Thread Dave Newton
I'm not sure I understand what you mean regarding using the "include" element (i.e., precisely what you're doing) but I thought that each package would have its own set of interceptors, meaning there would be two instances, hence init would be called twice. This would be trivial to determine by ch

Re: Interceptor question

2011-12-09 Thread Brian McCullough
On Fri, Dec 09, 2011 at 03:37:10PM -0500, Dave Newton wrote: > That was a long question :( Yes, I wanted to make sure that I had covered all of what I had already done. > Yes; the default-intereptor-ref element is a per-package configuration, as > described in the pacakge configuration docs [1].

Re: Interceptor question

2011-12-09 Thread Dave Newton
That was a long question :( On Fri, Dec 9, 2011 at 2:48 PM, Brian McCullough wrote: > I would like to be able to define a particular Interceptor Stack as being > the Default for a particular packageName, and applicable to the whole > Package and its Actions, instead of having to code interceptor-

Re: Interceptor result control

2011-11-24 Thread Dave Newton
Yep! The result has already been rendered by the time `invoke()` returns. [1] Dave [1] http://struts.apache.org/2.x/docs/writing-interceptors.html 2011/11/24 Torben Hedstrøm > Hi... > > How do I control the result from within my Interceptors ?. > > -I have defined : > > > >

Re: Interceptor cleaning valuestack

2011-11-20 Thread Srineel Mazumdar
Dave, Thanks a lot for providing the solution. I put default stack in the interceptor stack and the functionality is running properly. However if I do not use stack and directly use the interceptor, it gives the following error : HTTP Status 404 - /Struts2/login.action;jsessionid=B902A6322742861B

Re: Interceptor cleaning valuestack

2011-11-20 Thread Dave Newton
By using a complete stack in the action's config element, or by combining stacks as with any interceptor configuration. http://struts.apache.org/2.x/docs/interceptor-configuration.html Dave On Sun, Nov 20, 2011 at 2:59 PM, Srineel Mazumdar wrote: > Hi Dave, > * > * > *"In any case, when you de

Re: Interceptor cleaning valuestack

2011-11-20 Thread Srineel Mazumdar
Hi Dave, * * *"In any case, when you define an for a specific action,* *you must define *all* of the interceptors for that action"* * * How can this be done ? Thanks, Srineel On Mon, Nov 21, 2011 at 1:26 AM, Dave Newton wrote: > On Sun, Nov 20, 2011 at 2:47 PM, Srineel Mazumdar >wrote: > > >

Re: Interceptor cleaning valuestack

2011-11-20 Thread Dave Newton
On Sun, Nov 20, 2011 at 2:47 PM, Srineel Mazumdar wrote: > I intend to use only logger1 interceptor. > > I want to enable only one interceptor ie logger1. How can I do so? > By doing what you did. However, as I stated, this means that essentially no other S2 functionality will be present, includ

Re: Interceptor cleaning valuestack

2011-11-20 Thread Srineel Mazumdar
Apologies for posting my query in this fashion. I am a newcomer to this group. The idea is to make a very simple Struts2 Login page. If the user gives correct user id and password, the flow will get directed to the user ino page where all the info will be put by user. After clicking submit, the flo

Re: Interceptor cleaning valuestack

2011-11-20 Thread Dave Newton
How about you describe the code the code and behavior and post it, rather than making us download a zip, extract it, look at it and/or run it, etc? Btw, the comment in your PostViewInterceptor is a bit misleading; the S.o.p will execute before the view is rendered, because it occurs before the inv

Re: Interceptor cleaning valuestack

2011-11-20 Thread Srineel Mazumdar
Please enable and disable the interceptor logger1. When interceptor is disable, I get userid/password in action, but not ,when enabled. If possible please run the code and check On Mon, Nov 21, 2011 at 12:56 AM, Dave Newton wrote: > "The" interceptor? Which interceptor? What makes you think an i

Re: Interceptor cleaning valuestack

2011-11-20 Thread Dave Newton
"The" interceptor? Which interceptor? What makes you think an interceptor is clearing the value stack? Dave On Sun, Nov 20, 2011 at 2:10 PM, Srineel Mazumdar wrote: > Hi, > > I am creating a small struts2 application and the problem that I face is > that the inteceptor is clearing the value stac

Re: Interceptor or preparable/ModelDriven or ActionChain ?

2011-02-14 Thread Barry L. Kline
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/14/2011 11:33 AM, Paweł Wielgus wrote: > Hi Barry, > maybe custom converter will suits your needs? > > http://struts.apache.org/2.2.1.1/docs/type-conversion.html > > Best greetings, > Paweł Wielgus. Thank you very, very much! That looks like

Re: Interceptor or preparable/ModelDriven or ActionChain ?

2011-02-14 Thread Paweł Wielgus
Hi Barry, maybe custom converter will suits your needs? http://struts.apache.org/2.2.1.1/docs/type-conversion.html Best greetings, Paweł Wielgus. 2011/2/14 Barry L. Kline : > I have an application used to track response times.  Essentially, an > event occurs and a database row is created with a

Re: Interceptor to access session objects

2010-12-28 Thread ChitraS
Dave, ${#session.foo} works in struts.xml. newton.dave wrote: > > --- On Tue, 6/24/08, John Smith wrote: >> I like it to be automatically set, using the getter/setter >> methods in the action. Can this be done with either >> SessionAware or through ActionContext? > > No. ScopedModelDriven, I

Re: Interceptor Stack config

2010-11-18 Thread stanlick
You certainly have accomplished that with however, Li is right; you did not need to redefine that stack, as it's in the default xml file in struts-core. Now then, you will only see this stack associated with actions in *this* package or it's sub-pacakges and I don't see any actions defined ther

Re: Interceptor Stack config

2010-11-18 Thread RogerV
Li Ying wrote: > > Why you define "paramsPrepareParamsStack" again? > > I believe it is already defined in the default configuration file, > > you can just use it. > That's what I think I'm trying to do with the struts.xml ;

Re: Interceptor Stack config

2010-11-18 Thread Li Ying
Why you define "paramsPrepareParamsStack" again? I believe it is already defined in the default configuration file, you can just use it. 2010/11/18 RogerV : > > Hi > > I'm setting up a new Struts 2 project - the first time I've started from > scratch in ages. I think it must be age, but I seem

Re: Interceptor Stack config

2010-11-18 Thread RogerV
li wei-4 wrote: > > Hi RogerV > > I don't think config-browser plugin tells you which stack are you using, > it just show you all of actions in namespaces you have configured, > of course, including default namespace > It lists the interceptors in the order that they are configured, so I wou

Re: Interceptor Stack config

2010-11-18 Thread li wei
Hi RogerV I don't think config-browser plugin tells you which stack are you using, it just show you all of actions in namespaces you have configured, of course, including default namespace (2010/11/18 18:18), RogerV wrote: Hi I'm setting up a new Struts 2 project - the first time I've started

Re: Interceptor attempt

2010-11-11 Thread Marcus Bond
t versions of the frameworks. I've tried a couple with limited success. -David -Original Message- From: Marcus Bond [mailto:mar...@marcusbond.me.uk] Sent: Thursday, November 11, 2010 11:01 AM To: user@struts.apache.org Subject: Re: Interceptor attempt Sorry to jump the thread Dav

RE: Interceptor attempt

2010-11-11 Thread Altenhof, David Aron
;ve tried a couple with limited success. -David -Original Message- From: Marcus Bond [mailto:mar...@marcusbond.me.uk] Sent: Thursday, November 11, 2010 11:01 AM To: user@struts.apache.org Subject: Re: Interceptor attempt Sorry to jump the thread David.. Looks like the ThreadLocal (unique

Re: Interceptor attempt

2010-11-11 Thread Marcus Bond
tSession().getTransaction().commit(); to commit it from anywhere in your app? Thanks, David -Original Message- From: Greg Lindholm [mailto:greg.lindh...@gmail.com] Sent: Wednesday, November 10, 2010 5:15 PM To: Struts Users Mailing List Subject: Re: Interceptor attempt (Sorry - prematur

Re: Interceptor attempt

2010-11-11 Thread Dave Newton
On Thu, Nov 11, 2010 at 9:44 AM, Martin Gainty wrote: > i would strongly advise against issuing a commit until your app knows your DML > has successfully completed committing the transaction before DML has > completed will > put in the line of fire from the DBA "Don't issue a commit until DML ha

RE: Interceptor attempt

2010-11-11 Thread Martin Gainty
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: dalte...@iupui.edu > To: user@struts.apache.org >

RE: Interceptor attempt

2010-11-11 Thread Altenhof, David Aron
Sent: Wednesday, November 10, 2010 5:15 PM To: Struts Users Mailing List Subject: Re: Interceptor attempt (Sorry - premature post) Hi David, I've written a couple of these so let me give you some advice: Create an Interface "HibernateAware" that your actions will implement if th

Re: Interceptor attempt

2010-11-10 Thread Greg Lindholm
(Sorry - premature post) Hi David, I've written a couple of these so let me give you some advice: Create an Interface "HibernateAware" that your actions will implement if they want a Hibernate Session and Transaction injected. public interface HibernateAware { void setSession(Session session);

Re: Interceptor attempt

2010-11-10 Thread Greg Lindholm
Hi David, I've written a couple of these so let me give you some advice: Create an Interface "HibernateAware" that your actions will implement if they want a Hibernate Session and Transaction injected. public interface HibernateAware { } On Wed, Nov 10, 2010 at 3:45 PM, Altenhof, David Aron w

Re: Interceptor - Dynamically Add Result Config to Action Config

2010-08-24 Thread Dave Newton
On Tue, Aug 24, 2010 at 11:34 AM, Martin Gainty wrote: > someone promoted 2.2 from Alpha to GA while i was working on something else > ...we need to take a look at this asap how did this bug slip between the > cracks of the testcases? > What makes you think it's a bug? "Someone" promoted from al

Re: Interceptor - Dynamically Add Result Config to Action Config

2010-08-24 Thread Stephen Turner
On Tue, 24 Aug 2010 12:44:36 -0400, Dale Newfield wrote: The execAndWait interceptor used to do something like this for the "wait" result--I'd look there for how it works around the change requiring these be immutable. -Dale Thanks Dale - that helped me figure it out. We can no longer alt

Re: Interceptor - Dynamically Add Result Config to Action Config

2010-08-24 Thread Dale Newfield
The execAndWait interceptor used to do something like this for the "wait" result--I'd look there for how it works around the change requiring these be immutable. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.o

Re: Interceptor - Dynamically Add Result Config to Action Config

2010-08-24 Thread Dave Newton
On Tue, Aug 24, 2010 at 10:59 AM, Martin Gainty wrote: > //Struts 2.2 is in Alpha Stage if the functionality is absent can you file > a JIRA? > If by "alpha" you mean "has a 2.2.1 point GA release", sure. Dave

RE: Interceptor - Dynamically Add Result Config to Action Config

2010-08-24 Thread Martin Gainty
rmation seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > To: user@struts.apache.org; mgai...@hotma

Re: Interceptor - Dynamically Add Result Config to Action Config

2010-08-24 Thread Stephen Turner
On Tue, 24 Aug 2010 10:59:29 -0400, Martin Gainty wrote: //reiterate 2.1.8 functionality: com.opensymphony.xwork2.ActionInvocation action_invocation; ActionProxy proxy=action_invocation.getProxy() ActionConfig config =proxy.getConfig(); //where ActionConfig contains the addResultConfig me

RE: Interceptor - Dynamically Add Result Config to Action Config

2010-08-24 Thread Martin Gainty
//reiterate 2.1.8 functionality: com.opensymphony.xwork2.ActionInvocation action_invocation; ActionProxy proxy=action_invocation.getProxy() ActionConfig config =proxy.getConfig(); //where ActionConfig contains the addResultConfig method public Builder addResultConfig(ResultConfig resultCon

Re: Interceptor order

2010-05-20 Thread Andy Law
Cheers Chris, Chris Pratt wrote: > > You may want to think about using: > > invocation.getStack().getContext().put(MAGIC_KEY,getStuff()); > > instead of: > > invocation.getStack().set(MAGIC_KEY,getStuff()); > > For the sake of argument, I'm going to assume that MAGIC_KEY is set to the > Str

Re: Interceptor order

2010-05-20 Thread Chris Pratt
You may want to think about using: invocation.getStack().getContext().put(MAGIC_KEY,getStuff()); instead of: invocation.getStack().set(MAGIC_KEY,getStuff()); For the sake of argument, I'm going to assume that MAGIC_KEY is set to the String "magic". The first example above makes #magic availabl

Re: Interceptor order

2010-05-20 Thread Andy Law
RogerV wrote: > > > > Andy Law wrote: >> >> The pertinent code in the interceptor is reproduced below. It does what I >> expect it to do insofar as it sticks my "Stuff" object in a place that >> the JSP can retrieve it using the MAGIC_KEY string. However, if I >> configure my interceptor stac

RE: Interceptor stack

2010-05-19 Thread Martin Gainty
e sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Wed, 19 May 2010 02:30:31 -0700 > From: roger.var...@googlemail.com > To: user@struts.apache.org > Subject: Re: Interceptor stack > > > > > Paweł Wielgus wrot

Re: Interceptor order

2010-05-19 Thread RogerV
Andy Law wrote: > > Following on from my previous question > (http://old.nabble.com/Some-Spring-Struts-questions-td28533505.html) about > injecting objects orthogonal to actions into the environment where jsps > can "see" them, I now have an interceptor that does what I want it do > (Yay! - tha

Re: Interceptor stack

2010-05-19 Thread RogerV
Paweł Wielgus wrote: > > Hi, > try to follow this example: > > http://poulwiel.blogspot.com/2009/09/config-browser-plugin-in-struts2.html > I was using config-browser - that's how I knew the interceptor stack didn't contain my custom interceptors. In the end, I've solved it - I needed the @P

Re: Interceptor stack

2010-05-19 Thread Paweł Wielgus
Hi, try to follow this example: http://poulwiel.blogspot.com/2009/09/config-browser-plugin-in-struts2.html Best greetings, Paweł Wielgus. 2010/5/18 RogerV : > > Ok - I'm having a bad start to the day and this is driving me nuts. I'm using > the Convention plugin, and below I've attached a copy

RE: Interceptor

2010-02-19 Thread CRANFORD, CHRIS
Have to use ac.getValueStack().set(key,value) instead. This fixed the issue. -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Friday, February 19, 2010 11:11 AM To: Struts Users Mailing List Subject: RE: Interceptor Correct it was a typo. I have

RE: Interceptor

2010-02-19 Thread CRANFORD, CHRIS
onstants.REQUEST_TIME_KEY = 'seekRequestTimeKey'. Thoughts? -Original Message- From: John Orr [mailto:webskate...@googlemail.com] Sent: Friday, February 19, 2010 10:46 AM To: Struts Users Mailing List Subject: Re: Interceptor Yes, I think this is exactly the issue raised in

Re: Interceptor

2010-02-19 Thread Cimballi
; } > > Chris > > -Original Message- > From: Cimballi [mailto:cimballi.cimba...@gmail.com] > Sent: Friday, February 19, 2010 10:16 AM > To: Struts Users Mailing List > Subject: Re: Interceptor > > Look at ParameterRemoverInterceptor for example, you can access the

Re: Interceptor

2010-02-19 Thread John Orr
gt;  parameters.put(Constants.REQUEST_TIME_KEY,new Long(diffMS)); >  ac.getValueStack().setValue(Constants.REQUEST_TIME_KEY,new Long(diffMS)); >  return(result); > } > > Chris > > -Original Message- > From: Cimballi [mailto:cimballi.cimba...@gmail.com] > Sent: Friday, February 19, 2

RE: Interceptor

2010-02-19 Thread CRANFORD, CHRIS
cimba...@gmail.com] Sent: Friday, February 19, 2010 10:16 AM To: Struts Users Mailing List Subject: Re: Interceptor Look at ParameterRemoverInterceptor for example, you can access the action context like this : ActionContext ac = invocation.getInvocationContext(); And then you can set values i

Re: Interceptor

2010-02-19 Thread John Orr
I think this case gets a little more complicated because you want the timer data to be available to your result. If you simply wait for your call to ActionInvocation.invoke() to return, then your result will already have been processed. So you need to use your interceptor to set a PreResultListener

Re: Interceptor

2010-02-19 Thread Cimballi
Look at ParameterRemoverInterceptor for example, you can access the action context like this : ActionContext ac = invocation.getInvocationContext(); And then you can set values in the value stack. Didn't test it but should work. Cimballi On Fri, Feb 19, 2010 at 11:10 AM, CRANFORD, CHRIS wrote:

Re: interceptor is not being called for all action

2010-02-01 Thread Jake Vang
rkpackages >> > several times and do not see the connection.  I'm not sure I understand > exactly what you > did solved the problem, but it is clerarer than the documention > > > --- On Sat, 1/30/10, Jake Vang wrote: > > > From: Jake Vang > Subject: Re: inter

Re: interceptor is not being called for all action

2010-01-31 Thread Leah OConnor
documention   --- On Sat, 1/30/10, Jake Vang wrote: From: Jake Vang Subject: Re: interceptor is not being called for all action To: user@struts.apache.org Date: Saturday, January 30, 2010, 5:38 PM okay, to answer my own question, yes, if you configure everything correctly, then you can get a

Re: interceptor is not being called for all action

2010-01-30 Thread Jake Vang
okay, to answer my own question, yes, if you configure everything correctly, then you can get a customized stack to work for all Actions. the only thing you really need to do is add this line to struts.xml with this defined, you can remove the @ParentPackage and @InterceptorRef from the classes

Re: interceptor is not being called for all action

2010-01-30 Thread Jake Vang
okay, after fiddling around for 2 hours, with the weak documentation out there, i think i have it figured out. at least empirically, it works now. just in case there are other users out there who are running into this problem, let me explain what in the world i did. i know A LOT of other people hav

Re: interceptor is not being called for all action

2010-01-30 Thread Jake Vang
i read that section on that page 10 times and i don't know how that relates to my problem. there's simply not enough information. i guess it's pointing me to something about namespaces, but, how do we get around this? on the other hand, the rest of that page was informative on annotations and the

Re: interceptor is not being called for all action

2010-01-30 Thread Jake Vang
what does that have to do with my problem? please enlighten. On Sat, Jan 30, 2010 at 4:37 PM, Dave Newton wrote: > > http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-XWorkpackages > > > - Original Message > > From: Jake Vang > > To: user@struts.apache.org > > S

Re: interceptor is not being called for all action

2010-01-30 Thread Dave Newton
http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-XWorkpackages - Original Message > From: Jake Vang > To: user@struts.apache.org > Sent: Sat, January 30, 2010 4:10:31 PM > Subject: interceptor is not being called for all action > > i have written an interceptor

Re: Interceptor & Action Definition

2009-11-15 Thread Musachy Barroso
public String intercept(ActionInvocation invocation) throws Exception { ActionConfig config = invocation.getProxy().getConfig(); final Map parameters = config.getParams(); ... } On Sun, Nov 15, 2009 at 3:25 PM, Chris Cranford wrote: > If you have action parameters defined in your

Re: interceptor and AOP

2009-10-20 Thread Paweł Wielgus
Hi Frans, interceptor is AOP, but when aspectj is crosscutting java code, interceptor is crosscutting action flow (any one who is wiser should correct me here). I use interceptor for authentication, my interceptor (authentication aspect) is catching all requests (before) and is doing authentication

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
, September 24, 2009 12:19 PM >To: Struts Users Mailing List >Subject: Re: Interceptor IOC with Spring > >If you have working examples in the same application, there must be >something different about this instance. > >Could it be the bean name? I've been occasionally baffled

Re: Interceptor IOC with Spring

2009-09-24 Thread Chris Pratt
ilto:thechrispr...@gmail.com] > >Sent: Thursday, September 24, 2009 11:51 AM > >To: Struts Users Mailing List > >Subject: Re: Interceptor IOC with Spring > > > >The only other difference I can see between my (working) example and > >yours > >is that I used

Re: Interceptor IOC with Spring

2009-09-24 Thread Musachy Barroso
p://www.springframework.org/schema/beans/spring-beans-2.0.xsd >> http://www.springframework.org/schema/util >> http://www.springframework.org/schema/util/spring-util-2.0.xsd"; >> default-autowire="byName"> >> >> >-Original Message- >> >Fr

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
Yes, and my other interceptor has my data source injected, and it's setup the same way... >-Original Message- >From: Chris Pratt [mailto:thechrispr...@gmail.com] >Sent: Thursday, September 24, 2009 11:51 AM >To: Struts Users Mailing List >Subject: Re: Interceptor IO

Re: Interceptor IOC with Spring

2009-09-24 Thread Chris Pratt
Original Message- > >From: Chris Pratt [mailto:thechrispr...@gmail.com] > >Sent: Thursday, September 24, 2009 11:29 AM > >To: Struts Users Mailing List > >Subject: Re: Interceptor IOC with Spring > > > >What do you have default-autowire set to in your ap

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
ay, September 24, 2009 11:29 AM >To: Struts Users Mailing List >Subject: Re: Interceptor IOC with Spring > >What do you have default-autowire set to in your applicationContext.xml? > (*Chris*) > >On Thu, Sep 24, 2009 at 8:08 AM, Mike Baranski < >list-subscripti...@secm

Re: Interceptor IOC with Spring

2009-09-24 Thread Chris Pratt
e and post it if I'm > >still stuck... > > > >>-Original Message- > >>From: Musachy Barroso [mailto:musa...@gmail.com] > >>Sent: Wednesday, September 23, 2009 1:59 PM > >>To: Struts Users Mailing List > >>Subject: Re: Interceptor IOC

RE: Interceptor IOC with Spring

2009-09-24 Thread Mike Baranski
t;To: 'Struts Users Mailing List' >Subject: RE: Interceptor IOC with Spring > >Doh! Sorry for the goose chase, I'll review my code and post it if I'm >still stuck... > >>-Original Message- >>From: Musachy Barroso [mailto:musa...@gmail.com] &g

Re: Interceptor IOC with Spring

2009-09-23 Thread Wes Wannemacher
Martin, Good find, but I am not sure if I understand how that relates to the OP question or musachy's answer nevermind i think you are confused which interceptors we are dealing with if you take a closer look at the original poster's question you'll see that this thread is about struts intercep

RE: Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
Doh! Sorry for the goose chase, I'll review my code and post it if I'm still stuck... >-Original Message- >From: Musachy Barroso [mailto:musa...@gmail.com] >Sent: Wednesday, September 23, 2009 1:59 PM >To: Struts Users Mailing List >Subject: Re: Interceptor IOC w

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
Meh, it all works. Autorired with/without annotations and @Resource also works (in interceptors). @OP, something is wrong in your configuration, show us the code :) musachy On Wed, Sep 23, 2009 at 10:51 AM, Musachy Barroso wrote: > Chris, if autowiring works then using @Autowire with @Qualifier

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
Chris, if autowiring works then using @Autowire with @Qualifier (equivalent to @Resource) should also work, I have to try that. musachy On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt wrote: > In my struts.xml I have: > >   > > And at the top of my applicationContext.xml I have: > > > > And my Int

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Wed, 23 Sep 2009 09:23:44 -0700 >> Subject: Re: Inte

RE: Interceptor IOC with Spring

2009-09-23 Thread Mike Baranski
OK, thanks, is there a JIRA for this? I'll be happy to request it as an enhancement... >-Original Message- >From: Musachy Barroso [mailto:musa...@gmail.com] >Sent: Wednesday, September 23, 2009 11:23 AM >To: Struts Users Mailing List >Subject: Re: Interce

RE: Interceptor IOC with Spring

2009-09-23 Thread Martin Gainty
enu fourni. > Date: Wed, 23 Sep 2009 09:23:44 -0700 > Subject: Re: Interceptor IOC with Spring > From: musa...@gmail.com > To: user@struts.apache.org > > that makes sense, I use @Resource(name = "mybean") on my setter > methods, so I guess it is just the annotat

Re: Interceptor IOC with Spring

2009-09-23 Thread Musachy Barroso
that makes sense, I use @Resource(name = "mybean") on my setter methods, so I guess it is just the annotations the ones that do not work. musachy On Wed, Sep 23, 2009 at 9:18 AM, Chris Pratt wrote: > In my struts.xml I have: > >   > > And at the top of my applicationContext.xml I have: > > > >

  1   2   >