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.
I'm learning Servlets and JSP technology. and I use Apache Tomcat 6 as web server and servlet container.
I try to construct a simple web-app named FirstWebApp with no java server page ,no servlet and only one html file named index.html which ,when requested, must only display:
Hello,this is my first web-app,using Servlets and JSP technology.
To achieve this , I created a directory named FirstWebApp just under Tomcat web-apps directory . I wrote my index.html file and stored it at the root of FirstWebApp directory. Here's the content of index.html:
I also created a WEB-INF directory at the root of FirstWebApp Directory. This WEB-INF directory contains no subdirectory.I create a web.xml file at the root of WEB-INF directory(I precise that it's WEB-INF directory just under FirstWebApp directory)..Here's the content of the DD file: