Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to find setter method for attribute: eMail

843838Oct 4 2006 — edited Oct 4 2006
Hi

background:
Glassfish (build b19)
Mac OS X 10.4.7

I've a problem in passing parameter to custom tag files.

Example of tag file (EmailTag.tagx):
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          version="2.0">

  <jsp:directive.tag body-content="empty" />
  <jsp:directive.attribute name="eMail" required="false" />

  ...

</jsp:root>
The TLD
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
        version="2.0">

  <short-name>myCustom</short-name>
  <tlib-version>1.0</tlib-version>
  <uri>myCustomUri</uri>

  <tag-file>
    <name>EmailTag</name>
    <path>/META-INF/tags/com/lele/component/EmailTag.tagx</path>
  </tag-file>

</taglib>
In the jspx page I call the tag file in this way:
<myCustom:EmailTag eMail="xxxxxxxxxx" />
But using glassfish verifier I got this error:
Unable to find setter method for attribute: eMail

I'm a bit confused. Wat's wrong?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 1 2006
Added on Oct 4 2006
1 comment
133 views