<form:form method="post" commandName="studioSection" action="${ctx}/studio/scheclass/modSection"
id="studioSectionModForm">
<form:hidden path="sectionId" />
- 开始时间
<form:input path="beginTime" onblur="IsTime()" /> - 结束时间
<form:input path="endTime" onblur="IsTime()" /> - 保存
取消
</form:form>
想在input中让日期格式显示为HH:ss 但是各种百度没有找到答案 最后Google之 http://*.com/questions/11736150/how-to-make-fmtformatdate-work-for-forminput
完美的解决了我的问题
贴出代码:
<fmt:formatDate value="${studioSection.beginTime}" pattern="HH:mm" type="date" var="theBeginTime"/>
<form:input path="beginTime" onblur="IsTime()" value="theBeginTime" />