<?xml version="1.0" encoding="ISO-8859-1"?><page xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0">



<h1>xsp-request logicsheet output</h1>
<table border="1">
<tr>
  <th>Logicsheet tag</th><th>Output</th><th>Java method</th><th>Output</th></tr>
<tr>
  <td>get-uri</td><td>/samples/blocks/xsp/js/request</td>
  <td>getRequestURI</td><td>/samples/blocks/xsp/js/request</td>
    </tr>
<tr>
  <td>get-sitemap-uri</td><td>js/request</td>
    </tr>
<tr>
  <td>get-scheme</td><td>http</td>
  <td>getScheme</td><td>http</td>
    </tr>
<tr>
  <td>get-character-encoding</td><td>ISO-8859-1</td>
  <td>getCharacterEncoding</td><td>ISO-8859-1</td>
    </tr>
<tr>
  <td>get-content-length</td><td>-1.0</td>
  <td>getContentLength</td><td>-1.0</td>
    </tr>
<tr>
  <td>get-content-type</td><td/>
  <td>getContentType</td><td/>
    </tr>
<tr>
  <td>get-locale</td><td>en_US</td>
  <td>getLocale</td><td>en_US</td>
    </tr>
<tr>
  <td>get-locales</td><td>[Ljava.util.Locale;@5f7db1c9</td>
  <td>getLocales</td><td>java.util.Collections$2@35233419</td>
    </tr>
<tr>
  <td>get-parameter</td><td/>
  <td>getParameter</td><td/>
    </tr>
<tr>
  <td>get-parameter with default </td><td>default</td>
    </tr>
<tr>
  <td>get-parameter-values (as array)</td><td>null</td>
  <td>getParameterValues</td><td>null</td>
    </tr>
<tr>
  <td>get-parameter-names (as array)</td><td>[Ljava.lang.String;@1a317090</td>
  <td>getParameterNames</td><td>java.util.Collections$2@23d50b5f</td>
    </tr>
<tr>
  <td>get-header accept</td><td>*/*</td>
  <td>getHeader</td><td>*/*</td>
    </tr>
<tr>
  <td>get-header user-agent</td><td>Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)</td>
  <td>getHeader</td><td>Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)</td>
    </tr>

