ASP.NET has a Control full, how is the JSP number if a similar Class is available? Write an essential, if you are too lazy, there is a ready-made free class with taglib, not good, although some can't be satisfied, but too lazy to rewrite the Class of Class, you can try it! First, the required file: 1.http://www.servletsuite.com/servlets/caltag.jar download it after downloading below Web-INF / LIB 2.http://www.servletsuite.com/servlets/taglib61.tld After downloading, put it under WEB-INF, the original English description file: http://www.servletsuite.com/servlets/caltag.htm III: 1. The simplest usage: Original code:
<% @ Page ContentType = "Text / HTML; Charset = MS950"%> <% @ Taglib Uri = "/ Web-INF / TAGLIB61.TLD" prefix = "CAL"%>
:
2. Display the usage: Original code: <% @ page contenttype = "text / html; charset = ms950"%> <% @ Taglib URI = "/ Web-inf / taglib61.tld" prefix = "CAL"% >
cal: calendar> body> html>:3. Set a country and up and down the law: Original code: <% @ Page ContentType = "text / html; charset = ms950" import = "java.util. *, Java.text. *"%> <% @ Taglib Uri = "/ Web-inf / taglib61.tld" prefix = "CAL"%>
12) {nmonth = 1; nyear = year 1;} if (pmonth <1) {pmonth = 12; pyear = year-1;}}} // The above is pressed down months, it is necessary to determine the judgment if (Date == null) {string mask = "00"; decimalformat df = new decimalformat (mask); // The month is the month of the number of bit numbers And the date of the date automatically makes 0, first set the mask%>