What is the difference between JSF, Servlet and JSP?

前端 未结 15 1868
北海茫月
北海茫月 2020-11-21 06:41

I have some questions. These are :

  1. How are JSP and Servlet related to each other?
  2. Is JSP some kind of Servlet?
  3. How are JSP and JSF related t
15条回答
  •  余生分开走
    2020-11-21 07:15

    There are also situations where you can favor JSP over JSF. The application nature should be the deciding factor to choose the technology.

    If you have a rich GUI interaction and lot of Java scripting needed then favor JSF. Basically if your GUI app architecture is like Component oriented & even driven like Swing then JSF is the best.

    If the application is just a plain form submitting, not much of GUI interaction needed, then JSP could do well if learning a new tech is an overhead and also complex framework is unnecessary.

提交回复
热议问题