Example JSP page
This page prints the day of the month and year, and either “Good Morning” or Good Afternoon”, depending on the time.<HTML><%@ page language=“java” imports=“com.wombat.JSP.*” %><H1>Welcome</H1><P>Today is </P><jsp:useBean id=“clock” class=“calendar.jspCalendar” /><UL> <LI>Day: <%= clock.getDayOfMonth( ) %> <LI>Month: <%= clock.getYear( ) %></UL><% if (Calendar.getInstance( ).get(Calendar.AM_PM) == Calendar.AM) { %> Good Morning <% } else { %> Good Afternoon <% } %><%@ include file = “copyright.html” %></HTML>