开发者

Is it possible to use a global variable in Java to Jsp [duplicate]

开发者 https://www.devze.com 2023-02-10 20:45 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicates: accessing constants in JSP (without scriptlet)
This question already has answers here: Closed 11 years ago.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消