This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hey all. I'm trying to setup my web app so that I can store some design elements, like the headers and footers, in seperate files that I can change without needing to recompile my sevlets. The way I have it setup right now is I'm running tomcat through apache so is you went to for example http://localhost/ it would be handled by apache but http://localhost/forum/ is handled by tomcat. What I want to do is include a file from the servlet (in /forum/) that is located in the root apache directory. If thats not possible, is there another way of doing it or will I have to manually open the files and print them out inside the servlet?
Alright. After looking at jsp forwarding for a bit it does seem like its what I should do. But I can't get it to work. Here is what I have now:
All it does is display the code that comes from the servlet (which is what I would expect it to do since its forwarding). How do I print stuff in the jsp and then include the servlet output? Whoops. Sorry about the name thing. [ April 06, 2004: Message edited by: Carlin Jones ]