Hi All,
I have installed Eclipse and
Tomcat in my laptop. Everything is working fine. I'm trying to write my first
Servlet. I have a project named "Tom1". As per the tutorial
html and
jsp files go under Tom1
Java Sourcee files go below WEB-INF/src
Java class files go under WEB-INF/classes
Jar files go below WEB-INF/lib.
I created a Helloworld.jsp under Tom1 and it is good
Now I created a HelloWorld.java under WEB-INF/src and try to compile it but getting 6 errors for the HttpServlet not found.So it is not able to resolve the HttpServlet header.
I have given the Javabuildpath as Tom1/WEB-INF/src. But every time I creatre a new file in goes below Tom1/WEB-INF/src/defaultpackage !!!
Is this the reason Eclipse is not finding the HttpServlet Class ? Or any other problem ? Please explain. Thanks.