對於web.xml中 web
<context-param> <param-name>queryWithIP</param-name> <param-value>1</param-value> jsp
</context-param> this
jsp中this.getServletContext().getInitParameter("queryWithIP")獲取 xml