<context-param> <param-name>productSearchRPP</param-name> <param-value>8</param-value> </context-param>
I want to get value of productSearchRPP in products.jsp page
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}
2.1m questions
2.1m answers
60 comments
57.0k users