Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm looking for a good book about Servlets and JSP for beginners. So far, the only book I know and have read is Head First Servlets & JSP, but it's focused more on the SCWCD exam rather than the specifics on building stuff.

I'm looking for a book that has a lot of examples on building stuff. Any suggestions?

share|improve this question

closed as not constructive by Mark Trapp Dec 6 '11 at 14:11

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

8 Answers

up vote 5 down vote accepted
+50

enter image description here

by Marty Hall -

share|improve this answer
4  
Here's the online version. – EpsilonVector Jan 6 '11 at 23:41

Specifications of Servlets and JSP. And, official forum.

share|improve this answer
He wants to build stuff, the last thing you'd want to read when you want to build stuff is the spec. – Mahmoud Hossam Nov 8 '11 at 12:37

I would recommend Murach's Java Servlets and JSP. It has tons of examples. http://www.amazon.com/Murachs-Java-Servlets-JSP-2nd/dp/1890774448/ref=sr_1_1?ie=UTF8&s=books&qid=1292984397&sr=8-1

share|improve this answer
I used Murach's book for a course I took; it felt very slow to me, but I was previously familiar with web development, including the MVP design pattern and ORMs. The application they build is rather terrible in many respects, but it's decent for a beginner's start. Just don't modify it to make a production application, please. – Xiong Chiamiov Jan 4 '11 at 1:26
I do not like this book at all... it is all examples and very little explanation. I will not purchase another from this publisher. – kevin cline Aug 8 '11 at 6:11
It uses Netbeans as their IDE, i don't think this would be suitable for students using Eclipse – KyelJmD Sep 7 '12 at 1:04

For actually building stuff I have found it very valuable to go for JavaServer Faces in version 2.0 (which comes with Java EE 6 and can be used in most modern web containers) when using so-called facelets instead of working with JSP. It still boils down to servlets. Also there are many very knowledgeable persons on stackoverflow.

For that "Core JavaServer Faces" is really nice. See http://horstmann.com/corejsf/ for paper and PDF details.

share|improve this answer

It's a bit out of date now (regarding some specs), but I originally dove in using Professional JSP by Wrox. It is by no means a cookbook, but it presented how the different pieces plug together very well using a few good, legit examples. For a true cookbook, O'Reilly always delivers with the Java Servlet and JSP Cookbook

Edit: I'm partial to Wrox professional series as they don't waste text assuming you don't know how to program or compose software. It's just the nitty-gritty of exposing a specific technology. They are true to their for-programmers-by-programmers slogan.

share|improve this answer

For beginners to Web Programming the best one will be Head First JSP and Servlets. Follow that up with the Servlet specification and follow that up by Java Servlet n JSP cookbook by Oreilly.

share|improve this answer
Just neglect for the moment that Head First is intended for SCWCD. It is good enough for normal Servlets/JSP too. The book by Marty Hall is good (among the non-Head-First) – khalooo Jan 5 '11 at 16:23

I found the Head First Servlets and JSP to be useful and as always a entertaining read

share|improve this answer

I would recommend you read Hanumant Deshmukh's book on scwcd.

It also includes practice examples which makes concepts clear.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.