tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11829] New: - Unable to use Property editors with jsp:attribute
Date Mon, 19 Aug 2002 17:28:56 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: prasad.subramanian@sun.com


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:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message