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
>
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
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
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
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
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
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
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
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
://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.
@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
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
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
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 {
...@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
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
-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
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
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
-
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
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
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
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
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:
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
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
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
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;
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
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?
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
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
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
://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
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
,
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
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;
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
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
Subject
Please respond to Re: [S2] possible bug in 2.1.6 w/
Struts Users action chaining
Mailing List
u...@struts.apac
to Re: [S2] possible bug in 2.1.6 w/
Struts Users action chaining
Mailing List
u...@struts.apac
he.org
Subject
Please respond to Re: [S2] possible bug in 2.1.6 w/
Struts Users action chaining
cc
Subject
Please respond to Re: [S2] possible bug in 2.1.6 w/
Struts Users action chaining
Mailing List
u...@struts.apac
user@struts.apache.org
AM cc
Subject
Please respond to Re: [S2] possible bug in 2.1.6 w/
Struts Users action chaining
Please respond to Re: [S2] possible bug in 2.1.6 w/
Struts Users action chaining
Mailing List
u...@struts.apac
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
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
cc
Please respond to Subject
Struts Users [S2] possible bug in 2.1.6 w/
Mailing List action chaining
u
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
to RE: [S2] Action chaining and
Struts Users validation problem
Mailing List
[EMAIL PROTECTED]
he.org
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
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
--- 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
Subject
Please respond to RE: [S2] Action chaining and
Struts Users validation problem
.
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
] Action chaining and
Struts Users validation problem
Mailing List
[EMAIL PROTECTED]
he.org
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
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
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
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
:
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
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
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
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
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
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
Hi,
i am want to work on action chaining can any one give me links for
it.
vijay
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
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,
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
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
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
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
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.
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
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
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
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
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
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
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
--- 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
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
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
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}
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}
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}
--- 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
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
--- 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*
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
--- 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?
.
- 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
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
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
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
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
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
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
, 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 - 100 of 138 matches
Mail list logo