| Author |
Should I abandon servlets when using JSF ?
|
Edisandro Bessa
Ranch Hand
Joined: Jan 19, 2006
Posts: 584
|
|
Hi guys, Could you please tell me where is the best place to put business logic when using JSF ? Before start using JSF, I was used to call my business logic from within Servlets through some business delegate classes. After migrate to JSF, I am still using my business delegate classes but from within Managed and Backing beans instead. I don't see any reason for using servlets anymore ? Am I correct ? Should I abandon servlets when using JSF ? Thanks a lot. Edisandro.
|
"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
|
 |
Zein Nunna
Ranch Hand
Joined: Mar 31, 2005
Posts: 245
|
|
Edisandro, Yes don't really require the servlets anymore if you're using JSF. Your business logic goes in methods inside the beans. Regards Zein
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14460
|
|
|
However, the beauty of JSF is that you don't have to convert the entire project at once. Add JSF functionality when it's convenient - the older code will continue to run as long as you follow J2EE best practices. Which mostly means paying attention to variable scope.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
Edisandro Bessa
Ranch Hand
Joined: Jan 19, 2006
Posts: 584
|
|
|
Thanks a lot guys for your prompt replies.
|
 |
 |
|
|
subject: Should I abandon servlets when using JSF ?
|
|
|