Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Tuesday, December 4, 2007

java code for Date Formating in JSTL

<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>


Calendar




style="border-collapse: collapse" bordercolor="#111111"
width="62%" id="AutoNumber1">






















Date
Formatting



Enter a month(1-12)

Enter a year(i.e. 2002)









 





style="border-collapse: collapse" bordercolor="#111111"
width="63%" id="AutoNumber2">
value="${param.month}/1/${param.year}" type="date"
dateStyle="short" />













































test="${ ((param.year % 4 == 0 && paran.year % 100 != 0) || param.year % 400 == 0) }">















































test="${(x==1)||(x==8)||(x==15)||(x==22)||(x==29)}">









value="${now}" />





Sunday




Monday




Tuesday




Wednesday




Thursday




Friday




Saturday



test="${ (d<=max) && ((x>7)||(i<=x)) }">





 











No comments: