Thank you, Kosta. The problem is, I'm not sure what path to pass to serve-file. I could store the static files at the root of the war and then pass ServletContext.getRealPath("/") but that is not guaranteed to work across servlet containers if the app is deployed as a war file instead of as a war directory. Moreover, it does not work in my development environment where I run the app using Jetty.
--
Thanks, Shantanu.I've successfully used the first option you have suggested. But I'm curious about the second option. From your build.xml, I notice that you include all your static files at the root of your war. Now I'm not sure how you configure a different servlet path in your web container to serve only these files. Can you please provide some sample config that would accomplish this? Thanks.