When your action calls the business layer validation it will catch the exception that is thrown then translate it into an ActionError for that form field.

David



From: "scarter" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Declarative Exception Handling Options
Date: Fri, 28 Feb 2003 10:58:22 -0500

I'm using struts declarative exception handling mechanism, however, I
need to associate a custom exception type with a specific field on the
page so that they can be handled similar to exceptions that occur as a
result of the validator.  For example, we have built a custom extension
that highlights a particular field on the screen when an exception
related to that field occurs.  This works great for validations defined
in the validation.xml file, however, every now and then, a business
validation that is associated with a specific field exists within a
business component and because we don't allow presentation component
references to exist within our business tier, we can't associate a
specific field to the message.  It would be great if the declarative
exception handling mechanism in struts allowed us to make this
relationship.  Any ideas?


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to