dateroll |
|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description |
The dateroll tag rolls the specified datetime bean. If
an error occurs during processing, the tag body will be evaluated and the
remainder of the page will be skipped. |
||||||||||||
Tag Body |
JSP | ||||||||||||
Restrictions |
None. | ||||||||||||
Attributes |
The tag has the following attributes:
|
||||||||||||
Properties |
None. |
||||||||||||
Example(s) |
<%-- roll forward one day from today --%> <cal:datetime id="now"/> <cal:dateroll name="now"/> <%-- roll forward 2 weeks --%> <cal:datetime id="now"/> <cal:dateroll name="now" amount="2" field="WEEK_OF_YEAR"/> <%-- roll back 5 hours --%> <cal:datetime id="now"/> <cal:dateroll name="now" amount="-5" field="HOUR"/> |