• Post Reply Bookmark Topic Watch Topic
  • New Topic

Should I abandon servlets when using JSF ?  RSS feed

 
Edisandro Bessa
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Edisandro Bessa
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot guys for your prompt replies.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!