Basically i want to learn this technology. I already know J2SE. My question is, where is the good start to learn Spring and Hibernate? Is the book Head First JSP and Servlets good or what?
My question is, where is the good start to learn Spring and Hibernate?
I'd recommend the Second of Edition of Spring in Action by Craig Wall (it covers both) and of course the Reference Documentation of Spring Framework.
Is the book Head First JSP and Servlets good or what?
It is. But not for the mentioned topics.
There are many topics under the Spring framework. The ones that I use most are - IOC, AOP, Transaction Management, and Spring JDBC. In order to grasp these concepts I used the spring website extensively and also read the Spring Recipes book. I coded the examples that were on the book and tried to convert an existing app in using the spring framework (like IOC and JDBC). The spring forum is very useful. An of course folks here at Stack Overflow are always willing to help.
I could recommend you Pro Spring 2.5 by Rob Harrop and Jan Machacek. It's quite easy to read and there are quite a lot of simple, but precise examples. And, of course, Spring has very good reference.
And if you want to know more about Hibernate, you should definetely take a look at Java Persistence with Hibernate. One of the author is Gavin King, creator of Hibernate, so while reading this book you're getting first hand knowledge.