I have an arraylist declared in a scriplet in a jsp page. how can i access the arraylist in a servlet which it redirects.
it something looks like this
Arraylist<String> am = new Arraylist<String>();
Arraylist<integer> pm = new Arraylist<integer>();
How can I access this arraylist in a servlet. How should it be declared in jsp and in servlet. do i need to do any casting.