AW: actionforms and validate()
"Bernhard Woehrlin" <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Organization | IT.CappuccinoNet.com |
| Message-ID | <000401c3bb23$da80a7e0$4b01a8c0@javaws> |
Hi Kiryl, I agree on that. - The invocation von the validate() method is necessary to copy the ActionErrors container to the HttpServletReqeust. There should be a way to automate this process... - hints appreciated... Regards, Berny -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von Navyshny, Kiryl Gesendet: Freitag, 5. Dezember 2003 11:37 An: '[email protected]' Betreff: [Strutscx-user] actionforms and validate() Hi all, I found, that validate="true" for form bean in struts-config.xml and form description in validation.xml is not enough to provide validation process. You need to execute formBean.validate(), how it is in StrutsCX example: com.cappuccinonet.strutscx.prototype.presentation.action.InfoUpdateActio n. Why it is necessary to invoke direct validate() function of ActionForm in Action class ? I suppose it is possibly to make such action direct after initialize of form beans. It is better from my point of view to include such thing in StrutsCX core. Isn't it. Thank you. Best regards/Mit freundlichen Grüßen. Kiryl Navyshny Software Entwickler Deutsche Automobil Treuhand GmbH Helmuth-Hirth-Str 1. 73760 Ostfildern-Scharnhausen Phone: +49 (0)711 / 4503 141 mailto:[email protected] http://www.dat.de ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=ick _______________________________________________ Strutscx-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strutscx-user ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click