0

I am trying to pass an arraylist that will be populated in method A of Class X and tehn I want to use teh same arraylist in method B of the same class. But since I am using DWR to access my java classes from JavaScripts, every time I am calling a method it is instantiates the class again and I loose the data inside the Arraylist in the process. I am wondering if there is a work around or a formal way of passing the array list. Thanks!

laitha0
  • 4,148
  • 11
  • 33
  • 49
  • 1
    I am not aware of DWR but you can make your arraylist as static for no initializing for every instance – Siva Jun 25 '13 at 14:12
  • This worked, I am not sure about the consequences of doing this. Thanks though – laitha0 Jun 25 '13 at 14:14

0 Answers0