Re: Add a map to HttpRequest attributes

2011-01-20 Thread Dave Evans
Yes, that's what I've done, I was just thinking that it was a common operation and maybe there was a util built in to the frameworks I'm already using. On Wed, Jan 19, 2011 at 3:16 PM, Alfredo Manuel Osorio Martinez wrote: > What about iterating the map and put each attribute in the HttpRequest.

RE: Add a map to HttpRequest attributes

2011-01-19 Thread Alfredo Manuel Osorio Martinez
What about iterating the map and put each attribute in the HttpRequest. Something like this: Map myMap = getMyMap(); Set> entrySet = myMap.entrySet(); for (Map.Entry entry : myMap.entrySet()) { request.setAttribute(entry.getKey(), entry.getValue());