Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clear arraylist data in jsp using Ajax

 
Ganeshkumar cheekati
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget the "from ajax code" for a moment and think about how you would clear an ArrayList in Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic