My directory structure for a servlet in netbeans is as follows:
Q1. Is it mandatory that I should see servlet class below my web.xml
. It's not getting generated for me. Because I believe I need to specify the class name in the web.xml
inside the <servlet
> tag.
Q2. How do I find out which JDK version is used to start the tomcat? I have JDK 1.8 installed on my machine and I am using that in NEtbeans 7.4. I am running into the same problem as asked here and trying to find a fix based on the @Macon Pegram's answer mentioned over there.
Thanks