cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Heidl <he...@zib.de>
Subject Re: Getting the URI of the current document ?
Date Tue, 05 Sep 2000 13:19:52 GMT
> 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

Mime
View raw message