1 Reply Latest reply on Jul 5, 2002 10:43 AM by crackers

    Where should I validate my attributes?

    carlos.grahl

      Hi, all!

      I'm new to Jboss and Patterns. I was reading the 'Core J2EE patterns' book (great book!), and I have a question:

      Where should I put my attributes validation (like InvoiceDate > today, etc..)...?

      I can put it in the presentation level (on the validate() function of struts, for example). But I need to put it on the server-level. I don´t know where.. Maybe on facade, on a session bean, etc..

      Where?

      Anyone can help me, please?

      TIA

      Carlos Augusto Grahl