<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://stackoverflow.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" />