Sun Java System Portal Server Mobile Access 7.1 Developer's Guide

Going to a Different Date

Users can reset the day view page to any arbitrary date by selecting the Go To option. When users select this option, the tag <util:link> transfers control from the dayview.jsp file to the goto.jsp file, which presents users with the following Go To options: “Today”, “Next week”, “Next month”, “Previous week”, “Previous month”, or a “Specific date”.

As you might expect, when users select the “Next week” and “Next month” options, the calendar rolls forward by a week or a month; the “Previous week” and “Previous month” options roll the calendar back.

The Today option rolls the calendar to the current date. When users select the “Specific date” option, control transfers from the goto.jsp file to the date.jsp file. Users can then type a specific date, which rolls the calendar to that date.

When the calendar is rolled forward or backward, control passes from the dayview.jsp file to the doRoll.jsp file, and then back to the dayview.jsp file, which displays the data for the new date. For convenience, the day view page also provides links to the next six days of the calendar, each of which link to the doRoll.jsp file as well.