使用formatDate

时间:2018-08-22 17:04:19

标签: java jsp

我正在尝试将日期格式设置为'yyyy-MM-dd HH:mm:ss',但出现错误

  

com.ibm.ws.jsp.webcontainerext.JSPErrorReport:/reclam/alter.jsp(257,30)JSPG0055E:无法从名称[]值[>                               < fmt:formatDate value =]       在com.ibm.ws.jsp.translator.document.Jsp2Dom.getJspDocumentAsJspPage(Jsp2Dom.java:300)       在com.ibm.ws.jsp.translator.document.Jsp2Dom.getJspDocument(Jsp2Dom.java:179)       在com.ibm.ws.jsp.translator.JspTranslator。(JspTranslator.java:73)       在com.ibm.ws.jsp.translator.JspTranslatorFactory.createTranslator(JspTranslatorFactory.java:116)       在com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:181)       在com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:84)       在com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:386)       在com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:354)       在com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:263)处       在com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:137)处       在com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)       在com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)       在com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1439)       在com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:112)       在com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)       在com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)       在com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)       在com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)       在com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)       在com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)       在com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)       在com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)       在com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)       在com.ibm.io.async.ResultHandler $ 2.run(ResultHandler.java:873)       在com.ibm.ws.util.ThreadPool $ Worker.run(ThreadPool.java:1469)

这是我的代码:

    <bean:size collection="${beanAlter.CAllAlterLotes}" id="histSize"/>
                        <layout:pager maxPageItems="20">
                        <layout:collection name="beanAlter" styleClass="layout" indexId="id" id="event" property="CAllAlterLotes" onRowMouseOut="this.style.background='#FFF'" onRowMouseOver="this.style.background='#66C2CD'; this.style.cursor='default';">  
                            <layout:collectionItem title="reclam.alter.dataInicio"">
 <fmt:formatDate value="${event.dataInicio}" pattern="yyyy-MM-dd HH:mm:ss"  />
</layout:collectionItem>

0 个答案:

没有答案