reset password
Author Message
abajpai
Posts: 52
Posted 23:21 Apr 26, 2011 |

The HW3 prompt says to use only core and function libraries for JSTL. But can we use the format library for formatting the date objects of the questions?

rbogle
Posts: 8
Posted 23:24 Apr 26, 2011 |

I'm guessing the date should be formated in your bean(s) since they contain all your data they should return the data already formated...

cysun
Posts: 2935
Posted 00:31 Apr 27, 2011 |
abajpai wrote:

The HW3 prompt says to use only core and function libraries for JSTL. But can we use the format library for formatting the date objects of the questions?

I only mentioned core and functions in the Readings part, but you can certainly use other libraries in JSTL.

cysun
Posts: 2935
Posted 00:33 Apr 27, 2011 |
rbogle wrote:

I'm guessing the date should be formated in your bean(s) since they contain all your data they should return the data already formated...

Actually dates should be formatted in JSP. Dates are indeed part of the data, but the formatting of the dates is related to display thereby should be done in JSP.

abajpai
Posts: 52
Posted 09:58 Apr 27, 2011 |

Thanks