Re: convention plugin struts.xml interceptors

2016-11-05 Thread ronald.a.ander...@gmail.com
> > "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" > > "http://struts.apache.org/dtds/struts-2.3.dtd";> > > > > > > > > > > > > > class="net.codejava.struts.MyCustomInterceptor&

Re: convention plugin struts.xml interceptors

2016-11-05 Thread ronald.a.ander...@gmail.com
ware Foundation//DTD Struts Configuration 2.3//EN" > > > > "http://struts.apache.org/dtds/struts-2.3.dtd";> > > > > > > > > > > > > > > > > > > > > > > > > > > > class="net.codejava.struts.MyCustomInterceptor" /&

Re: convention plugin struts.xml interceptors

2016-11-02 Thread ronald.a.ander...@gmail.com
ware Foundation//DTD Struts Configuration 2.3//EN" > > > > "http://struts.apache.org/dtds/struts-2.3.dtd";> > > > > > > > > > > > > > > > > > > > > > > > > > > > class="net.codejava.struts.MyCustomInterceptor" /&

Re: convention plugin struts.xml interceptors

2016-11-02 Thread ronald.a.ander...@gmail.com
> > "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" > > "http://struts.apache.org/dtds/struts-2.3.dtd";> > > > > > > > > > > > > > class="net.codejava.struts.MyCustomInterceptor&

Re: convention plugin struts.xml interceptors

2016-11-01 Thread Ken McWilliams
//Apache Software Foundation//DTD Struts Configuration 2.3//EN" > > > "http://struts.apache.org/dtds/struts-2.3.dtd";> > > > > > > > > > > > > > > > > > > > > class="net.codejava.struts.MyCustomInterceptor" /> > > >

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
> > "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" > > "http://struts.apache.org/dtds/struts-2.3.dtd";> > > > > > > > > > > > > > class="net.codejava.struts.MyCustomInterceptor&

Re: convention plugin struts.xml interceptors

2016-11-01 Thread Lukasz Lenart
tp://struts.apache.org/dtds/struts-2.3.dtd";> > > > > > > class="net.codejava.struts.MyCustomInterceptor" /> > > > > > > > Do you have more interceptors in your cu

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
nart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > Hi Lakasz Below is the struts.xml and LoginAction (for reference). Using default

Re: convention plugin struts.xml interceptors

2016-11-01 Thread ronald.a.ander...@gmail.com
On 2016-10-30 18:53 (-0400), Martin Gainty wrote: > > > > > From: ronald.a.ander...@gmail.com > Sent: Sunday, October 30, 2016 1:59 PM > To: user@struts.apache.org > Subject: convention plugin struts.xml interceptors > >

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Ronald Andersen
Hi Lakasz Below is the struts.xml and LoginAction (for reference). Using default for package name in struts.xml: http://struts.apache.org/dtds/struts-2.3.dtd";> package net.codejava.struts; import com.opensym

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Ronald Andersen
y wrote: > > > > > From: ronald.a.ander...@gmail.com > Sent: Sunday, October 30, 2016 1:59 PM > To: user@struts.apache.org > Subject: convention plugin struts.xml interceptors > > My actions are working fine by following the convention ru

Re: convention plugin struts.xml interceptors

2016-10-31 Thread Lukasz Lenart
2016-10-30 18:59 GMT+01:00 ronald.a.ander...@gmail.com : > My actions are working fine by following the convention rules - no struts.xml > required; I need to configure a custom interceptor, so struts.xml is > required. As soon as I add the struts.xml, the following exception is > returned: > >

Re: convention plugin struts.xml interceptors

2016-10-30 Thread Martin Gainty
From: ronald.a.ander...@gmail.com Sent: Sunday, October 30, 2016 1:59 PM To: user@struts.apache.org Subject: convention plugin struts.xml interceptors My actions are working fine by following the convention rules - no struts.xml required; I need to configure

convention plugin struts.xml interceptors

