--- Francisco Exposito Aguilera wrote: > I am doing just now a part for an administrator user
> and I want to show the error most clear as possible. Oh, if it's for an admin that would understand and be able to do something, then sure, be as detailed as you want :) > a) I must do an extra request to the database in > order to know if the user exists to show the user the > ActionMessages. Well... you can rely on getting a database constraint violation if you want; I don't know as it *really* matters. I guess I've just always done a lookup first, as (in my mind, anyway) it's not really "exceptional" that someone might choose the same username as somebody else. I tend to view database exceptions as something that shouldn't happen unless something is really *wrong* wrong. There may not be a better reason than preference on this issue :) Seriously, I'm not sure there's any one right way to do this; the declarative exception handling lets the developer decide what exceptions to handle in the framework, or they can be caught earlier and ActionMessages can be used. d. ____________________________________________________________________________________ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]