RE: Struts Validator and security roles

2003-01-20 Thread PILGRIM, Peter, FM
> -Original Message- > From: V. Cekvenich [mailto:[EMAIL PROTECTED]] > Hello Vick? > Another aproach: > > Call a setter for the role (1) > (ex: formBean.setRole(req.getUserPrinicipal) in "onSave" in action. > Actually I am not going to use the `HttpServletRequest.getUserPrincipal()' or

Re: Struts Validator and security roles

2003-01-15 Thread V. Cekvenich
Another aproach: Call a setter for the role (1) (ex: formBean.setRole(req.getUserPrinicipal) in "onSave" in action. Now your can call formBean.validate() in your action. And... your formBean class must implement a validate method to do all your logic. This way you can use the same formbean val