[opencms-dev] Getting current filename.

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Tue Aug 1 13:06:46 CEST 2006


On Tue, Aug 01, 2006 at 11:51:12AM +0300, Y. Glebov wrote:
> Hello guys.
> 
>  
> 
> Please help, how can I get current html filename, I need to use it in my
> template, for example I have a file gallery-forest.html, generated from
> gallery.jsp template, and I need to use its name in template, to create a
> link to itself. How can I get it? Any suggestions?

Perhaps something like this?:


CmsJspActionElement cms =
   new CmsJspActionElement(pageContext, request, response);
   String currentUri = cms.getRequestContext().getUri();


--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de



More information about the opencms-dev mailing list