<%@page import="java.text.*" %>
<%-- Main part of JSP starts here --%>
<jsp:useBean id="time" class="java.util.GregorianCalendar" scope="request" />

<%
    SimpleDateFormat formatter1
         = new SimpleDateFormat ("h:mm:ss a '('zzzz')'");
    SimpleDateFormat formatter2
         = new SimpleDateFormat ("EEEE, dd MMMM, yyyy");
%>

<SimpleText>
  <SimpleTextItem>
    Hello the time is:
  </SimpleTextItem>
  <SimpleTextItem>
    <%= formatter1.format(time.getTime()) %>
  </SimpleTextItem>
  <SimpleTextItem>
    on
  </SimpleTextItem>
  <SimpleTextItem>
    <%= formatter2.format(time.getTime()) %>
  </SimpleTextItem>
</SimpleText>


