For new code or existing code? For existing code that you know has problems, I strongly recommend the use of a good static analysis tool to help you find the existing defects. We used Fortify to analyze an existing Java EE codebase, and it did a pretty good job of catching a lot of the major flaws. There are other tools that can do the same, so it is not your only option.
The OWASP recommendations are reasonable enough, though you need to reason about several of them to fully implement them correctly. We ended up implementing most of the recommendations using libraries we already had in place instead of using their own library.