简体   繁体   English

我可以在Java Web应用程序中使用使用Servlet的facelet吗?

[英]Can I use facelet using servlet for java web application?

I am using facelet and servlet so, is it possible to use facelet with servlet like jsp with servlet ? 我正在使用facelet和servlet,是否可以将facelet与servlet一起使用,例如jsp与servlet?

and how much it is compitible and which one is better ? 多少才是最合适的?哪个更好?

As explained in Java EE 6 Tutorial: Introduction to Facelets (emphasys mine): Java EE 6教程:Facelets简介 (emphasys我的)中所述:

The term Facelets refers to the view declaration language for JavaServer Faces technology . 术语Facelets是指JavaServer Faces技术的视图声明语言。 JavaServer Pages (JSP) technology, previously used as the presentation technology for JavaServer Faces, does not support all the new features available in JavaServer Faces in the Java EE 6 platform. 以前用作JavaServer Faces的表示技术的JavaServer Pages(JSP)技术不支持Java EE 6平台的JavaServer Faces中可用的所有新功能。 JSP technology is considered to be a deprecated presentation technology for JavaServer Faces. JSP技术被认为是JavaServer Faces不推荐使用的表示技术。 Facelets is a part of the JavaServer Faces specification and also the preferred presentation technology for building JavaServer Faces technology-based applications. Facelets是JavaServer Faces规范的一部分,也是用于构建基于JavaServer Faces技术的应用程序的首选表示技术。

As you can notice, Facelets works with JSF, not with plain servlets. 如您所见,Facelets与JSF一起使用,而不与普通servlet一起使用。

More info: 更多信息:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Java Web应用程序上载文件,但不使用Java Servlet - Upload file with java web application but not using Java servlet Java Web应用程序-Servlet问题 - Java Web Application - Servlet Problem java Web应用程序中的Servlet示例 - Servlet example in the java web application 如何在Spring Framework Java Web应用程序中添加Servlet? - How do I add a servlet to spring framework java web application? 我可以使用REST Web服务和spring boot将servlet中的应用程序转换为Spring吗? - Can I convert my application in servlet to Spring using REST web service and spring boot? 使用Servlet在Java Web应用程序中渲染CSS和JS - Rendering css and js in a Java web application using servlet 我可以同时使用php和java作为同一个Web应用程序 - can I use both php and java for a same web application 我可以使用Maven将BootStrap和JQuery插入Java Web应用程序吗? - Can I use Maven to insert BootStrap and JQuery into a Java web application? 如何在MVC Web应用程序(Servlet和Jsp)中处理异常? - How can I handle exception in a MVC web application (Servlet and Jsp)? 我想使用连接池,但是我的Java应用程序不是servlet - I want to use Connection Pooling but my java application is not a servlet
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM