jsp内置对象之request

来源:互联网 发布:拟线性偏好知乎 编辑:程序博客网 时间:2024/05/01 18:57

request内置对象

<html>

  <head>    <base href="<%=basePath%>">        <title>My JSP 'index.jsp' starting page</title><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0">    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page">  </head>    <body>    提交方式:<%= request.getMethod() %><br>    请求的URL地址:<%= request.getRequestURI() %><br>    协议名称:<%= request.getProtocol() %><br>    客户端请求服务器文件的路径:<%= request.getServletPath() %><br>    URL的查询部分:<%= request.getQueryString() %><br>    服务器的名称:<%= request.getServerName() %><br>    服务器的端口号:<%= request.getServerPort() %><br>    远程客户端的IP地址:<%= request.getRemoteAddr() %><br>  </body>  </html>

                                             
0 0
原创粉丝点击