requestexamination.jsp

来自「java2 primer plus一书源程序」· JSP 代码 · 共 38 行

JSP
38
字号
<html>

<!--
  The requestExamination.jsp File.  This JSP uses expressions to do
  all of the Java work. This is an HTML comment
-->
<%--
  The requestExamination.jsp File.  This JSP uses expressions to do
  all of the Java work. This is a JSP comment
--%>

<body bgcolor="white">
<h1> Request Examination </h1>
<font size="4">
JSP Request Method: <%= request.getMethod() %>
<br>
Server: <%= request.getServerName() %>
<br>
port: <%= request.getServerPort() %>
<br>
address: <%= request.getRemoteAddr() %>
<br>
host: <%= request.getRemoteHost() %>
<br>
Locale: <%= request.getLocale() %>
<hr>
Request URI: <%= request.getRequestURI() %>
<br>
Request Protocol: <%= request.getProtocol() %>
<br>
Servlet path: <%= request.getServletPath() %>
<br>
Browser version <%= request.getHeader("User-Agent") %>
<hr>
</font>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?