[prev in list] [next in list] [prev in thread] [next in thread]
List: taglibs-user
Subject: Re: c:out and default - question on code.
From: "Antony Paul" <antonypaul24 () hotmail ! com>
Date: 2003-12-08 13:43:40
[Download RAW message or body]
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" <jakartalists1@felipeal.net>
To: "Tag Libraries Users List" <taglibs-user@jakarta.apache.org>
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: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic