This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I would like to include a HTML file in my servlet's output. I understand that I could just open the file from the filesystem, but I do not want to lock myself into a path I will have to change if I change servers. What I really desire is a way to include the file in my servlet in such a way that as long as the relative URL is maintained, the file will be accessable, much the same way as the JSP <@ include file = '/foo/bar.html' %> works. Thanks for your help.