2016-10-30 Thread ronald.a.ander...@gmail.com
My actions are working fine by following the convention rules - no struts.xml required; I need to configure a custom interceptor, so struts.xml is required. As soon as I add the struts.xml, the following exception is returned: Oct 30, 2016 1:54:22 PM org.apache.struts2.dispatcher.Dispatcher erro

Re: Struts 2 get custom action anotation in interceptors

2014-06-07 Thread Antonios Gkogkakis
eturn method; } Antonios On 7 June 2014 05:57, Alireza Fattahi wrote: > Thanks! > A complete code sample at: > > > http://stackoverflow.com/questions/24021534/struts-2-get-custom-action-anotation-in-interceptors > > > > ~Regards, > ~~Alireza Fattahi > > &

Re: Struts 2 get custom action anotation in interceptors

2014-06-06 Thread Alireza Fattahi
Thanks! A complete code sample at: http://stackoverflow.com/questions/24021534/struts-2-get-custom-action-anotation-in-interceptors   ~Regards, ~~Alireza Fattahi On Wednesday, 4 June 2014, 12:22, Lukasz Lenart wrote: Take a look on com.opensymphony.xwork2.util.AnnotationUtils 2014-06

Re: Struts 2 get custom action anotation in interceptors

2014-06-04 Thread Lukasz Lenart
Take a look on com.opensymphony.xwork2.util.AnnotationUtils 2014-06-03 19:37 GMT+02:00 Alireza Fattahi : > Consider below action class with three action mappings. Two of them are > annotated with a custom annotation `@AjaxAction` > > public class MyAction extends ActionSupport{ > > @Act

Re: Struts 2 get custom action anotation in interceptors

2014-06-03 Thread Dave Newton
Just get the action and check for the annotation. On Jun 3, 2014 1:41 PM, "Alireza Fattahi" wrote: > Consider below action class with three action mappings. Two of them are > annotated with a custom annotation `@AjaxAction` > > public class MyAction extends ActionSupport{ > > @Action("

Struts 2 get custom action anotation in interceptors

2014-06-03 Thread Alireza Fattahi
Consider below action class with three action mappings. Two of them are annotated with a custom annotation `@AjaxAction`     public class MyAction extends ActionSupport{            @Action("action1")       @AjaxAction  //My custom anotation       public String action1(){           }             

Re: Set parameter for both params interceptors in paramsPrepareParamsStack

2013-10-10 Thread Lukasz Lenart
It should work as you reference the same instance (interceptors are instantiated per stack), maybe it is something else? Maybe try copy paramsPrepareParamsStack and redefine excludeParams? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/10/9 Dmytro Kostiuchenko : > Hi

Fwd: Set parameter for both params interceptors in paramsPrepareParamsStack

2013-10-09 Thread Dmytro Kostiuchenko
Hi all. I'm new to struts2 and may miss something obvious, indeed need someone to help me. I have an application with the following interceptors stack applied by default ...,token AUTOMATIC When in dev mode I see

Re: Session in Interceptors

2011-07-27 Thread Maurizio Cucchiara
Try something like HttpSession session = ServletActionContext.getRequest().getSession(); On 27 July 2011 17:10, Eric Lentz wrote: > In an interceptor I have a need to store a value in the session. I can see > a session map that I find in the invocation's object graph that is > available in the i

Session in Interceptors

2011-07-27 Thread Eric Lentz
In an interceptor I have a need to store a value in the session. I can see a session map that I find in the invocation's object graph that is available in the interceptor, but storing back to the map has no effect. Is there a "Struts 2 way" to get/set the session within an interceptor or do I j

RE: Struts Interceptors

2010-12-10 Thread Biesbrock, Kevin
On Friday, December 10, 2010 2:33 PM, Dave Newton wrote: > if you want to do something before rendered you need to implement PreResultListener. I will keep this in mind. As far as the redirect issue, I just need to rework my actions a bit, I guess. I appreciate your wealth of knowledge, Dave.

Re: Struts Interceptors

2010-12-10 Thread Dave Newton
On Fri, Dec 10, 2010 at 2:23 PM, Biesbrock, Kevin wrote: > Ah. So is the idea that you *could* have logic in an interceptor that > executes after the action by adding logic after invocation.invoke()? > Sure, like closing a Hibernate session, for example. The caveat (to me, at least) is that the

RE: Struts Interceptors

2010-12-10 Thread Biesbrock, Kevin
! Beez r 5347 -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Friday, December 10, 2010 2:15 PM To: Struts Users Mailing List Subject: Re: Struts Interceptors Interceptors don't "execute in reverse order", they're each a "wrapper"

Re: Struts Interceptors

2010-12-10 Thread Dave Newton
Interceptors don't "execute in reverse order", they're each a "wrapper" around the next interceptor's execution, and eventually, the action itself. If the interceptor is firing twice there's been to requests, which could be a result of a redirect. Dave On

Struts Interceptors

2010-12-10 Thread Biesbrock, Kevin
cuted the first time with myObjectId=1. This is where my understanding becomes a little cloudy. I believe after the interceptor is executed initially (and the rest of the interceptor stack is executed), the action is executed, and then the interceptors are executed in reverse order. This is what ap

Token* interceptors

2010-12-09 Thread stanlick
This is being posted separate from my other post for search clarity. The same team that is questioning server vs. client, is asking how these interceptors are better than simply inhibiting input by the client for the duration of the submit. Are these interceptors falling off in popularity? Like

Re: Another stupid question re: Interceptors

2010-11-17 Thread Greg Akins
On Wed, Nov 17, 2010 at 8:14 AM, Li Ying wrote: > I suggest you to do these things in the following way: This is where I think I messed things up. My identifyAction didn't have setters/getters for the fields because the verifyAction captured the results of that input. Consequently, when I redir

Re: Another stupid question re: Interceptors

2010-11-17 Thread Li Ying
I suggest you to do these things in the following way: (1)put 2 method in IdentifyAction. The first [execute] method returns [input], show the input page to user. (2)In the Identify-input.jsp, submit fields to [IdentifyAction] itself, but another method: [verify] (3)when validation fails, the r

Re: Another stupid question re: Interceptors

2010-11-17 Thread Paweł Wielgus
Hi all, then You have to state it: (pseudo code!) @Result(name='input', value='identify-success.jsp') in VerifyAction. But when it comes to action and result configuration best thing to do is: http://poulwiel.blogspot.com/2009/09/config-browser-plugin-in-struts2.html Best greetings, Paweł Wielgus

Re: Another stupid question re: Interceptors

2010-11-16 Thread Greg Akins
Maybe I'm doing something really stupid here. I have two pages / actions (IdentifyAction -> identify-*.jsp -> VerifyAction -> verify-*.jsp) When a user completes the fields on identify-sucess.jsp and submits the form to VerifyAction.. the validate() method on VerifyAction fails. I want the user

Re: Another stupid question re: Interceptors

2010-11-16 Thread Gena Ganebnyi
Why not to name your original page page-input.jsp? On Tue, Nov 16, 2010 at 10:31 PM, Greg Akins wrote: > Does that mean that I can't use the Convention plugin if I want the > Validation Interceptor to behave like I'm expecting? > > It seems like the information I've read so far implies that the

Re: Another stupid question re: Interceptors

2010-11-16 Thread Gena Ganebnyi
When validation fails, intercept returns "INPUT" on behalf of the action. That is why convention plugin takes you to page-input.jsp On Nov 16, 2010 9:06 PM, "Greg Akins" wrote: > I'm trying to get validation working.. should be pretty simple. > > It looks like if my validation fails Struts should

Another stupid question re: Interceptors

2010-11-16 Thread Greg Akins
I'm trying to get validation working.. should be pretty simple. It looks like if my validation fails Struts should auto-magically take me back to the originating jsp. Instead Struts keeps wanting to find a page-INPUT.jsp to match the INPUT return type. I'm using the convention plugin and using a

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Lukasz Lenart
2010/8/18 Stephen Turner : > I'm looking in struts2-junit-plugin-2.2.1.jar that came as part of > struts2-2.2.1-all.zip and I see only these classes in the org/apache/struts2 > folder: > > StrutsTestCase.class > StrutsTestCase$1.class > StrutsSpringTestCase.class > > What am I missing? This class

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Stephen Turner
On Wed, 18 Aug 2010 16:22:37 -0400, Lukasz Lenart wrote: 2010/8/18 Stephen Turner : Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this class in a jar file. I do see the source

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Lukasz Lenart
2010/8/18 Stephen Turner : > Unit tests for interceptors in Struts 2.2.1 > > In TokenInterceptorTest I see a reference to > org.apache.struts2.TestConfigurationProvider, but I can't find this class in > a jar file. I do see the source code though. > > Which

Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Stephen Turner
Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this class in a jar file. I do see the source code though. Which jar should I be using for TestConfigurationProvider? Thanks,

Re: Interceptors probelms

2010-07-26 Thread Cimballi
The first one is pretty clear : No result defined for action com.inrev.bm.action.IRCampaignMgmtAction and result input You have to check your struts.xml file (or other xml configuration files for Struts), in the declaration of the action IRCampaignMgmtAction and add a result with the name "input".

Interceptors probelms

2010-07-26 Thread Rohit
Hi, I am new to struts2, prior to this I have been using struts1.2, Spring and Hibernate combination. I have just started using Struts2,Spring and Hibernate application, but I seem to be plagued with interceptor exceptions, There are two error which keep happening, all in different scenario

Re: What is the reason for this error? xwork interceptors seem to be misbehaving

2010-02-09 Thread Lukasz Lenart
2010/2/9 Saeed Iqbal : > java.lang.reflect.InvocationTargetException Maybe you are trying access private or protected methods / fields of your action. Regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl -

What is the reason for this error? xwork interceptors seem to be misbehaving

2010-02-09 Thread Saeed Iqbal
java.lang.reflect.InvocationTargetException at com.google.appengine.runtime.Request.process-df292afe47330d6f(Request.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.De

Re: Interceptors and Thread safety

2009-07-08 Thread Jim Kiley
/2.x/docs/writing-interceptors.html says that > interceptors are not thread safe, i wanted a deeper understanding on this. > > Case: > 1. Suppose i have 2 action tags each having an interceptor (I) referenced > in > it > 2. 2 action tags with interceptors referenced *twice in eac

Interceptors and Thread safety

2009-07-08 Thread ravi_eze
hi, http://struts.apache.org/2.x/docs/writing-interceptors.html says that interceptors are not thread safe, i wanted a deeper understanding on this. Case: 1. Suppose i have 2 action tags each having an interceptor (I) referenced in it 2. 2 action tags with interceptors referenced *twice in each

RE: I have removed struts-default.xml so why do I get it's Interceptors stack??

2009-05-18 Thread David Rocks
: Re: I have removed struts-default.xml so why do I get it's > Interceptors stack?? > > David Rocks wrote: > > But i still get all 18 of the defaultStack interceptors being called > > even though I have created my own stack and called > > in the struts.xml for the

Re: I have removed struts-default.xml so why do I get it's Interceptors stack??

2009-05-17 Thread Dave Newton
David Rocks wrote: But i still get all 18 of the defaultStack interceptors being called even though I have created my own stack and called in the struts.xml for the package, also extends="" is set for the package. My own stack gets ignored. Is there something I am doing wrong? M

I have removed struts-default.xml so why do I get it's Interceptors stack??

2009-05-17 Thread David Rocks
Hi, I wanted to cut down to the minumim interceptors so I removed my references to struts-default, by setting struts.configuration.files invarious places, documentation confilcts quite a bit in struts.xml struts.configuration.files=struts.xml in struts.properties and even tried

interceptors does not work

2009-02-10 Thread Gianluca Musella
This is the interceptor declaration in my struts.xml: org.almayer.web.AlmayerModel session

Re: Injecting in Interceptors (Struts2ejb3)

2009-01-21 Thread Andras Balogh
Envoyé : mardi 20 janvier 2009 22:10 À : Struts Users Mailing List Objet : Re: Injecting in Interceptors 2009/1/20 Ignacio de Córdoba : Anybody has an idea on how can I get info about ServletContext in the init() method of an interceptor? I'd like to lookup EJBs there and not lookup th

RE: Injecting in Interceptors (Struts2ejb3)

2009-01-21 Thread Fernandes Celinio SGCF
z.len...@googlemail.com] Envoyé : mardi 20 janvier 2009 22:10 À : Struts Users Mailing List Objet : Re: Injecting in Interceptors 2009/1/20 Ignacio de Córdoba : > Anybody has an idea on how can I get info about ServletContext in the init() > method of an interceptor? I'd like to lookup EJBs there and

Re: Injecting in Interceptors

2009-01-20 Thread Ignacio de Córdoba
p/struts2ejb3/ > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >

Re: Injecting in Interceptors

2009-01-20 Thread Lukasz Lenart
2009/1/20 Ignacio de Córdoba : > Anybody has an idea on how can I get info about ServletContext in the init() > method of an interceptor? I'd like to lookup EJBs there and not lookup them > for every request (I know I can get the info I need from ActionInvocation > object that every intercept() get

Re: Injecting in Interceptors

2009-01-20 Thread Ignacio de Córdoba
on't need to get JNDI resources on every request--use the lazy > initialization "pattern" and only get it the first time. Since > interceptors aren't re-instantiated this should work fine. > > Dave > > >

Re: Injecting in Interceptors

2009-01-20 Thread Dave Newton
ation "pattern" and only get it the first time. Since interceptors aren't re-instantiated this should work fine. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comm

Re: Injecting in Interceptors

2009-01-20 Thread Musachy Barroso
t() > method of the interceptor. > > Probably this is due to the way it gets the ServletContext. Probably it > first gets the request or the session, and uses current thread for that. As > in the init() method there is no Action (remember Interceptors are not > binded to an action o

Re: Injecting in Interceptors

2009-01-20 Thread Ignacio de Córdoba
uses current thread for that. As in the init() method there is no Action (remember Interceptors are not binded to an action or request, but instanciated only once at the web application deployment) there is no request/response/session, and so I returns "null". No ServletContext. :-( Any o

Re: Injecting in Interceptors

2009-01-20 Thread Musachy Barroso
x27;m using Struts 2.1 > > Thanks for any ideas, > Ignacio > -- > View this message in context: > http://www.nabble.com/Injecting-in-Interceptors-tp21570523p21570523.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > -

Injecting in Interceptors

2009-01-20 Thread Ignacio de Córdoba
nfo I need from ActionInvocation object that every intercept() gets) I'm using Struts 2.1 Thanks for any ideas, Ignacio -- View this message in context: http://www.nabble.com/Injecting-in-Interceptors-tp21570523p21570523.html Sent from the Struts - User mailing list archive at

Re: Interceptors Doubt

2008-08-13 Thread Gabriel Belingueres
You may need to perform your post-processing inside a PreResultListener [1], that is, just before the result is executed. [1] http://struts.apache.org/2.1.2/docs/preresultlistener.html 2008/8/13, Raghunath <[EMAIL PROTECTED]>: > > Hi > I'm working on struts2 interceptors, wh

Interceptors Doubt

2008-08-13 Thread Raghunath
Hi I'm working on struts2 interceptors, which inherits WebWork. My requirement at one interceptor: ->request--->Bread Interceptor : before invocation.invoke() ->Action <--response<---Bread Interceptor : after invocation.invoke() <

Re: Adding interceptors through annotations

2008-06-16 Thread Ramon
Thanks for the idea, I'm going to try it now ;) 2008/6/16 Gamble, Wesley (WG10) <[EMAIL PROTECTED]>: > Dave is correct, you can configure your interceptors with XML and then > define @ParentPackage in your annotations to point to the name of your > Struts package. >

RE: Adding interceptors through annotations

2008-06-16 Thread Gamble, Wesley (WG10)
Dave is correct, you can configure your interceptors with XML and then define @ParentPackage in your annotations to point to the name of your Struts package. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Sunday, June 15, 2008 1:23 PM To: Struts Users Mailing List

Re: Adding interceptors through annotations

2008-06-15 Thread Dave Newton
You don't, but this functionality may have been added to S2.1 (don't quote me on that; I'm woefully behind, but I know it has been discussed.) One typical solution is to define a package's interceptors via XML then use the @ParentPackage annotation to configure your action

Re: Adding interceptors through annotations

2008-06-15 Thread Ramon
Uff I wrote it so badly, Summary: Does anyone know how to add interceptors to an Action defined with annotations (without definitiion in an xml file)??? 2008/6/15 Ramon <[EMAIL PROTECTED]>: > Hi, > > I'm starting with a little project to test new features in struts

Adding interceptors through annotations

2008-06-15 Thread Ramon
Hi, I'm starting with a little project to test new features in struts2. I'm trying both ways (xml configuration and annotations) but I don't know how to define interceptors for an action which is defined with interceptors. for a example my action looks like this: @Results({

jsp renders before interceptors are finished

2008-05-25 Thread tekman
Hi all! I am using a custom interceptor to capture old and new value for an attribute in my page. This interceptors doBefore method is called before the params interceptor is called. The doAfter method is called after the action and the other interceptors are finished. This new and old values is

Re: interceptors

2008-05-14 Thread Laurie Harper
krishna chary wrote: when I use intercepters in Struts.xml in Struts2 application for validation,I got an I'm not sure what that means. An example of your configuration would have been helpful. Exception starting filter struts Unable to find interceptor class referenced by ref-name staticP

interceptors

2008-05-14 Thread krishna chary
when I use intercepters in Struts.xml in Struts2 application for validation,I got an Exception starting filter struts Unable to find interceptor class referenced by ref-name staticParams - interceptor-ref - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/CAMPUZZ/WEB-I

Re: Struts2 Portlet with custom interceptors

2008-04-16 Thread Parker Grimes
uration files. > > [1] - > http://struts.apache.org/2.x/docs/interceptors.html#Interceptors-OrderofInterceptorExecution > > Nils-H > > On Wed, Apr 16, 2008 at 9:46 PM, Parker Grimes <[EMAIL PROTECTED]> wrote: > > My interceptor is being called, but it appears that > > com

Re: Struts2 Portlet with custom interceptors

2008-04-16 Thread Nils-Helge Garli Hegvik
cs/interceptors.html#Interceptors-OrderofInterceptorExecution Nils-H On Wed, Apr 16, 2008 at 9:46 PM, Parker Grimes <[EMAIL PROTECTED]> wrote: > My interceptor is being called, but it appears that > com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor is still > being ca

Re: Struts2 Portlet with custom interceptors

2008-04-16 Thread Parker Grimes
My interceptor is being called, but it appears that com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor is still being called before my interceptor, despite having my interceptor declared first in the stack. As you can tell my interceptor is handed the "error" result rather than catchin

Re: Struts2 Portlet with custom interceptors

2008-04-16 Thread Nils-Helge Garli Hegvik
I did some testing locally, and it looks to me like exceptions should be propagated properly. Are you sure that the exception is not handled somewhere else? From your logs, it appears that "error" is returned somewhere along the chain. Nils-H On Wed, Apr 16, 2008 at 12:46 AM, Parker Grimes <[EMAI

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-15 Thread Randy Burgess
ch using either annotations or XML. Randy > From: Martin Gainty <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 15 Apr 2008 17:16:03 -0400 > To: Struts Users Mailing List > Subject: Re: [S2] Spring: Interceptors, prototype or singleton? > > Ye

Struts2 Portlet with custom interceptors

2008-04-15 Thread Parker Grimes
I am trying to implement a custom exception mapping interceptor to be used in my struts2 portlet. I implemented my own ExceptionMappingInterceptor class that is similar to com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor, the only difference is that I send an email with the exception

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-15 Thread Martin Gainty
uot;Struts Users Mailing List" Sent: Tuesday, April 15, 2008 9:51 AM Subject: Re: [S2] Spring: Interceptors, prototype or singleton? > Just about every single S2 action I have ever created uses Spring to inject > a service object of some sort into the action. I use Spring for > transac

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-15 Thread Randy Burgess
ery action call and my thinking was that Spring had only constructor or setter injection and that interceptors were always singletons, so the injected bean would always be a singleton. Well I just found in Spring 2.5 they have lookup method injection which can be used to create a new instance of

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Don Brown
That is correct, but should be highly discouraged. If your interceptor accepted any parameters, multiple configurations would step on each other, resulting in nondeterministic behavior. Interceptors should also be of the 'prototype' scope. Don On Tue, Apr 15, 2008 at 5:55 AM, Ran

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Martin Gainty
Could you provide a scenario where one bean is injected into another? Thanks M- - Original Message - From: "Randy Burgess" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, April 14, 2008 3:55 PM Subject: Re: [S2] Spring: Interceptors, prototyp

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Randy Burgess
. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Don Brown <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List > Date: Tue, 15 Apr 2008 01:12:49 +1000 > To: Struts Users Mailing List > Subject: Re: [S2] Spring: Interceptors, prototype

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Martin Gainty
endency Injection you will need an exact match on name, or class-type or constructor HTH Martin - Original Message - From: "GF" <[EMAIL PROTECTED]> To: "Struts Users ML" Sent: Monday, April 14, 2008 8:51 AM Subject: [S2] Spring: Interceptors, prototype or singleton?

RE: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Brad A Cupit
: Struts Users Mailing List Subject: Re: [S2] Spring: Interceptors, prototype or singleton? To clarify, interceptors aren't technically singletons as each instance in an interceptor stack gets its own interceptor instance. However, for all requests using that stack, the same interceptor will be

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Don Brown
To clarify, interceptors aren't technically singletons as each instance in an interceptor stack gets its own interceptor instance. However, for all requests using that stack, the same interceptor will be used. Therefore, you do need to be careful. For example, most interceptors take param

Re: [S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread Randy Burgess
Interceptors are Singletons according to the documentation. If it were me I would come up with another method besides Spring for changing object properties. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: GF <[EMAIL PROTECTED]> > Reply-To:

[S2] Spring: Interceptors, prototype or singleton?

2008-04-14 Thread GF
In a guide I found on the web, the interceptor was defined as singleton in the Spring's ApplicationContext. If I need to use "changeable" object properties, I need to have it as Prototype, otherwise different requests will result in a object property overwriting. Is there any issues about defining

Re: Again: question to interceptors

2008-04-10 Thread Peter Theissen
Hi all, dear Ralf, thanks a lot for your answer it was really helpful. Honestly, I didnt understand the call-stack-principle behind the interceptors at all. So your hint: "To understand recursion, you must understand recursion" was a good one and also this picture: [1] http://struts.

Re: Again: question to interceptors

2008-04-10 Thread Ralf Fischer
isplayed (list.jsp) is not invoked. > I dont understand why, since the interceptor should > be called as the LAST step as far as I understand the > doc?! Therefore, there should be no influence of > the interceptor at the result at all! Nope. actionInvocation.invoke() calls the next i

Again: question to interceptors

2008-04-10 Thread Peter Theissen
Hello, first of all thanks for all your previous answers. Somehow, I got the interceptor working for the simplest case, but honestly I still dont know exactly why. Maybe it was a caching issue. Now I have some questions: I have the "SimpleInterceptor": >>> public String intercept(ActionInvocati

Re: Zero config and interceptors do not get along?

2008-03-26 Thread Ealden Escañan
On Wed, Mar 26, 2008 at 10:16 PM, Alex Shneyderman <[EMAIL PROTECTED]> wrote: > I have a custom interceptor that I define in the root of my profect > and then I define my custom interceptorStack and define that as > default interceptor stack. > > If any of my actions are running automatically vi

Re: Zero config and interceptors do not get along?

2008-03-26 Thread Dave Newton
I'd try using the @ParentPackage annotation in your actions first; that seems to be the workaround for not having appropriate interceptor annotations. Dave --- Alex Shneyderman <[EMAIL PROTECTED]> wrote: > I have a custom interceptor that I define in the root of my profect > and then I define my

Zero config and interceptors do not get along?

2008-03-26 Thread Alex Shneyderman
I have a custom interceptor that I define in the root of my profect and then I define my custom interceptorStack and define that as default interceptor stack. If any of my actions are running automatically via Zero-config option all works well but interceptor does not trigger. If I specify my acti

Result annotation and interceptors

2008-03-06 Thread meissa . sakho
Hi all, I'm trying to use the result annotation in some of my actions. I've a custom stack of interceptors that are defined in my struts config file. This stack of interceptors must be called by every action(including those that are not in the config file) actions. I've a st

Re: Interceptors with Ajax Actions

2008-02-27 Thread Grish
> To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Interceptors-with-Ajax-Actions-tp15706322p15729034.ht

Re: Interceptors with Ajax Actions

2008-02-27 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: Well... I think it's using s:url "value" attribute instead of "action" one. Isn't it? Ah, I see what you mean. Yes, via s:url, or s:form action="a url", or sx:submit href="a url" (for ajax tags). The tags include code to generate the URL to an action based on th

Re: Interceptors with Ajax Actions

2008-02-27 Thread Pablo Vázquez Blázquez
Well... I think it's using s:url "value" attribute instead of "action" one. Isn't it? Pablo Vázquez Blázquez escribió: Yes, yes, I know, but my doubt is: When calling "DoItNow.do" or "DoItNow.xhtml"? Where in my config do I say that "DoItNow" is having .xhtml extension or .do one? Because, in

Re: Interceptors with Ajax Actions

2008-02-27 Thread Pablo Vázquez Blázquez
Yes, yes, I know, but my doubt is: When calling "DoItNow.do" or "DoItNow.xhtml"? Where in my config do I say that "DoItNow" is having .xhtml extension or .do one? Because, in you do not specify the extension. Thanks. Jeromy Evans escribió: Pablo Vázquez Blázquez wrote: May I have 2 differe

Re: Interceptors with Ajax Actions

2008-02-27 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: May I have 2 different action extensions in the same webapp? Where do I indicate the extension for each action? Now, I have set name="struts.action.extension" value="do"/> in my struts.xml file, so .do is the extension for all actions. Hi Pablo, That's simply a c

Re: Interceptors with Ajax Actions

2008-02-27 Thread Pablo Vázquez Blázquez
May I have 2 different action extensions in the same webapp? Where do I indicate the extension for each action? Now, I have set name="struts.action.extension" value="do"/> in my struts.xml file, so .do is the extension for all actions. Thanks. Jeromy Evans escribió: Pablo Vázquez Blázquez wro

Re: Interceptors with Ajax Actions

2008-02-27 Thread Jeromy Evans
Just a quick thought. Try this but include an empty div in the body. The "undefined" in IE may be because Dojo is inserting an empty string into the DOM using innerHTML. (Dojo extracts the scripts and executes them separate

  1   2   3   >