AW: [opencms-dev] Get your current folder location
Soeren Wollesen
SW at Solve-IT.de
Mon Feb 2 18:22:02 CET 2004
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/334ec32d/attachment.htm>
More information about the opencms-dev
mailing list