Re: Value not persisting in domain object

2013-09-14 Thread Srineel Mazumdar
, Martin Gainty mgai...@hotmail.com wrote: session.invalidate() http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html Martin Date: Thu, 12 Sep 2013 16:58:45 -0400 Subject: Re: Value not persisting in domain object From: smaz19...@gmail.com To: user@struts.apache.org

Re: Value not persisting in domain object

2013-09-14 Thread jlmagc
: Re: Value not persisting in domain object Hi Paul, As per Oracle : *invalidatehttp://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html#invalidate() *() Invalidates this session then unbinds any objects bound to it. My target is to remove only the cart object. Thanks

RE: Value not persisting in domain object

2013-09-14 Thread Martin Gainty
: Re: Value not persisting in domain object From: smaz19...@gmail.com To: user@struts.apache.org Hi Umesh, Paul and Martin, Thanks a lot for you help. Finally using session aware I could save and retrieve the shopping cart across pages. PFB the code : To save : Use

RE: Value not persisting in domain object

2013-09-13 Thread Martin Gainty
session.invalidate() http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSession.html Martin Date: Thu, 12 Sep 2013 16:58:45 -0400 Subject: Re: Value not persisting in domain object From: smaz19...@gmail.com To: user@struts.apache.org Hi Umesh, Paul and Martin, Thanks a lot

Re: Value not persisting in domain object

2013-09-12 Thread Srineel Mazumdar
manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 2 Sep 2013 20:15:30 -0400 Subject: Re: Value not persisting in domain object From: smaz19...@gmail.com To: user@struts.apache.org Hi Umesh and Paul, I have attached the code. Cart.java is my domain

RE: Value not persisting in domain object

2013-09-04 Thread Martin Gainty
pour le contenu fourni. Date: Mon, 2 Sep 2013 20:15:30 -0400 Subject: Re: Value not persisting in domain object From: smaz19...@gmail.com To: user@struts.apache.org Hi Umesh and Paul, I have attached the code. Cart.java is my domain class where itemlist will have all the items added in the cart

Re: Value not persisting in domain object

2013-09-02 Thread Srineel Mazumdar
Hi Umesh and Paul, I have attached the code. Cart.java is my domain class where itemlist will have all the items added in the cart. AddItemToCartAction will add to itemList and UpdateCartQuantitiesAction will fetch it from itemList. I agree to what Paul ..but can you suggest a workaround?? This

Re: Value not persisting in domain object

2013-09-01 Thread Srineel Mazumdar
Hi All, Can anyone please help ? Thanks.. On Fri, Aug 30, 2013 at 10:23 PM, Srineel Mazumdar smaz19...@gmail.comwrote: Yes.. the same collection. On Wed, Aug 28, 2013 at 6:55 PM, Paul Benedict pbened...@apache.orgwrote: Are you retrieving the same collection? On Wed, Aug 28, 2013 at

Re: Value not persisting in domain object

2013-09-01 Thread umeshawasthi
Users Mailing List user@struts.apache.org Subject: Re: Value not persisting in domain object Hi All, Can anyone please help ? Thanks.. On Fri, Aug 30, 2013 at 10:23 PM, Srineel Mazumdar smaz19...@gmail.comwrote: Yes.. the same collection. On Wed, Aug 28, 2013 at 6:55 PM, Paul Benedict pbened

Re: Value not persisting in domain object

2013-09-01 Thread Paul Benedict
Every Action class is instantiated per request. If you're updating a collection in one action, it will, of course, not be around in the next collection. It sounds like you need to stuff your shopping cart into the session. On Sun, Sep 1, 2013 at 8:39 PM, Srineel Mazumdar

Re: Value not persisting in domain object

2013-08-30 Thread Srineel Mazumdar
Yes.. the same collection. On Wed, Aug 28, 2013 at 6:55 PM, Paul Benedict pbened...@apache.org wrote: Are you retrieving the same collection? On Wed, Aug 28, 2013 at 8:22 AM, Srineel Mazumdar smaz19...@gmail.com wrote: Hi, I am creating a shopping cart application in Struts 2. I am

Value not persisting in domain object

2013-08-28 Thread Srineel Mazumdar
Hi, I am creating a shopping cart application in Struts 2. I am updating a list in Cart domain object when the user selects some items in shopping list using checkboxes and clicks Next. In the CheckOut page those items would be shown. But in my case it shows empty list. Upon debugging, I find

Re: Value not persisting in domain object

2013-08-28 Thread Paul Benedict
Are you retrieving the same collection? On Wed, Aug 28, 2013 at 8:22 AM, Srineel Mazumdar smaz19...@gmail.comwrote: Hi, I am creating a shopping cart application in Struts 2. I am updating a list in Cart domain object when the user selects some items in shopping list using checkboxes and