<%
  Calendar now=Calendar.getInstance();
  if (now.get(Calendar.AM_PM)
      ==Calendar.AM) {
%>
<H1>Good morning!</H1>
<%
  }
  else {
%>
<H2>Good evening!</H1>
<%
  }
%>