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 > request.getAttribut

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 --> action3 --> jsp2 > > So i

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

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 of

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 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
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 wrote: > This was already addressed on SO: >

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

2013-03-02 Thread Mohit Gupta
oops i missed ur's todays answer on so. Thanx. Its clear now On Sat, Mar 2, 2013 at 3:01 PM, Ken McWilliams wrote: > This was already addressed on SO: > > http://stackoverflow.com/questions/15159827/not-setting-instance-member-value-in-destination-action-using-action-chaining

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

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

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

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

2012-08-07 Thread Martin Gainty
zo.bernacchi...@gmail.com > To: user@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

Using action-chaining as alias (URI-rewrite)

2012-08-07 Thread fustaki
) -- View this message in context: http://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: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Chris Pratt
e > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Dave Newton > Date: Fri, 24 Dec 2010 12:57:53 > To: Struts Users Mailing List; > Subject: Re: How to avoid PreResultListener called twice in action chaining > > Save cookies outside the requ

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" 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 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, wrote: How can I do that when I chain actions?. I mean, the second action is chained after the first one, but ther

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread jlmagc
-Original Message- From: Dave Newton Date: Fri, 24 Dec 2010 12:57:53 To: Struts Users Mailing List; Subject: Re: How to avoid PreResultListener called twice in action chaining Save cookies outside the request then, and only add the cookie at the last minute. Dave On Dec 24, 2010 8:49 AM

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread Dave Newton
the last action, not the first one. > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Dave Newton > Date: Fri, 24 Dec 2010 07:47:59 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: Re: How to avoid PreResu

Re: How to avoid PreResultListener called twice in action chaining

2010-12-24 Thread jlmagc
4 Dec 2010 07:47:59 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" 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 L MARTINEZ-AVIAL wrote: > Hello al

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 wrote: > Hello all, > I've developed an interceptor to add cookies to the response. It works as > follows: > [..] >public String intercept(ActionInvocation invocation) throws Exception { >invoc

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 beforeResult(Actio

Re: Convention Plugin - Action Chaining

2009-12-11 Thread Musachy Barroso
p 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---A

Re: Convention Plugin - Action Chaining

2009-12-11 Thread RogerV
esult is an instance 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/Co

Re: Convention Plugin - Action Chaining

2009-12-10 Thread Musachy Barroso
If they are in the same package that should work, all I can advise is to put a breakpoint in ConventionUnknownHandler, line 301 and see what is going on. musachy On Thu, Dec 10, 2009 at 7:10 AM, RogerV wrote: > > I'm trying to get action chaining to work as described in the section

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

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

Re: Issue in Action Chaining

2009-04-21 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 10

Re: Issue in Action Chaining

2009-04-21 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 wrote: > I'm not sure if this applies to the chain result, but you could give > it a shot: > http://strut

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? Tha

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 wrote: > Hi All, > I have a Action class > > class BaseAction extends ActionSu

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 =

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 E

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 a

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 wrote: > 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 n

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; publi

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
;> only works when no result is found. > >> > >> musahcy > >> > >> On Tue, Mar 10, 2009 at 12:12 PM, Musachy Barroso > >> wrote: > >> > Yes, you can chain actions if they are in the same package: > >&

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
lt is found. >> >> musahcy >> >> On Tue, Mar 10, 2009 at 12:12 PM, Musachy Barroso >> wrote: >> > Yes, you can chain actions if they are in the same package: >> > >> > >> http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Chaining &

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Edward Song
; wrote: > > Yes, you can chain actions if they are in the same package: > > > > > http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-Chaining > > > > musachy > > > > On Tue, Mar 10, 2009 at 11:52 AM, Edward Song > > wrote: > >>

Re: Convention Plugin and Action Chaining

2009-03-10 Thread Musachy Barroso
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 Musachy Barroso
> 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 SaveActi

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: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-30 Thread Becky . L . O'Sullivan
PM cc Subject Please respond to Re: [S2] possible bug in 2.1.6 w/ "Struts Users

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

2009-01-30 Thread Becky . L . O'Sullivan
1.6 w/ "Struts Users action chaining Ma

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

2009-01-29 Thread Musachy Barroso
; PM cc > > Subject > Please respond to Re: [S2] possible bug in 2.1.6 w/ > "Struts Users action chaining > Mailing List" >

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

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

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

2009-01-29 Thread Becky . L . O'Sullivan
"Struts Users action chaining

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

2009-01-29 Thread Musachy Barroso
Struts Users Mailing List >> 01/28/2009 11:43 >> AM cc >> >> Subject >> Ple

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" >

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 Mailing

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

2009-01-28 Thread Musachy Barroso
This is the first report I hear, open a jira ticket and describe a test case to replicate the problem. musachy On Wed, Jan 28, 2009 at 12:03 PM, wrote: > Hadn't heard back from anyone about this. I'll go ahead and file a bug > report. > No one is using action chaining wit

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

[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

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

2008-09-18 Thread Becky . L . O'Sullivan
any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Subject: RE: [S2]

RE: [S2] Action chaining and validation problem

2008-09-17 Thread Becky . L . O'Sullivan
09/17/2008 03:55 PM cc Subject Please respond to

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 perfo

RE: [S2] Action chaining and validation problem

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

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 encounter

RE: [S2] Action chaining and validation problem

2008-09-17 Thread Martin Gainty
ontained 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 going into a lot of detail, suffice to say our application be

[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 acti

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="produc

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 --

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 > > > > > testA > display > > I'd suspect that validation errors are being chained to

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

2008-05-05 Thread egetchell
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 testA display -- View this message in context: http://www.nabble.com/Struts-2%3A-Action-chaining-behaving-differently-when

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 a

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 ResiSelection the target action is in another xml file that is imported before the "struts-ordini.xml". i can't understand why the chai

Fwd: Re: Having query on action chaining

2007-11-21 Thread Dave Newton
--- vijay vijay <[EMAIL PROTECTED]> wrote: > i have seen the page from here "" > struts-2.0.11\docs\docs\action-chaining.html"". > there i could not get much > info.i am looking more.if u have info with u u can > help me.any sample > examples and any working examples are also welcome I still don'

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 <[EM

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=en&q=struts+action+chaining I don't mean to be rude, but that's the best we can

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, > >

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/Havi

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 v

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, e

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 t

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 th

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: 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
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 Actio

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 param

Re: Manually obtain previous action parameters after action "chaining"?

2007-10-11 Thread Laurie Harper
Igor Vlasov wrote: Copying of properties with ChainingInterceptor working GOOD. OK, good that something is working well. What's not clear is what *isn't* working... 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

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 process

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 th

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 "

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: > two > > > I can use ChainingInterceptor to copy properties of "one" action to "two" > action. > > I get behaviour

[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: two 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 method for each property). Ca

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 a

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-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 m

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

2007-05-03 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 *-va

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 method1,method2 Martin--

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

2007-05-03 Thread Martin Gainty
;Struts Users Mailing List" 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 validation would be doing anything at all unless somehow the

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 fi

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 interfa

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: [...] 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: > [...] 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
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 ... .Members .MembersInvite

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 ... .Members .MembersInvite .disabled membe

[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 ... .Members .MembersInvite .disabled members when i execute the '

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 Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tarek, Tarek Nabil wrote: > 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

  1   2   >