Index: lams_central/src/java/org/lamsfoundation/lams/web/ProfileAction.java =================================================================== diff -u -r009fbce36f45d0929f8007c4bbc798242f57d3af -r3480d4f851a1f828386c7921ad5901b6048ee1d3 --- lams_central/src/java/org/lamsfoundation/lams/web/ProfileAction.java (.../ProfileAction.java) (revision 009fbce36f45d0929f8007c4bbc798242f57d3af) +++ lams_central/src/java/org/lamsfoundation/lams/web/ProfileAction.java (.../ProfileAction.java) (revision 3480d4f851a1f828386c7921ad5901b6048ee1d3) @@ -35,6 +35,7 @@ import org.apache.commons.beanutils.BeanUtils; import org.apache.commons.lang.StringUtils; import org.apache.log4j.Logger; +import org.apache.struts.Globals; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; @@ -202,8 +203,13 @@ public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { + + //some errors may have already been set in ProfileSaveAction + ActionMessages errors = (ActionMessages) request.getAttribute(Globals.ERROR_KEY); + if (errors == null) { + errors = new ActionMessages(); + } - ActionMessages errors = new ActionMessages(); if (!Configuration.getAsBoolean(ConfigurationKeys.PROFILE_EDIT_ENABLE)) { if (!Configuration.getAsBoolean(ConfigurationKeys.PROFILE_PARTIAL_EDIT_ENABLE)) { errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.edit.disabled")); Index: lams_central/web/editprofile.jsp =================================================================== diff -u -r009fbce36f45d0929f8007c4bbc798242f57d3af -r3480d4f851a1f828386c7921ad5901b6048ee1d3 --- lams_central/web/editprofile.jsp (.../editprofile.jsp) (revision 009fbce36f45d0929f8007c4bbc798242f57d3af) +++ lams_central/web/editprofile.jsp (.../editprofile.jsp) (revision 3480d4f851a1f828386c7921ad5901b6048ee1d3) @@ -52,6 +52,16 @@