|
|
Index
| Recent Threads
| Who's Online
| User List
| Register
| Search
| Help
| |
![]() |
OpenCms Forum » List all forums » Forum: Questions about Programming » Thread: How do I get the path name of a resource object? |
|
Thread Status: Normal Total posts in this thread: 2 |
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Stranger
|
How do I get the folder path from a resource eg. org.opencms.file.CmsResource or org.opencms.file.CmsFolder ? The methods on these classes are all static and require the full resource name as a parameter... The code I am using to get the resource object is :- java.util.List list = cmsobj.getResourcesInFolder(foldername, CmsResourceFilter.ALL.addRequireFolder()) ; java.util.Iterator i = list.iterator(); while (i.hasNext() && password == null) { CmsResource authrsc = (CmsResource)i.next(); /* Need to get the resource path here... */ } |
||
|
|
Advanced Member
|
I think there is a a static method in CmsResource ---------------------------------------- /** * Florian Hopf * synyx GmbH & Co. KG */ |
||
|
| [Show Printable Version of Thread] |