[opencms-dev] Get your current folder location

Dylan Milks DMilks at greenridge.ca
Mon Feb 2 18:54:01 CET 2004


Thanks, I'll try that!

-----Original Message-----
From: Soeren Wollesen [mailto:SW at Solve-IT.de]
Sent: Monday, February 02, 2004 11:19 AM
To: opencms-dev at opencms.org
Subject: AW: [opencms-dev] Get your current folder location


Why do you want to use the navigation object for that? I think using the CmsJspActionElement with the info method should be sufficient. You can insert a few lines of code in your jsp template, like
 
with scriptlet:
    com.opencms.flex.jsp.CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
    String currentFld = cms.info("opencms.request.folder");
or with Taglib:
    <cms:info property="opencms.request.folder" />
 
or any other info like stated in the docs for the cms:info tag. I used the first method for my navigation.
 
Perhaps that helps, Soeren



  _____  

Von: Dylan Milks [mailto:DMilks at greenridge.ca] 
Gesendet: Montag, 2. Februar 2004 18:00
An: OpenCMS Mailing List (E-mail)
Betreff: [opencms-dev] Get your current folder location


Is there any way of getting your current folder location using the navigation object? I don't want to know the file that you're looking at (index.jsp), just the folder in which it's contained. How do I get this (from a JSP page)?
 
Thanks,
Dylan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040202/c9f62477/attachment.htm>


More information about the opencms-dev mailing list