You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/02/01 18:20:57 UTC
DO NOT REPLY [Bug 6187] New: -
xsp-request
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6187>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6187
xsp-request
Summary: xsp-request
Product: Cocoon 2
Version: 2.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: general components
AssignedTo: cocoon-dev@xml.apache.org
ReportedBy: peter.durrant@cognos.com
The xsp-request logicsheet does not return the http scheme. Tested using the
following code on Cocoon 2.0.1:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
xmlns:xsp-request="http://apache.org/xsp/request/2.0"
version="1.0">
<html>
<head>
<title>Request report</title>
</head>
<body>
<h1>Logicsheet request report</h1>
<p>HTTP scheme: <xsp-request:get-scheme/></p>
<p>Server name: <xsp-request:get-server-name/></p>
<p>Server port: <xsp-request:get-server-port/></p>
<p>URI: <xsp-request:get-uri/></p>
<p>Query string: <xsp-request:get-query-string/></p>
<xsp:logic>
String scheme = request.getScheme();
String server = request.getServerName();
int port = request.getServerPort();
String URI = request.getRequestURI();
String query_string = request.getQueryString();
</xsp:logic>
<h1>Java request report</h1>
<p>HTTP scheme: <xsp:expr>scheme</xsp:expr></p>
<p>Server name: <xsp:expr>server</xsp:expr></p>
<p>Server port: <xsp:expr>port</xsp:expr></p>
<p>URI: <xsp:expr>URI</xsp:expr></p>
<p>Query string: <xsp:expr>query_string</xsp:expr></p>
</body>
</html>
</xsp:page>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org