Taglib
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   N_Bee
Posted On:   Friday, January 25, 2002 01:55 AM

Hi all, I have written a taglib with like this: class abstract A extends TagSupport { protected int numItems; public void setNumItems(String numItemsStr) { this.numItems = Integer.parseInt(numItemsStr); } } class B extends A { public void setNumItems(String numItemsStr) { super.setNumItems(numItemsStr); } } In taglib.tld, I also declase the attribute numItems. Deploying onto Weblogic is OK, but when I browser a jsp file, it cause the error like this: Error in using tag library uri='/WEB-INF/tms.tl   More>>

Hi all,


I have written a taglib with like this:


class abstract A extends TagSupport

{

protected int numItems;

public void setNumItems(String numItemsStr)

{

this.numItems = Integer.parseInt(numItemsStr);

}

}


class B extends A

{

public void setNumItems(String numItemsStr)

{

super.setNumItems(numItemsStr);

}


}


In taglib.tld, I also declase the attribute numItems.


Deploying onto Weblogic is OK, but when I browser a jsp file, it cause the error like this:

Error in using tag library uri='/WEB-INF/tms.tld' prefix='tms': There is no setter method for property 'numItems', for Tag class '...'

Could you please show me how to solve this???

Thanks,

Regards

   <<Less

Re: Taglib

Posted By:   AlessandroA_Garbagnati  
Posted On:   Friday, January 25, 2002 02:33 AM

Hi,

If there are no compilation issue, it appears to me another bug in Weblogic.

Can you try this on a fully compliant servlet container (like Tomcat) and see if you have the same problem?
About | Sitemap | Contact