Possible Duplicates:
accessing constants in JSP (without scriptlet)
Reference interface constant from EL
Hi,
I have a public or global variable res used in a protected void function in Admin.java. Can I use this variable in another function login in index.jsp page within the same application. Is it possible?
I have tried using Admin.res in the function in one more class SemanticSearch.java. The value of res is easily retrieved but it is not so in the case if I need to use it in index.jsp. I have tried printed in index.jsp using alert but the value is not printed.
Please help, Regards, Archana