Nope, but this is not actually var name. This is key for the hashtable.
And if i'd like to use SAME bean in two different places, i have to use SAME
key to retrieve the bean, i.e.
<jsp:useBean id="myHandler" scope="session" class="MyHandler" />
<jsp:useBean id="myHandler1" scope="session" class="MyHandler" />
will create 2 objects and place them to session hash;
As long as the project is maintained by few people, i'd like to have these
var names defined to avoid mistyping and similar problems (you must admin,
that it is much easier to get compile time error saying that ATTR_MY_HANDLEW
is not defined than debug the code and find out that some person wrote
getAttribute ("myHandlew"))
Maybe i'm wrong, but this is my attitude :)
Regards,
Egidijus
----- Original Message -----
From: "Edwin Martin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 11:21 AM
Subject: Re: jsp:usebean
> Egidijus,
>
> > I do hate using same attribute
> >in several places as it definetly leads to mistakes (i.e. I will not use
> ><jsp:useBean id="myHandler" scope="session" class="MyHandler" />
>
> You have a strange way of thinking, friend,
>
> You have to look at myHandler as a variable name.
>
> Do you store the name of a variable in a constant to clean up
> you code?
>
> Bye,
> Edwin Martin.
>
>