How to use a relative path to read the content of a directory kept inside the Web content folder of my PORTLET application (using spring framework). As I have found out the resources (XMLs, property files) can be read using resource loader or class.getResourceAsStream() but nothing works for accessing the folder.
How to use a relative path to read the content of a directory kept
Share
Using the classloader you should be able to get hold of the folder.
For example if you have a “templates” folder in you classes dir:
Perhaps your container is restricting access based on the relative path?