Re: Action chaining not forwarding ModelDriven model properties

2018-03-03 Thread Yasser Zamani
On 2/28/2018 3:47 PM, shahzad.ismail@ wrote: > I've debugged it a bit and able to figure out that, initially, at the start > of action1, request.getParamater("modelprop") is null then I set modelprop in > the action1 method which makes mymodel.modelprop == "something" and >

Re: Action chaining not forwarding ModelDriven model properties

2018-03-01 Thread Lukasz Lenart
Can you share a source code of your actions? 2018-02-28 13:17 GMT+01:00 shahzad.ism...@gmail.com : > Hi, > I'm migrating an app from Struts 1 to Struts 2 (Tomcat v8 and Struts > 2.5.14.1). There is a scenario in which mapping goes like: > jsp1 --> action1 --> action2

Action chaining not forwarding ModelDriven model properties

2018-02-28 Thread shahzad . ismail
Hi, I'm migrating an app from Struts 1 to Struts 2 (Tomcat v8 and Struts 2.5.14.1). There is a scenario in which mapping goes like: jsp1 --> action1 --> action2 --> action3 --> jsp2 So it must be type="chain" for action1 --> action2 and action2 --> action3 as I need to pass ModelDriven model as

Not setting instance member value in destination action using action chaining?

2013-03-02 Thread Mohit Gupta
This is my struts 2 flow where i am using action chaining JSP---Action1---Action2---ResultJsp With action chaining , my understanding is that request is forwarded from action1 to action2.So if i pass some parameter from action1 to action 2 it should be set in new action instance variable(/value

Re: Not setting instance member value in destination action using action chaining?

2013-03-02 Thread Ken McWilliams
This was already addressed on SO: http://stackoverflow.com/questions/15159827/not-setting-instance-member-value-in-destination-action-using-action-chaining We explained that chain was a result and that the chaining interceptor did not process additional parameters and so they would not be included

Re: Not setting instance member value in destination action using action chaining?

2013-03-02 Thread Mohit Gupta
it is generally best to avoid chain if possible. What is unclear? On Sat, Mar 2, 2013 at 1:45 AM, Mohit Gupta motgu...@gmail.com wrote: This is my struts 2 flow where i am using action chaining JSP---Action1---Action2---ResultJsp With action chaining , my understanding is that request

Re: Not setting instance member value in destination action using action chaining?

2013-03-02 Thread Mohit Gupta
Ken one more thing can we use action chaining to forward the request to action which is not struts 2. i know action chaining shoukld be discourged but just exploring the options. On Sat, Mar 2, 2013 at 3:01 PM, Ken McWilliams ken.mcwilli...@gmail.comwrote: This was already addressed on SO

Re: Not setting instance member value in destination action using action chaining?

2013-03-02 Thread Ken McWilliams
Not sure what you mean. On Sat, Mar 2, 2013 at 2:58 AM, Mohit Gupta motgu...@gmail.com wrote: Ken one more thing can we use action chaining to forward the request to action which is not struts 2. i know action chaining shoukld be discourged but just exploring the options. On Sat, Mar 2

Re: Not setting instance member value in destination action using action chaining?

2013-03-02 Thread Mohit Gupta
My guess is Action chaining is meant for forwarding the request to struts 2 actions only ,not to legacy actions. Right? If yes, How can i forward the request to non struts 2 action from struts 2 action using result annotation. My understanding of action chaining after looking the source code

Using action-chaining as alias (URI-rewrite)

2012-08-07 Thread fustaki
://struts.1045723.n5.nabble.com/Using-action-chaining-as-alias-URI-rewrite-tp5710391.html Sent from the Struts - User mailing list archive at Nabble.com.

RE: Using action-chaining as alias (URI-rewrite)

2012-08-07 Thread Martin Gainty
@struts.apache.org Subject: Using action-chaining as alias (URI-rewrite) I'm using chain results to produce a URI alias pattern. here is a dummy example of laptop searcher {1} laptops.ftl to mantain friendly URLs in a spanish-localized domain we want to use the keyword portatiles instead

RE: Using action-chaining as alias (URI-rewrite)

2012-08-07 Thread fustaki
Freemarker 2.3.19. (It comes with Struts 2.3.4) -- View this message in context: http://struts.1045723.n5.nabble.com/Using-action-chaining-as-alias-URI-rewrite-tp5710391p5710393.html Sent from the Struts - User mailing list archive at Nabble.com

How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread JOSE L MARTINEZ-AVIAL
Hello all, I've developed an interceptor to add cookies to the response. It works as follows: [..] public String intercept(ActionInvocation invocation) throws Exception { invocation.addPreResultListener(this); return invocation.invoke(); } public void

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
Check to see if it's already there? On Fri, Dec 24, 2010 at 7:04 AM, JOSE L MARTINEZ-AVIAL jlm...@gmail.comwrote: Hello all, I've developed an interceptor to add cookies to the response. It works as follows: [..] public String intercept(ActionInvocation invocation) throws Exception {

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread jlmagc
...@gmail.com Date: Fri, 24 Dec 2010 07:47:59 To: Struts Users Mailing Listuser@struts.apache.org Reply-To: Struts Users Mailing List user@struts.apache.org Subject: Re: How to avoid PreResultListener called twice in action chaining Check to see if it's already there? On Fri, Dec 24, 2010 at 7:04 AM, JOSE

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
: Re: How to avoid PreResultListener called twice in action chaining Check to see if it's already there? On Fri, Dec 24, 2010 at 7:04 AM, JOSE L MARTINEZ-AVIAL jlm...@gmail.com wrote: Hello all, I've developed an interceptor to add cookies to the response. It works as follows: [..] public

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread jlmagc
-Original Message- From: Dave Newton davelnew...@gmail.com Date: Fri, 24 Dec 2010 12:57:53 To: Struts Users Mailing Listuser@struts.apache.org; jlm...@gmail.com Subject: Re: How to avoid PreResultListener called twice in action chaining Save cookies outside the request then, and only add

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Maurizio Cucchiara
There should be at least a way to check if request live along a chain request, it could be possible by asking for size at stack.getRoot() Maurizio Cucchiara On Dec 24, 2010 7:22 PM, jlm...@gmail.com wrote: How can I do that when I chain actions?. I mean, the second action is chained after the

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
Yet another reason to avoid action chaining, too. On Dec 24, 2010 2:29 PM, Maurizio Cucchiara maurizio.cucchi...@gmail.com wrote: There should be at least a way to check if request live along a chain request, it could be possible by asking for size at stack.getRoot() Maurizio Cucchiara

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Chris Pratt
- From: Dave Newton davelnew...@gmail.com Date: Fri, 24 Dec 2010 12:57:53 To: Struts Users Mailing Listuser@struts.apache.org; jlm...@gmail.com Subject: Re: How to avoid PreResultListener called twice in action chaining Save cookies outside the request then, and only add the cookie

Re: Convention Plugin - Action Chaining

2009-12-11 Thread RogerV
of ServletDispatcherResult with a location attribute of /WEB-INF/content/foo.jsp and resultCode is a string with value bar. The comparison fails and jumps to line 317 returning /WEB-INF/content/foo.jsp Regards -- View this message in context: http://old.nabble.com/Convention-Plugin---Action-Chaining-tp26728788p26741424

Re: Convention Plugin - Action Chaining

2009-12-11 Thread Musachy Barroso
and jumps to line 317 returning /WEB-INF/content/foo.jsp Regards -- View this message in context: http://old.nabble.com/Convention-Plugin---Action-Chaining-tp26728788p26741424.html Sent from the Struts - User mailing list archive at Nabble.com

Convention Plugin - Action Chaining

2009-12-10 Thread RogerV
I'm trying to get action chaining to work as described in the section chaining at http://struts.apache.org/2.1.6/docs/convention-plugin.html. My Foo action and bar actions are listed below. What happens is that when Foo is called, it correctly displays foo.jsp. When foo.jsp is submitted it fills

Re: Issue in Action Chaining

2009-04-22 Thread satyanarayana katta
No it doesn't work. Chain is not accepting any of the parameters strings. Its going to the global error page directly. Rgds, Satya On Tue, Apr 21, 2009 at 10:22 PM, Nils-Helge Garli Hegvik nil...@gmail.comwrote: I'm not sure if this applies to the chain result, but you could give it a shot:

Re: Issue in Action Chaining

2009-04-22 Thread satyanarayana katta
Hi Wesw, I also tried printing the object address and what you said is right!! It is creating a new object. The object address is not same. Is there any other way of passing the data to the chained method? I want to use the redirect as the last option!! Rgds, Satya On Tue, Apr 21, 2009 at

AW: Issue in Action Chaining

2009-04-22 Thread Anastasios Patrikis
Nachricht- Von: satyanarayana katta [mailto:saty.pra...@gmail.com] Gesendet: Mittwoch, 22. April 2009 08:04 An: Struts Users Mailing List; w...@wantii.com Betreff: Re: Issue in Action Chaining Hi Wesw, I also tried printing the object address and what you said is right!! It is creating a new

Issue in Action Chaining

2009-04-21 Thread satyanarayana katta
Hi All, I have a Action class class BaseAction extends ActionSupport { private Sting data; public void getData() { return this.data; } public String setData(String data){ this.data = data; } } class Action extends BaseAction{ public String execute() throws

Re: Issue in Action Chaining

2009-04-21 Thread Wes Wannemacher
On Wednesday 22 April 2009 00:36:36 satyanarayana katta wrote: Hi All, I have a Action class class BaseAction extends ActionSupport { private Sting data; public void getData() { return this.data; } public String setData(String data){ this.data = data;

Re: Issue in Action Chaining

2009-04-21 Thread Nils-Helge Garli Hegvik
I'm not sure if this applies to the chain result, but you could give it a shot: http://struts.apache.org/2.1.6/docs/parameters-in-configuration-results.html Nils-H On Wed, Apr 22, 2009 at 6:36 AM, satyanarayana katta saty.pra...@gmail.com wrote: Hi All, I have a Action class class

Re: Issue in Action Chaining

2009-04-21 Thread satyanarayana katta
Hi Wesw, Thanks for the reply. Yes, I meant to say testChain(). Thanks for that. So, how is the old data being retained. Does it take it from the http request and recreates the new instance? If that is the case, what other options do I have to get the changed data into the chained method?

Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
Hi all, This question concerns the Convention Plugin, specifically in regards to Action Chaining. I am using Struts 2.1.6 I have the following package structure. com.company.web.actions.administrators.GetAction (/administrators/get) com.company.web.actions.administrators.SaveAction

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
in regards to Action Chaining. I am using Struts 2.1.6 I have the following package structure.  com.company.web.actions.administrators.GetAction (/administrators/get)  com.company.web.actions.administrators.SaveAction (/administrators/save) After SaveAction.execute(), I wanted to use

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
Plugin, specifically in regards to Action Chaining. I am using Struts 2.1.6 I have the following package structure.  com.company.web.actions.administrators.GetAction (/administrators/get)  com.company.web.actions.administrators.SaveAction (/administrators/save) After SaveAction.execute

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Chaining musachy On Tue, Mar 10, 2009 at 11:52 AM, Edward Song edward.s...@nuhorizons.com wrote: Hi all, This question concerns the Convention Plugin, specifically in regards to Action Chaining. I am using Struts 2.1.6

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
musachy On Tue, Mar 10, 2009 at 11:52 AM, Edward Song edward.s...@nuhorizons.com wrote: Hi all, This question concerns the Convention Plugin, specifically in regards to Action Chaining. I am using Struts 2.1.6 I have the following package structure

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
, This question concerns the Convention Plugin, specifically in regards to Action Chaining. I am using Struts 2.1.6 I have the following package structure. com.company.web.actions.administrators.GetAction (/administrators/get

RE: Convention Plugin and Action Chaining

2009-03-10 Thread Russo, Joe
I defined the below code and would like to use the iterate functionality witin the jsp. This code does not cause any error, but does not display any data. Any ideas why? package com.cadmus.rpm.domain.custom; import java.io.Serializable; import java.util.Date; import java.util.ArrayList;

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
By convention you should not chain your questions into an existing thread on another topic :) musachy On Tue, Mar 10, 2009 at 2:25 PM, Russo, Joe rus...@cadmus.com wrote: I defined the below code and would like to use the iterate functionality witin the jsp.  This code does not cause any

RE: Convention Plugin and Action Chaining

2009-03-10 Thread Russo, Joe
Sorry about that. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Tuesday, March 10, 2009 2:28 PM To: Struts Users Mailing List Subject: Re: Convention Plugin and Action Chaining By convention you should not chain your questions into an existing thread

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-30 Thread Becky . L . O'Sullivan
Subject Please respond to Re: [S2] possible bug in 2.1.6 w/ Struts Users action chaining Mailing List u...@struts.apac

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-30 Thread Becky . L . O'Sullivan
to Re: [S2] possible bug in 2.1.6 w/ Struts Users action chaining Mailing List u...@struts.apac he.org

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Becky . L . O'Sullivan
Subject Please respond to Re: [S2] possible bug in 2.1.6 w/ Struts Users action chaining

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Musachy Barroso
cc Subject Please respond to Re: [S2] possible bug in 2.1.6 w/ Struts Users action chaining Mailing List u...@struts.apac

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Musachy Barroso
user@struts.apache.org AM cc Subject Please respond to Re: [S2] possible bug in 2.1.6 w/ Struts Users action chaining

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Becky . L . O'Sullivan
Please respond to Re: [S2] possible bug in 2.1.6 w/ Struts Users action chaining Mailing List u...@struts.apac

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-29 Thread Musachy Barroso
Subject Please respond to Re: [S2] possible bug in 2.1.6 w/ Struts Users action chaining Mailing List u...@struts.apac he.org Thanks

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-28 Thread Becky . L . O'Sullivan
Hadn't heard back from anyone about this. I'll go ahead and file a bug report. No one is using action chaining with 2.1.6? Thanks, -B Becky.L.O'Sulliva

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-28 Thread Musachy Barroso
cc Please respond to Subject Struts Users [S2] possible bug in 2.1.6 w/ Mailing List action chaining u

[S2] possible bug in 2.1.6 w/ action chaining

2009-01-27 Thread Becky . L . O'Sullivan
Hi group, We're trying to upgrade from 2.1.2 to 2.1.6 and ran into an issue. We use action chaining because it suits a particular requirement we had for this application. However, after upgrading, we're seeing that the value stack isn't holding on to values set by actions further up in the chain

RE: [S2] solution - Action chaining and validation problem

2008-09-18 Thread Becky . L . O'Sullivan
to RE: [S2] Action chaining and Struts Users validation problem Mailing List [EMAIL PROTECTED] he.org

[S2] Action chaining and validation problem

2008-09-17 Thread Becky . L . O'Sullivan
Without going into a lot of detail, suffice to say our application benefits from action chaning, and we are using it in the documented way. We've begun to go through and add the validation to some actions, but we have run into a snag with validation and action chaining. Whenever one action

RE: [S2] Action chaining and validation problem

2008-09-17 Thread Martin Gainty
to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Subject: [S2] Action chaining and validation problem To: user@struts.apache.org From: Becky.L.O'[EMAIL PROTECTED] Date: Wed, 17 Sep 2008 10:30:06 -0700 Without

RE: [S2] Action chaining and validation problem

2008-09-17 Thread Dave Newton
--- On Wed, 9/17/08, Martin Gainty wrote: check your validators.xml to see if your short-circuit attribute is set to true My understanding is that validation short-circuiting means that additional validations for the same field won't be run as soon as the first validation error is

RE: [S2] Action chaining and validation problem

2008-09-17 Thread Becky . L . O'Sullivan
Subject Please respond to RE: [S2] Action chaining and Struts Users validation problem

RE: [S2] Action chaining and validation problem

2008-09-17 Thread Martin Gainty
. Subject: RE: [S2] Action chaining and validation problem To: user@struts.apache.org From: Becky.L.O'[EMAIL PROTECTED] Date: Wed, 17 Sep 2008 15:32:49 -0700 We actually have no validation XML files (we're setting error fields manually). We're not performing validation using that approach, but we

RE: [S2] Action chaining and validation problem

2008-09-17 Thread Becky . L . O'Sullivan
] Action chaining and Struts Users validation problem Mailing List [EMAIL PROTECTED] he.org

Re: Questions on action chaining and validation in struts2 - please help

2008-06-18 Thread wild_oscar
More than one year later, I have the exact same problem. If the original poster has found a solution, or if anyone else knows how to solve this issue, I'd be very glad! I have tried Action Chaining the result: @Result(name=input,type=ActionChainResult.class,value=product ,params= {method,getOne

Re: Struts 2: Action chaining behaving differently when validations fire

2008-05-06 Thread Paweł Badeński
2008/5/5 egetchell [EMAIL PROTECTED]: I just re-read my post and noticed that the Struts configuration for the testB action somehow got mangled. The correct configuration for TestB is action name=testB class=testB method=submit result name=input type=chain testA display

Re: Struts 2: Action chaining behaving differently when validations fire

2008-05-06 Thread Paweł Badeński
I just came up with another idea. You could also try to move validation up the stack, so it's happening before chain.. It might be tricky tough (as Struts spec states: Sometimes the order of the Interceptors makes a difference.). best regards Pawel

Struts 2: Action chaining behaving differently when validations fire

2008-05-05 Thread egetchell
All, I’m experiencing some interesting behavior when forwarding via action chaining as a result of input validation. In a non-error situation, action chaining works as expected – that is the service method of the chained action is invoked as expected. However, what I am noticing is that when

Re: Struts 2: Action chaining behaving differently when validations fire

2008-05-05 Thread egetchell
: http://www.nabble.com/Struts-2%3A-Action-chaining-behaving-differently-when-validations-fire-tp17065631p17070480.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Action chaining problem

2008-03-27 Thread Enrico Drusiani
hi i've a problem with action chaining. i've defined a xml action in a xml file called struts-ordini.xml with the following result result name=input type=redirect-actionResiSelection/result the target action is in another xml file that is imported before the struts-ordini.xml. i can't

Re: Having query on action chaining

2007-11-21 Thread Omkar Patil
http://struts.apache.org/2.0.11/docs/action-chaining.html vijay vijay wrote: Hi, i am want to work on action chaining can any one give me links for it. vijay -- View this message in context: http://www.nabble.com/Having-query-on-action-chaining-tf4847957

Re: Having query on action chaining

2007-11-21 Thread vijay vijay
thank you, i have seen this iam looking for more links... vijay On 11/21/07, Omkar Patil [EMAIL PROTECTED] wrote: http://struts.apache.org/2.0.11/docs/action-chaining.html vijay vijay wrote: Hi, i am want to work on action chaining can any one

Re: Having query on action chaining

2007-11-21 Thread Alexis Pigeon
Hi vijay, On 21/11/2007, vijay vijay [EMAIL PROTECTED] wrote: thank you, i have seen this iam looking for more links... http://www.google.com/search?hl=enq=struts+action+chaining I don't mean to be rude, but that's the best we can offer if you are not more specific

Re: Having query on action chaining

2007-11-21 Thread vijay vijay
hi *Alexis ,* *i am looking action chaining in struts 2, i have gone through the page which is there in docs and observing the showcase also. but i wanted to be more specific to this point even interseptors can you help me?? * ** On 11/21/07, Alexis Pigeon [EMAIL PROTECTED

Having query on action chaining

2007-11-20 Thread vijay vijay
Hi, i am want to work on action chaining can any one give me links for it. vijay

Re: Manually obtain previous action parameters after action chaining?

2007-11-08 Thread jjgould
There was a good suggestion about using the MessageStoreInterceptor, but I am really trying to avoid using Session-based storage for my application, having been indoctrinated into the RESTful camp at the 2007 Colorado Software Summit :) I just discovered that both actions (the one that gets the

Re: Manually obtain previous action parameters after action chaining?

2007-11-07 Thread Gary Affonso
You can preserve errors and messages from one action to another, across a redirect, with the MessageStoreInterceptor. See here: http://struts.apache.org/2.x/docs/message-store-interceptor.html This lets you avoid chaining which, of course, is usually evil. :-) - Gary jjgould wrote: Ted,

Re: Manually obtain previous action parameters after action chaining?

2007-11-07 Thread Dave Newton
You could try exposing ActionSupport's actionMessages/fieldErrors/etc by putting getters in your first action; I'm not quite sure how the chain interceptor decides how to copy properties though. d. --- jjgould [EMAIL PROTECTED] wrote: Ted, et. al., I am also interested in accessing the

Re: Manually obtain previous action parameters after action chaining?

2007-11-07 Thread jjgould
Ted, et. al., I am also interested in accessing the previous action from the target action of a chain result. But, the reason I want to get to that action is not because of any bean properties, but because I need the action errors, action messages, and field errors that may have been placed

Re: Manually obtain previous action parameters after action chaining?

2007-10-11 Thread Igor Vlasov
1. I have actionOne public class ActionOne extends ActionSupport implements ServletRequestAware{ protected HttpServletRequest request; private SearchParameter searchData=new SearchParameter();//My complex object public String execute() throws Exception{ //fill searchData with

Re: Manually obtain previous action parameters after action chaining?

2007-10-11 Thread Ted Husted
The Action itself is not copied over, the PROPERTIES are copied. If the properties in common are copied forward, then there should be no need to address the prior Action class directly. Any methods that need to be called by more than one Action should be moved to a base support class that the

Re: Manually obtain previous action parameters after action chaining?

2007-10-11 Thread Igor Vlasov
Thank you for the answer. I see that properties are copied. But the property must be in javaBean spec. otherwise subpropirties are not copied. I think that i can get previos Action and manualy get whole property as object. The copy process in ChainInterceptor rely on OGNL and look like magik.

Re: Manually obtain previous action parameters after action chaining?

2007-10-11 Thread Ted Husted
Binding two Action classes together that way sounds like a slippery slope to me. It seems like a better practice to rely on standard JavaBean semantics, and access the values that need to be brought forward through the usual get and set methods. One other thing to try, which you may have started

Re: [S2] Manually obtain previous action parameters after action chaining?

2007-10-10 Thread cilquirm
You can, if you grab the ValueStck and traverse up it till you get to your previous action. Igor Vlasov wrote: I have action one and it calls action two throw: result name=success type=chain two/result I can use ChainingInterceptor to copy properties of one action to two

[S2] Manually obtain previous action parameters after action chaining?

2007-10-10 Thread Igor Vlasov
I have action one and it calls action two throw: result name=success type=chain two/result I can use ChainingInterceptor to copy properties of one action to two action. I get behaviour : one.param-two.param. But the property param must be in javaBeans specification(have setter and getter

Re: [S2] Manually obtain previous action parameters after action chaining?

2007-10-10 Thread Igor Vlasov
I try this in action two.execute(): ValueStack stack=ActionContext.getContext().getValueStack(); CompoundRoot root = stack.getRoot(); List list = new ArrayList(root); This list does not contain my previous action one. It contains only TextProviderObject. Can you write how to grab

Re: Manually obtain previous action parameters after action chaining?

2007-10-10 Thread Ted Husted
The use case for the chain result is that JavaBean properties on ActionTwo that match JavaBean properties on ActionOne are copied forward. This sounds like the same use case that you describe, and it's unclear why it isn't working, or why you would need to do anything manually. The most helpful

Re: Manually obtain previous action parameters after action chaining?

2007-10-10 Thread Igor Vlasov
Copying of properties with ChainingInterceptor working GOOD. I have very complex object as a property to copy and i MUST make every part of it in javaBean specification. For me it is too tedious. Then i want manually copy whole property from actionOne to actionTwo. The second cause is

Re: [s2] problem with action chaining returning input result

2007-05-07 Thread Allen Gilliland
Thanks Laurie, that was what I needed to do. Turns out that my action was setting an action error before doing its chaining and so when validation was triggered on the chained action it was thinking an error had occurred and forcing the input result. So, now all I really need to know is if

Re: [s2] problem with action chaining returning input result

2007-05-07 Thread Dave Newton
--- Allen Gilliland [EMAIL PROTECTED] wrote: So, now all I really need to know is if there is a way that I can just flat out disable all of struts2's validation stuff but still have my actions extend ActionSupport? Create an interceptor stack without the validation stuff. I would also

Re: [s2] problem with action chaining returning input result

2007-05-04 Thread Allen Gilliland
Dave Newton wrote: --- Allen Gilliland [EMAIL PROTECTED] wrote: I can't see any reason why validation would be doing anything at all unless somehow the validation interceptor wants to use one of the methods in my action class for validation when i didn't intend that. So you have no

Re: [s2] problem with action chaining returning input result

2007-05-04 Thread Laurie Harper
As well as validation errors, there could still be conversion errors. You said you don't have any conversions configured but remember that Struts will apply default converters if you have any setters on the action that take non-String arguments (assuming the request includes an attribute that

[s2] problem with action chaining returning input result

2007-05-03 Thread Allen Gilliland
when chaining from one action to another, why is struts2 trying to lookup the input result on action2 before ever executing my action method? i have a simple config, like the examples in the documentation ... action name=members!* method={1}

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Laurie Harper
Allen Gilliland wrote: when chaining from one action to another, why is struts2 trying to lookup the input result on action2 before ever executing my action method? i have a simple config, like the examples in the documentation ... action name=members!* method={1}

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Allen Gilliland
Laurie Harper wrote: Allen Gilliland wrote: when chaining from one action to another, why is struts2 trying to lookup the input result on action2 before ever executing my action method? i have a simple config, like the examples in the documentation ... action name=members!* method={1}

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Dave Newton
--- Allen Gilliland [EMAIL PROTECTED] wrote: [...] i removed all my old validation() methods so i know it's not that. public class Members extends UIAction What does UIAction look like (specifically with regards to interfaces implements and superclasses)? There must be *some* reason

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Allen Gilliland
Dave Newton wrote: --- Allen Gilliland [EMAIL PROTECTED] wrote: [...] i removed all my old validation() methods so i know it's not that. public class Members extends UIAction What does UIAction look like (specifically with regards to interfaces implements and superclasses)? UIAction

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Dave Newton
--- Allen Gilliland [EMAIL PROTECTED] wrote: public abstract class UIAction extends ActionSupport Okay, so now the question is why it thinks there's a validation error on your subclass-we know *why* it's trying to validate (ActionSupport implements the validation interfaces). Are there *any*

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Allen Gilliland
Dave Newton wrote: --- Allen Gilliland [EMAIL PROTECTED] wrote: public abstract class UIAction extends ActionSupport Okay, so now the question is why it thinks there's a validation error on your subclass-we know *why* it's trying to validate (ActionSupport implements the validation

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Dave Newton
--- Allen Gilliland [EMAIL PROTECTED] wrote: I can't see any reason why validation would be doing anything at all unless somehow the validation interceptor wants to use one of the methods in my action class for validation when i didn't intend that. So you have no *-validation.xml files?

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Martin Gainty
. - Original Message - From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, May 03, 2007 9:38 PM Subject: Re: [s2] problem with action chaining returning input result --- Allen Gilliland [EMAIL PROTECTED] wrote: I can't see any reason why

Re: [s2] problem with action chaining returning input result

2007-05-03 Thread Daniel Ruan
Or maybe the @SkipValidation annotation? On 5/3/07, Martin Gainty [EMAIL PROTECTED] wrote: struts-default.xml has the ability to exclude methods as in this example which excludes methods (method1, method2) from validation interceptor-ref name=defaultStack param

Questions on action chaining and validation in struts2 - please help

2007-04-17 Thread aj123
Hi I am trying to use action chaining in struts2 and am stuck. Any help would be really appreciated. Scenario - I have a page that shows a list of records and also has a form to add a new record. When user clicks on add I call addAction and chain it to list action to go back to list page again

RE: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Tarek Nabil
with Struts 1, I think I will try that. Christopher, I really wonder if the Struts you're talking about is the one I've using for years now!! The Struts I know sucks big time when it comes to action chaining. I'm afraid I don't understand how defining two mappings, one with validation turned

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Ted Husted
Action Chaining First, we usually define action chaining as creating a move action by having a copy action forward to a delete action. Simply going from one action to another isn't a classic example of harmful chaining. The key point is whether only one action resolves the business use case

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Michael Jouravlev
will take you directly to the input JSP without performing the setup and your JSP wouldn't work. A solution to that would be to specify the input of the action as the setup action, which means you're doing action chaining and Struts is not good at that (it will reset your form among other things

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Michael Jouravlev
On 11/29/06, Yujun Liang [EMAIL PROTECTED] wrote: To solve the action chaining problem, I wrote a subclass of RequestProcessor. In the subclass, override some templates method. In the last method of process(), I set a flag in request, and I check for this flag in some methods and if the flag

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Hubert Rabago
, Michael Jouravlev [EMAIL PROTECTED] wrote: On 11/29/06, Yujun Liang [EMAIL PROTECTED] wrote: To solve the action chaining problem, I wrote a subclass of RequestProcessor. In the subclass, override some templates method. In the last method of process(), I set a flag in request, and I check

  1   2   >