As we know if we want to maintain some fields we use hidden attribute. What if we want to store a list object in hidden. Say i declare
// In the
servlet code
ArrayList myList = new ArrayList();
myList.add("one");
myList.add("two");
myList.add("three");
request.setAttributye("myList", myList);
// In the
jsp page i write
ArrayList myList = (ArrayList) request.getAttribute("myList");
Now how should i maintain myList in hidden fields. Can i do it or is there any other alternative for performin this task.
Thanks and regards