Re: Validator with annotations

2013-06-28 Thread Simone Camillo Buzzi
Hi, the goal that I'm trying to reach is to reduce the number of variables and method into the Struts action to improve code readability and maintainability. I'm using hibernate, so I could obtain a good synergy if i can set value coming from parameters directly into the hibernate model bean, maint

Re: Secure data coming from a WYSIWYG editor

2013-06-27 Thread Simone Camillo Buzzi
> [2] http://hdiv.org/ > On 26 June 2013 09:06, Simone Camillo Buzzi wrote: > > > I'll use this feature to allow user to add comment or compile complex > > pages. > > I'm not worried about data coming from the editor but data that a > malicious >

Validator with annotations

2013-06-27 Thread Simone Camillo Buzzi
Hi, I have some doubt about how to use validation annotation. I'm changing my code to make it more readable and maintainable. I started from an action where I had all setters with annotation and i put data in a private local variable ex. private String email; @RequiredStringValidator(key="fieldE

Secure data coming from a WYSIWYG editor

2013-06-26 Thread Simone Camillo Buzzi
Hi, how can I secure data coming from a WYSIWYG editor? I want to allow user to change properties of the text but not to link images or add scripts to his post. I'll use this feature to allow user to add comment or compile complex pages. I'm not worried about data coming from the editor but data th