Many posts have been written on this subject (overwhelmingly many) but I just wanted to contribute my two-cents and write a short post about how I use the Fluent Object Creation pattern or object builders in Java to instantiate Value Objects. Value Objects are abstractions that are defined by their state (value) rather...
[Read More]
Object Associations
Composition: the Employee is encapsulated within the Company . There is no way for the outside world to get a reference to the Employee. The Employee is created and destroyed with the company final class Company{private final Employee Employee;{ Company(EmpDetails details) { engine = new Employee(details); } void assign()...
[Read More]
Simple Cross Site Scripting (XSS) Servlet Filter
Ran into some issues on some of our Java sites today and needed a quick fix to protect the sites from malicious Cross Site Scripting (XSS) attempts. If you're not aware of what XSS is and have websites that have sensitive user data, you may want to read up, you're...
[Read More]
Good Developer, Bad Developer
Good developer Bad developer Good developer is an artist, a craftsman who enjoys the process of creation. Bad developer considers himself as a programmer, responsible for generating lines of code. Good developer understands the problems of the customers Bad developer understands only the technical problem at hand. Good developer does...
[Read More]
retrieve currently logged-in users using the SessionRegistry
http://krams915.blogspot.de/2010/12/spring-security-mvc-querying.html
http://code.google.com/p/spring3-security-mvc-integration-tutorial/downloads/detail?name=spring-mvc.zip&can=2&q=