Pilot into the struts2-dojo-plugin-2.1.6.jar, and add at the beginning of the jsp page: <% @ taglib prefix = "sx" uri = "/struts-dojo-tags" %> Add <sx: head/> the following code directly implements the calendar selection box: [html] <sx: datetimepicker label = "calendar" name = "calendar" value = "today" toggleType = "plain" toggleDuration = "300" language = "zh_CN" type = "date" displayWeeks = "5 "displayFormat =" dd/MM/yyyy "formatLength =" long "/> Parameters: (Note: toggle ['t ɒ g (Limit) l] triggers). The final effect is as follows: <sx: datetimepicker value = "% {date}"/> <sx: datetimepicker value = "% {'2017-01-01 '}"/> <sx: datetimepicker value = "% {'today'}"/> datetimepicker tag parsing: Description: Renders a date/time picker in a dropdown (drop-down) container. A stand-alone DateTimePicker widget (Text desktop) that makes it easy to select a date/time, or increment by week, month, and/or year. it is possible to customize the user-visible formatting with either the 'formatlength' (long, short, medium or full) or 'displayformat' attributes. by defaulty current locale (region setting) will be used. all possible values of the displayFormat parameter: Format Descriptiond Day of the monthD Day of yearM Month-Use one or two for the numerical month, three for the abbreviation, or four for the full name, or 5 for the narrow name. y Yearh Hour [1-12]. H Hour [0-23]. m Minute. use one or two for zero padding. s Second. use one or two for zero padding. the following formats (in order) will be used to parse the values of the attributes 'value', 'startdate' and 'enddate ': simpleDateFormat built using RFC 3339 (yyyy-MM-dd't'hh: mm: ss) SimpleDateFormat. getTimeInstance (DateFormat. SHORT) SimpleDateFormat. getDateInstance (DateFormat. SHORT) SimpleDateFormat. getDateInstance (DateFormat. MEDIUM) SimpleDateFormat. getDateInstance (DateFormat. FULL) SimpleDateFormat. getDateInstance (DateFormat. LONG) SimpleDateFormat built using the value of the 'displayformat' attribute (if any)