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.
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());
2 matches
Mail list logo