, 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
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
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
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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo