0 Replies Latest reply on Sep 5, 2006 10:56 PM by Primitivo Dimahugot

    Error Displaying Date Values in JSTL 1.1

    Primitivo Dimahugot Newbie

      Good Day to all.

      i am having this error:

      2006-09-06 09:02:32,014 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/myhro].[action]] Servlet.service() for servlet action threw exception
      javax.servlet.jsp.JspException: ServletException in '/WEB-INF/view/tiles/defaultLayout.jsp': ServletException in '/WEB-INF/view/default/employeeMainPage.jsp': Unparseable date: "${timeInOutDetail.inOutDate}"; - nested throwable: (java.text.ParseException: Unparseable date: "${timeInOutDetail.inOutDate}")
      at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:923)
      at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
      at org.apache.jsp.WEB_002dINF.view.default_.employeeMainLayout_jsp._jspx_meth_tiles_insert_0(org.apache.jsp.WEB_002dINF.view.default_.employeeMainLayout_jsp:87)
      at org.apache.jsp.WEB_002dINF.view.default_.employeeMainLayout_jsp._jspService(org.apache.jsp.WEB_002dINF.view.default_.employeeMainLayout_jsp:60)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

      Can anyone help?
      im using jboss-4.0.3SP1 and JSTL 1.1.

      The source code of jsp from which the error occurs:

      <%@ page contentType="text/html;charset=UTF-8" language="java" %>

      <%@ taglib uri="/struts/html" prefix="html"%>
      <%@ taglib uri="/struts/bean" prefix="bean"%>
      <%@ taglib uri="/struts/logic" prefix="logic"%>

      <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
      <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

      <jsp:useBean id="employeeWorkInfo" type="com.chiyoda.myhro.helper.employee.work.EmployeeWorkInfo" scope="session"/>
      <jsp:useBean id="timeInOutDetails" type="com.chiyoda.myhro.helper.timetrans.TimeInOutDetails" scope="session"/>

      <c:forEach var="timeInOutDetail" items="${sessionScope.timeInOutDetails}">

      <fmt:formatDate value="${timeInOutDetail.inOutDate}" dateStyle="medium" />



      <fmt:formatDate value="${timeInOutDetail.timeIn}" dateStyle="medium" />



      <fmt:formatDate value="${timeInOutDetail.timeOut}" dateStyle="medium" />

      </c:forEach>

      Thanks and hope to hear from you soonest.