dcsimg
about Attribute defind in Tag
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ran_Meng
Posted On:   Thursday, May 22, 2003 03:10 AM

i definded an attribute named "class" in the taglib,and create a method "setClass()" in the sampleTag.java.it can run correctly on weblogic server,but can not deploy onto the Websphere Server.why?and pls recommence some document about the problem to me.Thanks

Re: about Attribute defind in Tag

Posted By:   Anonymous  
Posted On:   Thursday, May 22, 2003 05:51 AM

WebSphere is using introspection for creating setter and getter methods. Every class implicitly or explicitly extends java.lang.Object which contains a method called getClass() which returns a Class object. Since your setClass() method is not likely to be doing anything with a Class object, introspection is failing to find the getter/setter methods since the types are mismatched. In general, the word class should be considered a reserved word since the word "class" has a special meaning in java.
About | Sitemap | Contact