Hello,

I'm wondering how Struts users handle the problem of separating business 
validation from page validation. By page validation, I mean things that 
can be accomplished with the Struts Validator, such as checking field 
lengths. And by business validation, I mean things that the business 
layer should decide, like whether certain combinations of fields are 
allowed, depending on various conditions.

The problem I have is that, in order to return the business errors back 
to the page, some knowledge of the page layer is necessary. For example, 
if a business error refers to a certain form field, you may want to 
highlight that field on the page. To do so, you'll need to know the name 
of the field (e.g. to add it to ActionErrors).

But if the two layers are supposed to be separate, how do you 
communicate this information from the business layer to the page layer?

Am I making any sense? Thanks,

Jacob


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

Reply via email to