You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by James Norman <jn...@taregon.com> on 2003/06/16 22:20:33 UTC

parseDate question

I am trying to parse a String object into a date using the parseDate tag.  My code is as follows:

<fmt:parseDate var="cellDate" value="${cell.value}" />
<td><fmt:formatDate value="${cellDate}" /></td>

And I get this exception:
 [ServletException in:/WEB-INF/jsp/displayers/requestsDisplayer.jsp] In <parseDate>, value attribute can not be parsed: "1055792945855"' 

Where cell.value returns a String of "1055792945855".  Can this not be parsed into a date object?  Any help would be appreciated.

Thanks,
james

Re: parseDate question

Posted by "N. Chen" <ni...@u.washington.edu>.
doesn't look like you can really use parseDate in millis formate.  But you
can do this.

<jsp:useBean id='cellDate' class='java.util.Date'/>
<c:set target='${cellDate}' property='time' value='${cell.value}'/>
<fmt:formatDate value='${cellDate}' type='both'/>

nick
On Mon, 16 Jun 2003, James Norman wrote:

> I am trying to parse a String object into a date using the parseDate tag.  My code is as follows:
>
> <fmt:parseDate var="cellDate" value="${cell.value}" />
> <td><fmt:formatDate value="${cellDate}" /></td>
>
> And I get this exception:
>  [ServletException in:/WEB-INF/jsp/displayers/requestsDisplayer.jsp] In <parseDate>, value attribute can not be parsed: "1055792945855"'
>
> Where cell.value returns a String of "1055792945855".  Can this not be parsed into a date object?  Any help would be appreciated.
>
> Thanks,
> james
>


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org