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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Testsubbu,
I am not sure that <c:if works on the date format.
Regards
Dave
I am not sure that <c:if works on the date format.
Regards
Dave
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