Thank you all for your interesting replies! I'm understanding the security hole Thomas was about (haven't though about it), and I think I will handle it when the project goes somewhere nearer production (I'm building a beta right now)
Anyway this is my code public class SomethingValidator extends BeanValidatorForm { public SomethingValidator(Something bean) { super(bean); } public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { //my custom additional validation } } And my actions becomes SomethingValidator sv = new SomethingValidator(new Something()); and Something s = (Something) ((BeanValidatorForm) form).getInstance(); something.save(); Best regards Federico Just to post and share my code, my solution Il giorno lun, 22/05/2006 alle 14.55 +0200, Thoralf Rickert ha scritto: > > But it's simple to replace the > > framework.database.ExampleTableItem with a wrapper or > > extended class that controls the access to the properties. > > This could be something like this: > > public class ExampleTableItemWrapper extends ExampleTableItem { > /** public write access */ > public void setName(String name) { > ... > } > > /** public read access */ > public String getName() { > ... > } > > /** private write access (deny access) */ > private void setDeleted(boolean deleted) { > ... > } > > /** public read access */ > public boolean getDeleted() { > ... > } > } > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Concept - shaping technology Federico Fissore Developer [EMAIL PROTECTED] http://www.concept.it Concept S.r.l - via F.Tamagno, 3 - 20124 - Milano tel: +39 0229536401 fax: +39 0220402984 E-Mail Disclaimer This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. Concept Srl, via F. Tamagno,3 - 20124 Milan - Italy - www.concept.it --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]