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=12707>.
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=12707

Problems with Component class name in JSP

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From [EMAIL PROTECTED]  2002-09-23 19:48 -------
This looks more like a problem with the underlying JDK (J2SE 1.4.1).

The attached program uses Introspector.getBeanInfo() to get the BeanInfo
associated with the class specified on the command line, and then enumerates the
PropertyDescriptor[] returned by BeanInfo.getPropertyDescriptors().

When I specify "test.Component" as the class to be introspected, I am getting
the following wrong result, which is identical to introspecting
"java.awt.Component":

  java Introspect test.Component
  class: test.Component
  pd.length: 7
  0:
  public java.awt.Color java.awt.Component.getBackground()
  class java.awt.Color
  1:
  public boolean java.awt.Component.isEnabled()
  boolean
  2:
  public boolean java.awt.Component.isFocusable()
  boolean
  3:
  public java.awt.Font java.awt.Component.getFont()
  class java.awt.Font
  4:
  public java.awt.Color java.awt.Component.getForeground()
  class java.awt.Color
  5:
  public java.lang.String java.awt.Component.getName()
  class java.lang.String
  6:
  public boolean java.awt.Component.isVisible()
  boolean

This would explain why you are getting this compile-time exception when
accessing test-error/test.jsp:

  org.apache.jasper.JasperException: Cannot find any information on property
'data' in a bean of type 'test.Component'

However, when i specify "test.component" (with a lower-case 'c') as
the class to be introspected, I get the expected result:

  java Introspect test.component
  class: test.component
  pd.length: 2
  0:
  public final native java.lang.Class java.lang.Object.getClass()
  class java.lang.Class
  1:
  public java.lang.String test.component.getData()
  class java.lang.String

which is why accessing test-work/test.jsp works just fine.

Still investigating ...

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

Reply via email to