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
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
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
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
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,
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:
>
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
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
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
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
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
)
--
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.
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
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
>
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
-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
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
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
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
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
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
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
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
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
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 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
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
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
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
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 =
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
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
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
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
;> 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:
> >&
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
&
; 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:
> >>
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)
>&
> 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
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
PM cc
Subject
Please respond to Re: [S2] possible bug in 2.1.6 w/
"Struts Users
1.6 w/
"Struts Users action chaining
Ma
; PM cc
>
> Subject
> Please respond to Re: [S2] possible bug in 2.1.6 w/
> "Struts Users action chaining
> Mailing List"
>
cc
Subject
Please respond to Re: [S2] possible bug in 2.1.6 w/
"Struts Users action chaining
Ma
"Struts Users action chaining
Struts Users Mailing List
>> 01/28/2009 11:43
>> AM cc
>>
>> Subject
>> Ple
cc
>
> Subject
> Please respond to Re: [S2] possible bug in 2.1.6 w/
> "Struts Users action chaining
> Mailing List"
>
Subject
Please respond to Re: [S2] possible bug in 2.1.6 w/
"Struts Users action chaining
Mailing
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
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
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
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]
09/17/2008 03:55
PM cc
Subject
Please respond to
.
> 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
cc
Subject
Please respond to RE: [S2] Action chaining and
"Struts Users validation problem
--- 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
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
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
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
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
--
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
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
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
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
--- 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'
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
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
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,
> >
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
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 v
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
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
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
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
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".
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
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
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
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
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
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 "
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
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
--- 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
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
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
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
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--
;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
--- 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
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
--- 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:
[...] 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:
> [...] 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
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
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
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 '
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
-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 - 100 of 142 matches
Mail list logo