Hi all
i'm trying to create a filter that takes in a request with a resource loaction as a parameter, removes this and then gets the absolute url of the the resource(eg - /myapp/images/mypic.gif)
i've tried 2 lines but both return null
java.net.URL url= this.getClass().getClassLoader().getResource(/myapp/images/mypic.gif");
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("/myapp/images/mypic.gif");
Does anybody see anything wrong with these lines?
Also after this i need to rewrite the url and send it to the next filter in the chain - does anyone have any hints for doing this?
Thanks in advance
Alex