Link to home
Start Free TrialLog in
Avatar of Testsubbu
Testsubbu

asked on

Simple Jstl help

Dear java experts,
                            I have a situation where i am using the jstl tags to display date.
my code is

<fmt:formatDate value="${test.startTime}" pattern="hh:mm a dd-MMM-yyyy"/>

but if  test.startTime= "01:00 AM 01-Jan-1890",
then i need to display in my jsp  a string like  "BeyondRange"

this is really urgent.


thanks so much,
Testsubbu
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Testsubbu,

What you need to do is to use <c:if tags. However, it that does not really work, you better consider some of the solution using Servlet such as <% %> within your jsp file.

Regards

Dave
Hi Testsubbu,

I am not sure that <c:if works on the date format.

Regards
Dave