I am using Netbeans 7.1 with Glassfish 3.1.1, and JDK 6. I built a sample project from a Java EE 5 tutorial. Sample Projects Download, The project is the guessNumber project.
I open the project, assign the glassfish server to it, deploy it and run it. The result is this:
What would cause this? Why doesn't Internet Explorer want to render this as an HTML page and offer to download the file instead? I saved the file. Here it is: guessNumber
I did not change any project settings. I also uninstalled and re-installed Netbeans, Glassfish, and JDK 6 and reinstalled just to be sure nothing got changed in those settings.