Is it good to use JSF and JSP in same time [duplicate]

不羁的心 提交于 2020-08-10 20:12:05

问题


Im begginer at programming and im trying to create one simple site for booking movie tickets. So i created JSP pages for admin home page, user home page, login page and register page. I just want to know, because I want to now make home page for my site and I want to store all this pages in that home page so users can jump form one to another. So my question is, is it good to use JSP for login and register forms with mysql, and for home page, should I use JSF or JSP?


回答1:


I would stick to only one of them in the whole site. Do keep in mind that JSF uses JSP underneath. You can think of JSP as a building block for JSF. So, if you decide to use JSF, you will be using JSP in your JSF views.

I personally don't like JSF style programming. It might conflict with some JavaScript usage of your site, and tracking down errors might be difficult if you don't have enough experience and knowledge of the framework. But that is just my experience.

If I were you, I would pick from:

a) Servlet Controllers and JSP VIEWS

or,

b) SpringMVC Controllers with JSP VIEWS.



来源:https://stackoverflow.com/questions/63266720/is-it-good-to-use-jsf-and-jsp-in-same-time

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!