Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 38507 invoked from network); 5 Sep 2000 13:19:55 -0000 Received: from mailer.zib.de (130.73.108.11) by locus.apache.org with SMTP; 5 Sep 2000 13:19:55 -0000 Received: from mailsrv2.zib.de (mailsrv2 [130.73.121.11]) by mailer.zib.de (8.9.3+Sun/8.9.1) with ESMTP id PAA19407 for ; Tue, 5 Sep 2000 15:19:53 +0200 (MET DST) Received: from hlr.zib.de (hlr.zib.de [130.73.73.1]) by mailsrv2.zib.de (8.9.3+Sun/8.9.1) with ESMTP id PAA08575 for ; Tue, 5 Sep 2000 15:19:53 +0200 (MET DST) Received: from zib.de (csr-pc1.zib.de [130.73.72.59]) by hlr.zib.de (8.9.3+Sun/8.9.1) with ESMTP id PAA03455 for ; Tue, 5 Sep 2000 15:19:52 +0200 (MET DST) Sender: heidl@zib.de Message-ID: <39B4F2F8.5C7F21BE@zib.de> Date: Tue, 05 Sep 2000 15:19:52 +0200 From: Sebastian Heidl X-Mailer: Mozilla 4.75 [de] (X11; U; Linux 2.2.16 i686) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: Getting the URI of the current document ? References: <00ac01c01737$ad4208c0$3a196586@ta.danet.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > I have a question again : In my XSP:logic, I want to get the current pages Id out of a > database by it's URI (URL). I need this to check if a page is registered in the database because > all links between my pages are stored in a mySQL database. These links are accessed by the pages > id's. My problem now is, how can I set a varaible to contain ( a string-value ) of the current URL > ( if index.xml should be displayed the variable should contain the URL "/myserver/index.xml" ) ? maybe this is what you want: String uri = request.getRequestURI(); just have a look at the servlet documentation: http://java.sun.com/j2ee/j2sdkee/techdocs/api/index.html Sebastian