changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

ServletContextUriLocator should use fallback strategy when dispatcher fails #474

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In certain environments, the ServletContextUriLocator fails to retrieve the 
resource because the dispatcher include returns 404 error code. This happens 
(for example), when using spring MVC and trying to locate protected resources 
(located under WEB-INF folder). This can be solved by falling back to an 
alternative way of retrieving resource when dispatcher fails. More 
specifically, when dispatcher returns an empty stream - try to use external 
resource locator to make a server-side http request in order to locate the 
searched resource.

Discussion on this subject can be found here: 
https://groups.google.com/forum/?fromgroups#!topic/wro4j/FNIeqUazbM4

Original issue reported on code.google.com by alex.obj...@gmail.com on 25 Jun 2012 at 8:59

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 26 Jun 2012 at 9:47

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 26 Jun 2012 at 9:47