So no need for the variable name be the same in tld descriptor and tag handler class. Thanks for the info.
Antony Paul. ----- Original Message ----- From: "Felipe Leme" <[EMAIL PROTECTED]> To: "Tag Libraries Users List" <[EMAIL PROTECTED]> Sent: Monday, December 08, 2003 6:47 PM Subject: Re: c:out and default - question on code. > Antony, > > default is a reserved word. You can have the setDefault() and getDefault() > methods, but hot the default variable. Instead, you should use _default, > theDefault, ddefault, or something like that (notice that as you are > encapsulating this variable through the getters and setters, its real name > doesn't matter). > > In particular, JSTL use default_ : > > OutTag.java: > > > private String default_; // stores EL-based property > > > > > > Felipe > > > On Monday 08 December 2003 11:12 am, Antony Paul wrote: > > Declaring a varible names default gives this error by javac. > > JspOutTag.java:12: <identifier> expected > > private String default; > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]