Name

<ora:calendar>

Synopsis

The <ora:calendar> action renders a calendar for the specified month using the patterns defined by the attributes representing weekdays, weekend days, etc. when rendering the individual days.

Syntax

<ora:calendar date="aDate" [var="var"]
  [beforePattern="beforePattern"] [afterPattern="afterPattern"]
  [padPattern="padPattern"] [dayNamePattern="dayNamePattern"]
  [weekdayPattern="weekdayPattern"] [weekendPattern="weekendPattern"]
/>

Attributes

Attribute name

Java type

Dynamic value accepted

Description

date
java.util.Date

Yes

A date in the month to render.

var
String

No

The name of the variable to hold the current Date while evaluating the patterns.

beforePattern
javax.servlet.jsp.tagext.JspFragment

Yes

The pattern to use before rendering the first day in a week.

afterPattern
javax.servlet.jsp.tagext.JspFragment

Yes

The pattern to use after rendering the last day in a week.

padPattern
javax.servlet.jsp.tagext.JspFragment

Yes

The pattern to use for days in the previous and following months, to pad the current month to full weeks.

dayNamePattern
javax.servlet.jsp.tagext.JspFragment

Yes

The pattern to use for the day names, rendered once before rendering the days.

weekdayPattern
javax.servlet.jsp.tagext.JspFragment

Yes

The pattern to use for weekdays.

weekendPattern
javax.servlet.jsp.tagext.JspFragment

Yes

The pattern to use for weekends. If this pattern is omitted, the weekdayPattern is used for weekends as well.

Example

<code> ...

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.