Im a bit confused about this method, couldn't this be done on the client side to not mix Java and HTML? Probably not :P