Does anyone know if we can use variables defined in a scriptlet in a an expression language ?
For example, I defined the variable var as following:
<%!
String var = "a variable"; %>
Then i try to
test if this variable is equal to "a variable"
${var eq "a variable"}
this returns false, i guess the evalaution of the variable var returns null because EL are only looking for variables in any scopes but I am not sure ! That is why I am asking you this simple question.
If there is a special way to access those variable, let me know.
Thanks you in advance
Tiggy