Skip to content
Snippets Groups Projects
Commit a2d0b7ec authored by adityab3's avatar adityab3
Browse files

GUI: display error message during preregistration if email is in use

parent c6fba262
No related branches found
No related tags found
1 merge request!4Uc91.2
......@@ -5,6 +5,7 @@
<%@page import="edu.ncsu.csc.itrust.BeanBuilder"%>
<%@page import="edu.ncsu.csc.itrust.beans.PatientBean"%>
<%@page import="edu.ncsu.csc.itrust.exception.FormValidationException"%>
<%@page import="edu.ncsu.csc.itrust.exception.ITrustException"%>
<%@include file="/global.jsp" %>
......@@ -68,6 +69,13 @@ if (formIsFilled) {
<span class="iTrustError"> <%= StringEscapeUtils.escapeHtml(e.getMessage()) %></span>
<!-- StringEscapeUtils.escapeHtml(e.getMessage()) -->
</div>
<%
} catch (ITrustException e) {
%>
<div align=center>
<span class="iTrustError"> <%= StringEscapeUtils.escapeHtml(e.getMessage()) %></span>
<!-- StringEscapeUtils.escapeHtml(e.getMessage()) -->
</div>
<%
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment