Hi
Scope attribute names in Servlets/Jsp are strings. Due to typing errors it is bad to use them as such.
It would be good to have an enum or an interface with
string constants. But having such an interface it
becomes a dependency magnet, every
servlet and
jsp in the system depends on it and requires
recompilation on every attribute name change or attribute addition.
It there any best practice or
pattern to handle scope attribute names?
Thanks,
Marcin