Have I got it right?
The code
Code:
RedirectView view = new RedirectView("/welcome.htm", true);
Map map = new HashMap();
map.put("nextMsg","Avvikelsen har sparats");
view.setAttributesMap(map);
resultView = new ModelAndView(view, errors.getModel());
return resultView;
results in a redirection to
/<whatevercontext>/welcome.htm?nextMsg=Avvikelsen har sparats
??
The it should be possible to retrieve with JSTL like this
Code:
<body
<c:if test="${not empty requestScope.nextMsg}">
onLoad="javascript: modalDialog(${requestScope.nextMsg}); return true;">
</c:if>
I can't get it to work properly. Any ideas what I'm missing here?