Hi, I have an element in my schema that looks like this:

<xs:element name="lastModified" type="xs:dateTime"/>

and in my XML looks like this:

<lastModified>2006-10-16 11:15:33</lastModified>

When I call it in my view like this:

<c:out value="${book.lastModified}"/>

I get an error message that looks like the message below. Strings and Integers work fine, just this Calendar object does not.

Thanks,
Steven


Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${book.lastModified}": An error occurred while getting property "lastModified" from an instance of class com.testing.test.impl.BookImpl (org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid date value: 2006-10-16 11:15:33) at org.apache.jasper.runtime.PageContextImpl.doHandlePageException (PageContextImpl.java:846) at org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:779) at org.apache.jsp.WEB_002dINF.jsp.booksView_jsp._jspService (booksView_jsp.java:101) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:393)
        ... 121 more
Caused by: org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid date value: 2006-10-16 11:15:33 at org.apache.xmlbeans.impl.values.XmlObjectBase $ValueOutOfRangeValidationContext.invalid(XmlObjectBase.java:285)





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to