| Author |
Use of Class constants in EL expressions
|
Akshay Singhvi
Ranch Hand
Joined: Nov 08, 2005
Posts: 93
|
|
Hello Ranchers, Can we use constants declared in a class file in EL expressions for eg. public class A { public static final String a = "AB"; } Now in the JSP, assume i have imported the class A then will this work ${A.a == "AB"}
|
Regards,<br />Akshay Singhvi<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (86%)
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56529
|
|
|
That is precisely the subject of this article.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Use of Class constants in EL expressions
|
|
|