How can i get context parameter value in jsp.?

后端 未结 5 1985
清酒与你
清酒与你 2020-12-16 00:37
  
        productSearchRPP
        8
    
         


        
5条回答
  •  悲哀的现实
    2020-12-16 00:44

    pageContext.getServletContext().getInitParameter("key");
    

    This is how you get context parameter value in JSP. In JSTL you can get it like this

    ${pageContext.servletContext}
    

    Or

    ${applicationScope.attributeName}
    

提交回复
热议问题