jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco.Mistr...@nokia.com
Subject RE: FW: Bug in tomcat 3.1???
Date Tue, 25 Jul 2000 12:27:33 GMT
HI Serge, and all
	i repost the java code, the jsp and the taglib
now i followed all the advices that was given to me, but i am still having
some problems
Serge, pls, if u can send me one of your custom tag, so that i can test on
my machine
thanx to all in advance and best regards
	marco

> -----Original Message-----
> From: EXT Serge Knystautas [mailto:sergek@lokitech.com]
> Sent: 25. July 2000 15:10
> To: taglibs-dev@jakarta.apache.org
> Cc: Marco.Mistroni@nokia.com
> Subject: Re: FW: Bug in tomcat 3.1???
> 
> 
> That's correct that the error indicates you're not finding the get/set
> pairs, but you code is right (don't do getxsl, do getXsl).  Attributes
> are supposed to be all lowercase and then capitalize the first letter
> when you append it to get/set (like standard java coding conventions).
> 
> Since you didn't give the complete method signature, I would guess you
> didn't make those methods public.  The exact method signatures should
> be...
> 
> public void setXsl(String value)
> 
> public String getXsl()
> 
> I've got a ton of custom tags written here and haven't had 
> any problems
> like this except when I make a typo or something.  One thing else that
> might be causing a problem is that you're not specifying the 
> bodycontent
> type (should be <tag>... <bodycontent>JSP</bodycontent>...</tag>
more
> than likely).  This might be invalidating the tag definition.
> 
> Serge Knystautas
> Loki Technologies
> http://www.lokitech.com/
> 
> Michael Taylor wrote:
> > 
> > Marco,
> > 
> > Your methods don't match the case of the original tags.  I 
> think you need
> > getxsl() and setxsl() methods if you wish to use lower 
> case.  This mapping
> > isn't the greatest, I'm afraid.  I can't use all lower-case 
> attribute names, or
> > attribute names with dashes as words seperators as I would like.
> > 
> > Anyway, hope that helps.  The error you have definately 
> indicates it's not
> > finding your get/set pair.
> > 
> > Cheers,
> > 
> > Mike
> > 
> > On Tue, 25 Jul 2000, Marco.Mistroni@nokia.com wrote:
> > > >
> > > > 'Cannot find any information on property 'xsl' in a bean of
> > > > type 'MyTagClass'
> > > >
> > > > in the corresponding java class, i add two methods:
> > > >
> > > > setXsl(String xsl)
> > > >
> > > > getXsl()
> > > >
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 


Mime
View raw message