Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread robin bajaj
Hi Dave, Thanks for the reply. My Desired Scenario: a) When the user submits the form with more than one fields left blank (or with incorrect values), I want to show a general (GLOBAL) message on top of the form saying Following shown mandatory fields were provided with incorrect values b)

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, When the user submits the form with more than one fields left blank (or with incorrect values), I want to show a general (GLOBAL) message on top of the form saying Following shown mandatory fields were provided with incorrect values How

Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread Niall Pemberton
You can also do the same kind of thing that Chris suggests with Struts tags: For your global message, uses the messagesPresent tag to detect if there are errors and then output the appropriate message: logic:messagesPresent bean:message key=error.title.some-fields-are-bad /