Password generation tool in Java/JSP with Spring MVC