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.
My Tomcat is installed at c:\jak-tomcat I copy the Servlet classes ( e.g. Serv01.class ) to c:\jak-tomcat\webapps\ROOT\WEB-INF\classes I access the Servlet using http://localhost:8080/servlet/Serv01 I am able access static HTML pages (e.g. main.html) using http://localhost:8080/main.html My question is, in the HTML that the Servlet (Serv01) generates, if I want to include a GIF file ( pic01.gif ) as part of a IMG tag could someone please tell me how to code the path for SRC parameter ?. I am looking for <IMG SRC ='What goes here'> Thanks.
John, Try putting your gifs in a directory under the one where your main.html is. Call that directory "images" The IMG SRC would then be "/images/pic1.gif" or if that doesn't work try just "images/pic1.gif" HTH Junilu