I am having a problem adding a new class and package (not default) to a dynamic web project in Eclipse. When I add the package, it is displayed under Java Resources: src as an expanded folder (not a package) in the package explorer window and the .java file is not compiled to a .class file when saved. I have "Build Automatically" checked in the project settings and the java build path settings for the source output folder look OK.
By comparison, using another test project (dynamic web) that I created, the new package is added to the project under Java Resources: src as a package (not a folder) and works just fine. The .java file is compiled to the build\classes directory and I am able to use the class in a JSP.
I am not able to determine what the difference is between the two projects that might be causing this issue.