"Robert J. Sanford, Jr." wrote: > i agree with that but i think we might have some friendly > disagreement as to what constitutes business logic and > what doesn't. the original topic of this thread was sorting > and the concern that hitting an action bean and/or jsp was > too heavy. my personal opinion is that if a client is > allowed to sort data then there is a high liklihood that > sorting is a function of presentation rather than business > logic.
I'd say that displaying the rows in alternating colors is a function of the presentation. But what order the rows are given is business logic, and should be part of the business API. Ordering rows one way or another is something that your application does -- it reports by the last name, or invoice date, et cetera. And these are things that should be expressed in the queries and maybe optimized by the DBA. The real test case is this: OK, we're not using browsers any more. Users an can now request a report as a PDF as an email attachment in any supported order. Now how does the data get ordered? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/struts/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>