This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Clear arraylist data in jsp using Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Clear arraylist data in jsp using Ajax" Watch "Clear arraylist data in jsp using Ajax" New topic

Clear arraylist data in jsp using Ajax

Ganeshkumar cheekati
Ranch Hand

Joined: Oct 13, 2008
Posts: 362
Hi all
i have three dropdowns like area , district and location and go button in my jsp page..i have used ajax in order to get values in to these dropdowns like...

we will get data only if we click on Go button based on the selection by area/district/location wise....

assume that i click on Go button by selecting one area and i got records

now i am changing area i should click on Go buttion to get the records for that area...

Between these two action Change Area <-----------------------------> Click on Go its showing previous data which i got for old how to clear that data?

i am getting that data in the form of list(lstData) from java action...

how to clear the java arraylist data from ajax code?

SCJP5 and SCWCD1.5
Think Twice Act Wise...
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Forget the "from ajax code" for a moment and think about how you would clear an ArrayList in Java.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: Clear arraylist data in jsp using Ajax
It's not a secret anymore!