I have spring + hibernate application.
I have a lot of fields values of which I store in database. At this fields user can type anything.
These values can be rendered on client side. Thus this script can be executed.
Is there way to handle this problem in single place or I should handle each situation separately ?