Hi, I have a requirement of passing a large data such as an arraylist containing hashmaps. I have to pass this data from a jsp to the servlet. One approach for doing this is to store the data in session as an attribute or pass as a request parameter. However i don't want to store this data in the session. Can anybody suggest an alternative approach. Any help will be appreciated.
You can not pass an arraylist of hashmap as request parameter. The only option left to you is either store it in Session or in Request.
But as Satou rightly pointed out we need to understand your exact requirement in order to suggest something.
So if you can post your scenario that would be well and good.
Joined: Sep 26, 2005
Hi, My exact requirement is as follows: 1) I retrieve data from a database and use it for reporting. After getting the data from database, i need to store it as HashMaps in Arraylist to do processing (data in database is not exactly as i want, hence i need to format). 2) Once i get the data i generate a report in jsp. There is a button in the jsp that downloads the report in excel which is done by a servlet. I need to pass the formatted data that is in form of arraylist from my servlet to another servlet.