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(/valu

Re: Struts2 Jquery Grid pagination is not working

2013-03-02 Thread Kaunain Ahmad
Hi, Kindly make sure prevent NullPointerExceptin in data accessing If data may null then control using your pojo On Fri, Mar 1, 2013 at 6:13 PM, Arun Bansal wrote: > Hi > I'm using Struts2 jquery Grid plugin. My problem is > pagination is not working in the grid. I have selected all the require

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
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 > We explained that

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: > > http://stackoverflow.com

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, 2013 at 3:01 PM,

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 A

RE: Struts2 Jquery Grid pagination is not working

2013-03-02 Thread Martin Gainty
There are so many items that can cause this problem Did you create Action class which will handle interactions from mouse and keyboard-input Did you declare the Taglibs to be included did you create the Pojos and assigned the individual Tag Attributes to populate from and update the Pojo attribu

RE: Struts2 Jquery Grid pagination is not working

2013-03-02 Thread Martin Gainty
TO gain an thorough understanding of how Struts Grid Control works please follow this tutorial http://code.google.com/p/struts2-jquery/wiki/GridTag For understanding in-depth architetcure and how to associate DOM attach-points to your TagClasses read the Struts JQuery Grid Showcase tutorial by

Re: Only one Object gets initialized in action class?

2013-03-02 Thread Lukasz Lenart
Struts version? 2013/3/2 Mohit Gupta : > I have DisplayCustomerAction.java which has two instance fields i.e > customerAddress and customerData. Both fields have getter/setter > and nnot initialized by default > > method="displayCustomer" > > > > > > > Now on click of one hyper link

Re: Only one Object gets initialized in action class?

2013-03-02 Thread Mohit Gupta
struts-2.1 On Sat, Mar 2, 2013 at 7:23 PM, Lukasz Lenart wrote: > Struts version? > > 2013/3/2 Mohit Gupta : > > I have DisplayCustomerAction.java which has two instance fields i.e > > customerAddress and customerData. Both fields have getter/setter > > and nnot initialized by default > > > > >

Re: Only one Object gets initialized in action class?

2013-03-02 Thread Lukasz Lenart
I have tested with the latest version and everything is ok. Did you try that way ? Regards -- Ɓukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comma

Re: Only one Object gets initialized in action class?

2013-03-02 Thread Mohit Gupta
Hi Lukasz, First of all i would like to know, if i have below code ,how it is supposed to work Here is my action class i.e DisplayCustomerAction.java which has 3 type of instance variable i.e private CustomerData customerData=null private CustomerAddress customerAddress=null; private ShoppingD