<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FJSP%2FRequest</id>
		<title>Java/JSP/Request - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FJSP%2FRequest"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/JSP/Request&amp;action=history"/>
		<updated>2026-04-23T14:44:56Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/JSP/Request&amp;diff=8585&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/JSP/Request&amp;diff=8585&amp;oldid=prev"/>
				<updated>2010-06-01T07:09:56Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 07:09, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/JSP/Request&amp;diff=8584&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/JSP/Request&amp;diff=8584&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:47Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Get Request Parameter ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== HTTP Request Headers Received ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%--&lt;br /&gt;
  Copyright (c) 2002 by Phil Hanna&lt;br /&gt;
  All rights reserved.&lt;br /&gt;
  &lt;br /&gt;
  You may study, use, modify, and distribute this&lt;br /&gt;
  software for any purpose provided that this&lt;br /&gt;
  copyright notice appears in all copies.&lt;br /&gt;
  &lt;br /&gt;
  This software is provided without warranty&lt;br /&gt;
  either expressed or implied.&lt;br /&gt;
--%&amp;gt;&lt;br /&gt;
&amp;lt;%@ page import=&amp;quot;java.util.*&amp;quot; %&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
   &amp;lt;head&amp;gt;&lt;br /&gt;
      &amp;lt;title&amp;gt;Echo&amp;lt;/title&amp;gt;&lt;br /&gt;
      &amp;lt;style&amp;gt;&lt;br /&gt;
      &amp;lt;jsp:include page=&amp;quot;style.css&amp;quot; flush=&amp;quot;true&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/style&amp;gt;&lt;br /&gt;
   &amp;lt;/head&amp;gt;&lt;br /&gt;
   &amp;lt;body&amp;gt;&lt;br /&gt;
      &amp;lt;h1&amp;gt;HTTP Request Headers Received&amp;lt;/h1&amp;gt;&lt;br /&gt;
      &amp;lt;table border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;4&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;%&lt;br /&gt;
         Enumeration eNames = request.getHeaderNames();&lt;br /&gt;
         while (eNames.hasMoreElements()) {&lt;br /&gt;
            String name = (String) eNames.nextElement();&lt;br /&gt;
            String value = normalize(request.getHeader(name));&lt;br /&gt;
      %&amp;gt;&lt;br /&gt;
         &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;%= name %&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;%= value %&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;%&lt;br /&gt;
         }&lt;br /&gt;
      %&amp;gt;&lt;br /&gt;
      &amp;lt;/table&amp;gt;&lt;br /&gt;
   &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;%!&lt;br /&gt;
   private String normalize(String value)&lt;br /&gt;
   {&lt;br /&gt;
      StringBuffer sb = new StringBuffer();&lt;br /&gt;
      for (int i = 0; i &amp;lt; value.length(); i++) {&lt;br /&gt;
         char c = value.charAt(i);&lt;br /&gt;
         sb.append(c);&lt;br /&gt;
         if (c == &amp;quot;;&amp;quot;)&lt;br /&gt;
            sb.append(&amp;quot;&amp;lt;br&amp;gt;&amp;quot;);&lt;br /&gt;
      }&lt;br /&gt;
      return sb.toString();&lt;br /&gt;
   }&lt;br /&gt;
%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== JSP Request Path ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%--&lt;br /&gt;
  Copyright (c) 2002 by Phil Hanna&lt;br /&gt;
  All rights reserved.&lt;br /&gt;
  &lt;br /&gt;
  You may study, use, modify, and distribute this&lt;br /&gt;
  software for any purpose provided that this&lt;br /&gt;
  copyright notice appears in all copies.&lt;br /&gt;
  &lt;br /&gt;
  This software is provided without warranty&lt;br /&gt;
  either expressed or implied.&lt;br /&gt;
--%&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
In ShowPath2.jsp:&lt;br /&gt;
   request.getRequestURI() = &amp;lt;%= request.getRequestURI() %&amp;gt;&lt;br /&gt;
   request.getServletPath() = &amp;lt;%= request.getServletPath() %&amp;gt;&lt;br /&gt;
   javax.servlet.include.request_uri =&lt;br /&gt;
      &amp;lt;%= request.getAttribute&lt;br /&gt;
      (&amp;quot;javax.servlet.include.request_uri&amp;quot;) %&amp;gt;&lt;br /&gt;
   javax.servlet.include.servlet_path =&lt;br /&gt;
      &amp;lt;%= request.getAttribute&lt;br /&gt;
      (&amp;quot;javax.servlet.include.servlet_path&amp;quot;) %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== JSP: Show Request ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Request Parameters Example ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
  Copyright 2004 The Apache Software Foundation&lt;br /&gt;
  Licensed under the Apache License, Version 2.0 (the &amp;quot;License&amp;quot;);&lt;br /&gt;
  you may not use this file except in compliance with the License.&lt;br /&gt;
  You may obtain a copy of the License at&lt;br /&gt;
      http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
  Unless required by applicable law or agreed to in writing, software&lt;br /&gt;
  distributed under the License is distributed on an &amp;quot;AS IS&amp;quot; BASIS,&lt;br /&gt;
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&lt;br /&gt;
  See the License for the specific language governing permissions and&lt;br /&gt;
  limitations under the License.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;body bgcolor=&amp;quot;white&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt; Request Information &amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;font size=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;
JSP Request Method: &amp;lt;% out.print(util.HTMLFilter.filter(request.getMethod())); %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Request URI: &amp;lt;%= request.getRequestURI() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Request Protocol: &amp;lt;%= request.getProtocol() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Servlet path: &amp;lt;%= request.getServletPath() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Path info: &amp;lt;% out.print(util.HTMLFilter.filter(request.getPathInfo())); %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Query string: &amp;lt;% out.print(util.HTMLFilter.filter(request.getQueryString())); %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Content length: &amp;lt;%= request.getContentLength() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Content type: &amp;lt;% out.print(util.HTMLFilter.filter(request.getContentType())); %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Server name: &amp;lt;%= request.getServerName() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Server port: &amp;lt;%= request.getServerPort() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Remote user: &amp;lt;%= request.getRemoteUser() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Remote address: &amp;lt;%= request.getRemoteAddr() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Remote host: &amp;lt;%= request.getRemoteHost() %&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Authorization scheme: &amp;lt;%= request.getAuthType() %&amp;gt; &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Locale: &amp;lt;%= request.getLocale() %&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
The browser you are using is &amp;lt;% out.print(util.HTMLFilter.filter(request.getHeader(&amp;quot;User-Agent&amp;quot;))); %&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>