Created
June 29, 2012 13:14
-
-
Save rbe/3017847 to your computer and use it in GitHub Desktop.
Find resources in a web application
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Find resources in e.g. META-INF/resources/tpl/ | |
| Set<String> res = getServletContext().getResourcePaths("/tpl/"); | |
| if (null != res) { | |
| for (String s : res) { | |
| System.out.println(s); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment