DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11829>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11829

Unable to use Property editors with jsp:attribute

           Summary: Unable to use Property editors with jsp:attribute
           Product: Tomcat 5
           Version: Nightly Build
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This happens while using jsp:setProperty.
Section 2.13.1 of the JSP Spec says that a property editor can be used for
implict concversion od the property values assigned via jsp:setProperty.

I have a property editor defined for  a Date . 
I use jsp:attribute to set the value of the Date via jsp:setProperty, and an 
Illegal Argument exception is thrown.
Here is the sample jsp:
=====================
<!-- This JSP tests to see if a Property Editor works fine with jsp:attribute --
>
<%@page contentType="text/html"%>

<html>
<head><title>PosPETestDate</title></head>
<body>
<!-- This JSP is used to test the PropertyEditor.setAstext() method -->

 <jsp:useBean id="peTest"  class="bean.propeditor.PETest" />


 <jsp:setProperty name="peTest"  property="dateOfBirth" >
        <jsp:attribute name="value">
          01.02.2001
         </jsp:attribute>
 </jsp:setProperty>


The Date of Birth is : <jsp:getProperty name ="peTest" property="dateOfBirth" />
</body>
</html>
==========================

This works fine if the value of the date is given as an XML attribute.

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

Reply via email to