wood burning stoves 2.0*
The moose likes Bunkhouse Porch and the fly likes Head First Servlets & JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Books » Bunkhouse Porch
Bookmark "Head First Servlets & JSP" Watch "Head First Servlets & JSP" New topic
Author

Head First Servlets & JSP

Jean-Christian Imbeault
Greenhorn

Joined: Dec 08, 2004
Posts: 19
I'n just starting with the book and am having some problems or questions with certain topics or code. Is there a forum for discussing this book? I couldn't find one on wickedlysmart.com or at O'reilly's ...

Thanks
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
Hi Jean-Christian, welcome to Javaranch!

This forum is a good place to start, though discussion here tends to be more general. If things get specific about code you might want to ask over at the Servlets forum where there's more traffic, so more folks to join the discussion.

The book's authors hang around the ranch a lot so you'll get their attention wherever you post.

Hope you enjoy your visits to the ranch,
Pauline
[ December 09, 2004: Message edited by: Pauline McNamara ]
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8815
    
    5
Jean-Christian,

Even if you're not planning to take the SCWCD exam, if you post questions on the SCWCD forum you should get good responses.

- Bert

p.s. We hope the book helps you in your studies


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Jean-Christian Imbeault
Greenhorn

Joined: Dec 08, 2004
Posts: 19
Thanks for the pointers.

In the spirit of trying to make the book better I'd like to point out a problem I had when trying the first code example in the book, the Beer advisor. I guess on pages 72 and 73 when you describe setting up the development and deployment environments you also meant 'We've explained it now set up both environments'.

The reason it wasn't clear to me that I needed to set up the directory structure at that point was that many of the folders mentionned (like classes/com/example/web) don't need to be created by me since they will be created when I compile the source code. Also you show not only folders but *files*. It's counter-intuitive to create files before the part in the book where you say what to put in each file. .

So when I tried to load up the form.html file after reading the instructions on page 76 that explicitly said to write it and where to put it, tomcat was throwing up a 404 error. This was because I had not created an empty WEB-INF directory.

Besides making the instructions a bit more explicit it would be nice to understand *why* a WEB-INF directory (even an empty one) is necessary when serving up plain html.

I'm loving the book so far and having to work through this problem actually made me understand things a bit more. It was just frustrating for the two hours I tried to figure it out by myself before asking for help

The full thread is here:

http://www.coderanch.com/t/359479/Servlets/java/Tomcat-error-HTML-file-Head
[ December 13, 2004: Message edited by: Jean-Christian Imbeault ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Head First Servlets & JSP