You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@locus.apache.org on 2000/09/02 21:42:11 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/environment/http HttpEnvironment.java
giacomo 00/09/02 12:42:10
Modified: src/org/apache/cocoon/environment/http Tag: xml-cocoon2
HttpEnvironment.java
Log:
Enable requesting views by parameters instead of headers
Revision Changes Path
No revision
No revision
1.1.2.13 +3 -3 xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpEnvironment.java
Index: HttpEnvironment.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/environment/http/Attic/HttpEnvironment.java,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -r1.1.2.12 -r1.1.2.13
--- HttpEnvironment.java 2000/08/31 16:58:08 1.1.2.12
+++ HttpEnvironment.java 2000/09/02 19:42:10 1.1.2.13
@@ -13,8 +13,7 @@
import java.io.OutputStream;
import java.net.MalformedURLException;
import java.net.URL;
-import java.util.Dictionary;
-import java.util.Hashtable;
+import java.util.Map;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
@@ -49,7 +48,8 @@
HttpServletResponse response,
ServletContext servletContext)
throws MalformedURLException, IOException {
- super(uri, request.getHeader("cocoon-view"), servletContext.getRealPath("/"));
+// super(uri, request.getHeader("cocoon-view"), servletContext.getRealPath("/"));
+ super(uri, request.getParameter("cocoon-view"), servletContext.getRealPath("/"));
this.request = new HttpRequest (request, this);
this.servletRequest = request;
this.response = new HttpResponse (response);