This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
This is the page I get stuck on. I can get the hello world sample working, but I am really confused as to where I put what files and how this all works. There are several folders and I understand that general jsp files just go in the project directory. Since the tutorial is creating a class, should the file end in .class and be created in the web-inf/classes directory? If I create a class file in the project root will it compile the class into a .class file in the web-inf folder? I guess I am really confused how it works and what I should be doing in creating a project here.
Any tips and links to places that go into great depth of this is really appreciated. Sorry to sound so noobish, I have been working in PHP for the last three years and want to give JSP a try. I know a little java just from a beginner class in college.
If you are using the Sysdeo plugin (I assume you are as its in the tutorial) then when viewing your project in java perspective in eclipse (Windows -> open perspective -> java) you will see a WEB-INF/src folder. Create your classes (.java) files in here (right click folder -> new -> Class) The files will be automatically compiled and placed in the WEB-INF/classes folder.
Hi Rick My suggestion is if you want to learn JSP/servlets don't use Eclipse now. Try to use notepad/textpad , create your own folder structure in explorer and run it. Once it is running try creating a project in eclipse and add the source folders in eclipse.