Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I have one Shopping cart application, i that i have
selected some items, while clicking submit button by
mistake i have clicked twice or trice, that time items are
selected twice or trice. Actually i want only one copy of
items but its selected twice or trice. So how can we avoid
this problem?

Answers were Sorted based on User's Feedback



I have one Shopping cart application, i that i have selected some items, while clicking submit but..

Answer / veera

If this question in core (jave Collection): if you are
using list,it will take the duplicate values. so pass
through this list into set it will remove the duplicate
values.

if this question in J2EE servlets: use post method, it it
is not idempotent. once you add item to cart, it will give
the acknowledge before changing in server.

Is This Answer Correct ?    12 Yes 2 No

I have one Shopping cart application, i that i have selected some items, while clicking submit but..

Answer / balagangadhar

Using token mechanism in struts we can duplicate requests in
web applications.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More Core Java Interview Questions

Can we declare the static variables and methods in an abstract class?

0 Answers  


When object is created and destroyed?

0 Answers  


what models are available for event handling?

1 Answers  


How to convert String into primitive datatype.

6 Answers  


Explain about main() method in java ?

0 Answers  


What are the important features of Java 11 release?

0 Answers  


Which access specifier can be used with class ?

0 Answers  


What does it mean to be immutable?

0 Answers  


How are this and super used?

7 Answers   IBM,


What is arraylist class in java?

0 Answers  


how session will be expired ?

4 Answers   Satyam,


Can i have abstract class with no abstract methods?

22 Answers   CTS,


Categories