ServletContext.getResourcePaths() does not work
-----------------------------------------------

                 Key: PAXWEB-129
                 URL: http://issues.ops4j.org/browse/PAXWEB-129
             Project: Pax Web
          Issue Type: Bug
          Components: HttpService, WebContainer
    Affects Versions: 0.5.2, 0.5.1, 0.5.0, 0.4.1, 0.4.0, 0.3.1, 0.3.0, 0.2.3, 
0.2.2, 0.2.1, 0.2.0
            Reporter: Alin Dreghiciu
            Assignee: Alin Dreghiciu
             Fix For: 0.5.3


The ServletContext method getResourcePaths() always returns null. 
http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getResourcePaths(java.lang.String)

There may be other usage of this this method but I figured out that this 
behavior (returning null) will prohibit Jasper on finding custom tags within 
"WEB-INF/tags" folder as specified by JSP 2.x specs (files that end with .tag 
or .tagx)

Basically the problem is that resource search from ServletContext is done by 
delegating to HttpContext and in HttpContext there is no such method to be used 
for finding resource paths as in case of getResource().

So, to support such an usage (for example from Pax Web Extender War) I propose 
to add a new interface extending HttpContext as this:

public interface WebContainerContext
    extends HttpContext
{
    Set<String> getResourcePaths( String name );
}

The DefaultHttpContext will implement the new WebContainerContext and will 
delegate to Bundle.getEntryPaths.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to