[opencms-dev] Use CmsJspActionElement cms on a Java Class
enrarjcob at alum.us.es
enrarjcob at alum.us.es
Sat Mar 8 20:33:51 CET 2008
Hi,
I'm triying to obtain the resource folder of my microsite on a java-class (I want to create a custom comboBox with information about my microsite), but I dont know how to use a cms object there:
On a JSP web-page, we could use:
CmsJspActionElement cms = new CmsJspActionElement( pageContext, request, response );
String rutaDirectorio = cms.getRequestContext().getFolderUri();
int startLevel = CmsResource.getPathLevel(rutaDirectorio);
But in a Java Class, we dont know what is "pageContext", "request" and "response", so
Is there another posibility?
Thanks for all!
More information about the opencms-dev
mailing list