This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I have to work on a project, i.e a website. I will be using jsp, servlets, or may be spring hibernate. I need to ensure that it cannot be hacked. I have no idea about the securities. Please recommend a book for that.
It covers Cross Site Scripting (XSS), which is the most difficult web vulnerability to deal with, but XSS should have its own book. For that reason, I also recommend XSS Attacks. The guys who wrote that one are giants in web app security research.
Those two books will help you understand the attacks. It is up to you to keep current on the new variations on these attacks.