I'm considering placing specific business logic methods in the JavaBean that
has the business elements used by these methods. In other words, something
like this -
public class User
{
private String userID;
.....
public User() {}
... getters / setters for attributes ...
public Object validateUserID()
{
... business logic ...
}
}
The validateUserID method would call appropriate DAO's, etc. as needed. My
struts action would instantiate the bean, then call the validateUserID
method. Is this an OK approach to encapsulating related business 'stuff'
together? Any obvious problems that I am completely overlooking?
Thanks!
Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS 66219
(913) 577-1496
[EMAIL PROTECTED]
This transmission (and any information attached to it) may be confidential and is
intended solely for the use of the individual or entity to which it is addressed. If
you are not the intended recipient or the person responsible for delivering the
transmission to the intended recipient, be advised that you have received this
transmission in error and that any use, dissemination, forwarding, printing, or
copying of this information is strictly prohibited. If you have received this
transmission in error, please immediately notify LabOne at the following email
address: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]