aspose file tools*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
Author

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 area..so 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: 15299
    
    6

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: http://aspose.com/file-tools
 
subject: Clear arraylist data in jsp using Ajax