<tr>
  <td>get-headers accept-language (as array)</td><td>[Ljava.lang.String;@77dd9c59</td>
  <td>getHeaders</td><td>java.util.Collections$2@64e98bc</td>
    </tr>
<tr>
  <td>get-header-names (as array)</td><td>[Ljava.lang.String;@7643d489</td>
  <td>getHeaderNames</td><td>org.mortbay.http.HttpFields$1@5f36ab07</td>
    </tr>
<tr>
  <td>get-attribute attr</td><td>Test Attribute Value</td>
  <td>getAttribute</td><td>Test Attribute Value</td>
    </tr>
<tr>
  <td>get-attribute-names (as array)</td><td>[Ljava.lang.String;@7e168966</td>
  <td>getAttributeNames</td><td>java.util.Collections$2@7996c835</td>
    </tr>
<tr>
  <td>get-requested-url</td><td>http://152.118.24.185:8888/samples/blocks/xsp/js/request</td>
    </tr>
<tr>
  <td>get-remote-address</td><td>216.73.216.72</td>
  <td>getRemoteAddr</td><td>216.73.216.72</td>
    </tr>
<tr>
  <td>get-remote-user</td><td/>
  <td>getRemoteUser</td><td/>
    </tr>
<tr>
  <td>get-context-path</td><td/>
  <td>getContextPath</td><td/>
    </tr>
<tr>
  <td>get-path-info</td><td/>
  <td>getPathInfo</td><td/>
    </tr>
<tr>
  <td>get-server-name</td><td>152.118.24.185</td>
  <td>getServerName</td><td>152.118.24.185</td>
    </tr>
<tr>
  <td>get-server-port</td><td>8888.0</td>
  <td>getServerPort</td><td>8888.0</td>
    </tr>
<tr>
  <td>get-method</td><td>GET</td>
  <td>getMethod</td><td>GET</td>
    </tr>
<tr>
  <td>get-query-string</td><td>cocoon-view=content</td>
  <td>getQueryString</td><td>cocoon-view=content</td>
    </tr>
<tr>
  <td>get-protocol</td><td>HTTP/1.1</td>
  <td>getProtocol</td><td>HTTP/1.1</td>
    </tr>
<tr>
  <td>get-remote-host</td><td>216.73.216.72</td>
  <td>getRemoteHost</td><td>216.73.216.72</td>
    </tr>
<tr>
  <td>is-secure</td><td>false</td>
  <td>isSecure</td><td>false</td>
    </tr>
<tr>
  <td>get-servlet-path</td><td>/samples/blocks/xsp/js/request</td>
  <td>getServletPath</td><td>/samples/blocks/xsp/js/request</td>
    </tr>
<tr>
  <td>get-user-principal</td><td/>
  <td>getUserPrincipal</td><td/>
    </tr>
<tr>
  <td>get-auth-type</td><td/>
  <td>getAuthType</td><td/>
    </tr>
<tr>
  <td>is-user-in-role</td><td>false</td>
  <td>isUserInRole</td><td>false</td>
    </tr>
<tr>
  <td>get-requested-session-id</td><td>bfqq6j8ar37f1</td>
  <td>getRequestedSessionId</td><td>bfqq6j8ar37f1</td>
    </tr>
</table>

	<h1>xsp-request logicsheet output (as xml)</h1>
<textarea cols="100" rows="30">
get-uri                     <xsp-request:uri>/samples/blocks/xsp/js/request</xsp-request:uri>
get-sitemap-uri             <xsp-request:sitemap-uri>js/request</xsp-request:sitemap-uri>
get-scheme                  <xsp-request:scheme>http</xsp-request:scheme>
get-character-encoding      <xsp-request:character-encoding>ISO-8859-1</xsp-request:character-encoding>
get-content-length          <xsp-request:content-length>-1.0</xsp-request:content-length>
get-content-type            <xsp-request:content-type/>
get-locale                  <xsp-request:locale><xsp-request:language>en</xsp-request:language><xsp-request:country>US</xsp-request:country><xsp-request:variant/></xsp-request:locale>
get-locales                 <xsp-request:locale><xsp-request:language>en</xsp-request:language><xsp-request:country>US</xsp-request:country><xsp-request:variant/></xsp-request:locale>
get-parameter               <xsp-request:parameter name="param">null</xsp-request:parameter>
get-parameter with default  <xsp-request:parameter name="param">default</xsp-request:parameter>
get-parameter-values        <xsp-request:parameter-values name="param"/>
get-parameter-names         <xsp-request:parameter-names><xsp-request:name>cocoon-view</xsp-request:name></xsp-request:parameter-names>
get-header accept           <xsp-request:header name="accept">*/*</xsp-request:header>
get-header user-agent       <xsp-request:header name="user-agent">Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)</xsp-request:header>
get-header-names            <xsp-request:header-names><xsp-request:name>Accept</xsp-request:name><xsp-request:name>User-Agent</xsp-request:name><xsp-request:name>Accept-Encoding</xsp-request:name><xsp-request:name>Host</xsp-request:name><xsp-request:name>Via</xsp-request:name><xsp-request:name>X-Forwarded-For</xsp-request:name><xsp-request:name>Cache-Control</xsp-request:name><xsp-request:name>Connection</xsp-request:name><xsp-request:name>Cookie</xsp-request:name></xsp-request:header-names>
get-int-header - no sample
get-date-header - no sample
get-headers - no sample
get-headers                 <xsp-request:header-values/>
get-attribute attr          <xsp-request:attribute name="attr">Test Attribute Value</xsp-request:attribute>
get-attribute-names         <xsp-request:attribute-names><xsp-request:name>attr</xsp-request:name></xsp-request:attribute-names>
get-requested-url           <xsp-request:requested-url>http://152.118.24.185:8888/samples/blocks/xsp/js/request</xsp-request:requested-url>
get-remote-address          <xsp-request:remote-address>216.73.216.72</xsp-request:remote-address>
get-remote-user             <xsp-request:remote-user/>
get-context-path            <xsp-request:context-path/>
get-path-info               <xsp-request:path-info/>
get-server-name             <xsp-request:server-name>152.118.24.185</xsp-request:server-name>
get-server-port             <xsp-request:server-port>8888.0</xsp-request:server-port>
get-method                  <xsp-request:method>GET</xsp-request:method>
get-query-string            <xsp-request:query-string>cocoon-view=content</xsp-request:query-string>
get-protocol                <xsp-request:protocol>HTTP/1.1</xsp-request:protocol>
get-remote-host             <xsp-request:remote-host>216.73.216.72</xsp-request:remote-host>
is-secure                   <xsp-request:secure>false</xsp-request:secure>
get-servlet-path            <xsp-request:servlet-path>/samples/blocks/xsp/js/request</xsp-request:servlet-path>
get-user-principal          <xsp-request:user-principal/>
get-auth-type               <xsp-request:auth-type/>
is-user-in-role             <xsp-request:user-in-role role="admin">false</xsp-request:user-in-role>
get-requested-session-id    <xsp-request:requested-session-id>bfqq6j8ar37f1</xsp-request:requested-session-id>
</textarea>



<h2>Links</h2>
<a href="request-test?param=value&amp;a=b&amp;x=y">Get</a>
<br/>
<form method="post" action="request-test">
<input name="param"/>
<input type="submit" value="Post"/>
</form>


</page>