[英]How do I pass a value throughout my project and use it anywhere in the program
How do I pass a value throughout my project and use it anywhere in the program. 如何在整个项目中传递值,并在程序中的任何地方使用它。 .. The value is selected before the login page... I want to access it anytime and in any jsp or servelet in a project ..该值是在登录页面之前选择的...我想随时随地在项目中的任何jsp或servelet中访问它
You can use HttpSession to do the same. 您可以使用HttpSession进行相同的操作。
Other than this you can initialize context parameters. 除此之外,您可以初始化上下文参数。
Follow this link for parameters approach. 请点击此链接获取参数方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.