Devaka Cooray wrote:Are you sure you have your compiled classes in /WEB-INF/classes directory? More likely your Login class is not compiled in the build. If you are using an IDE, try clean and rebuild.
I am not sure. Following the example I was looking at, this is below is how I have everything. I created a package for the users class and a package for the servlet pages. I tried the clean and rebuild but it didn't seem like anything happened but when I ran it again, I got a different error. This is the first time I have ever messed with servlets and jsp files so I am sort of lost about the structure of it. I still haven't quite wrapped my head around the XML either.
Paul Clapham wrote:Maybe I'm not looking at that picture straight, but it looks to me like the airline.javas package is under the src directory but the airline.servlets package isn't.
That picture does look odd but the file structure is:
src --> airline -->
javas --> Users.java
So there is a src folder, then airline folder, then a javas folder and a servlets folder within the airline folder. Is this as it should be?
Paul Clapham wrote:You do understand that when you change the source code, you have to compile it, rebuild the WAR file, and redeploy that to Tomcat before you can expect the changes to be reflected there?
I finally realized that was the problem although any other time I have played with Java I didn't have to manually do this. I finally noticed that under the Project drop down, the Build Automatically selection was un-checked. Once I figured this out, all seems well.