You can not put HTML code inside the JSP tags like that.
Try with this approach
<p>
<%
out.println("\n");
[...]
out.println("<h1>Low priority alert has been received !!!</h1>");
[...]
%>
</p>
Note: Also consider to make the calculations and conditions outside the JSP. Do not mess logic with the presentation.