Is it possible to use a global variable in Java to Jsp [duplicate]
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 tri开发者_Go百科ed printed in index.jsp using alert but the value is not printed.
Please help, Regards, Archana
Here's a tutorial how to do that
精彩评论