[opencms-dev] Getting current filename.

Christian Steinert christian_steinert at web.de
Tue Aug 1 17:16:13 CEST 2006


> -----Ursprüngliche Nachricht-----
> Von: kuku at physik.rwth-aachen.de, The OpenCms mailing list <opencms-dev at opencms.org>
> Gesendet: 01.08.06 13:10:49
> An: The OpenCms mailing list <opencms-dev at opencms.org>
> Betreff: Re: [opencms-dev] Getting current filename.

look at the Alkacon docs for 
  <cms:info> / CmsJspActionElement.info()

there are things available like
  cmsJspActionElement.info("request.uri")
  cmsJspActionElement.info("opencms.request.uri")
  etc.

Check out the docs, which contain a sample of all available "infos" and choose the one you need.

Christian


> 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
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev


______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193




More information about the opencms-dev mailing list