yes why not....
Store the HashMap Object as an attribute under the scope of Request/Session/Application and then navigate to the other page..
Just as an Example check the below code...
first.jsp:
======
<%
HashMap hm = model.getHashMap();
// use it when you are not invalidating the session before we redirect or forward to the next page
session.setAttribute("map",hm);
// could be used until or unless the request object is died example when page is being redirected
//request.setAttribute("map",hm);
--
--
--
%>
second.jsp:
=========
<%
HashMap hm = (HashMap) session.getAttribute("map");
--
--
--
%>
Hope that might help :)
REGARDS,
RaHuL
Just pointing out that request scope only lasts (funnily enough) for one request.
If you want to keep the hashmap alive over multiple JSP pages you need to keep it in session.
Another alternative would be to convert it to string put it into a hiddenfield on the JSP page, and then reconstruct it from string when it comes back as a request parameter. But using the session is easier.