View Full Version : Easy One: Where are the Errors
moacsjr
Feb 8th, 2006, 02:58 PM
Hi,
How to get the forms validation errors from the request. What is the Key to search for the attribute that has the errors? I donīt want this in jsp, I just want to inspect the errors my self.
Thanks any help!
Moa :)
EndlessWinter
Feb 9th, 2006, 04:50 AM
And easy answer - the key is 'errors'. Then call getAllErrros() obn the result to inspect all errors for all command properties
moacsjr
Feb 9th, 2006, 08:10 AM
Hi,
I catch ServletRequestBindingException now I want to show the errors with messages resolved by the messageSource.
I need an explample.
EndlessWinter
Feb 9th, 2006, 10:46 AM
it is better to do with spring:message tag. Do you still want to do this not in JSP?
moacsjr
Feb 9th, 2006, 03:22 PM
Well Iīm not using jsp.
It seams that this is something not really easy to do wright.
I need to report the bind/validation errors to the calling application not to a jsp page.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.