what is the best way to pass around an object in many jsp pages
hi, thanks for reading
just like what is stated above, what would be the best way to pass around an object between jsp pages. specifically, that object would be an ArrayList. it should hold some information that needs to be retrieved over time by a couple of jsp pages.
one way our instructor told us is to put the object in the session object, like
but is it possible to have that array list object be declared in a separate java file and have the arraylist object declared as static? would that be a possible way to pass around an object?
session.setAttribute(key, 'arraylist object');
any suggestions would be appreciated.