JSF Questions and Answers

Mention what is the difference between JSF and Struts?

  • JSF is a specification
  • JSF action methods can be applied in Java objects
  • JSF has event model which reacts on actions, value changes and phase changes in JSF lifecycle
  • JSF component tag does not produce HTML-instead they declare a component renderer pair on the server
  • By mentioning a navigation rule in the faces configuration file, JSF supports navigation
  • JSF uses dependencies injection
  •  Struts is an open source framework
  • Struts actions are restricted to struts API only
  • There are no such event models in struts
  • Struts tag generates HTML directly
  • To define navigation struts uses the notation
  • There is no dependencies injection in struts