java - ApplicationContext.getResources - path pattern issue -
java - ApplicationContext.getResources - path pattern issue -
stupid problem, can't solve it. java server - glassfish 4. have in web-inf tiles**.xml files. illustration have tiles.xml, tiles2.xml (i can have more in future) , need them. utilize next code
collection<applicationresource> webinfset = applicationcontext.getresources("/web-inf/tiles*.xml") however code returns one.
system.out.println("size:"+webinfset.size());//out size:1 where mistake?
looking @ org.apache.tiles.request.servlet.servletapplicationcontext @ grepcode, assume implemenation get, seems if error (if there any) not on side. implementation looks this:
public collection<applicationresource> getresources(string path) { arraylist<applicationresource> resources = new arraylist<applicationresource>(); resources.add(getresource(path)); homecoming resources; } depending on need, seek , files on classpath. there is, however, no standard way of searching resources name pattern, have here: get list of resources classpath directory
java java-ee servlets glassfish
Comments
Post a Comment