Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

  <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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
231 views
Welcome To Ask or Share your Answers For Others

1 Answer

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}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...