Eclipse设置JSP页面为HTML5格式
2019-06-24 本文已影响0人
涎涎
- 设置:window ---> preferences ---> web ---> jspFiles ---> Editor ---> Templates ---> New JavaServer Faces(JSF) Page (html) ---> Edit...
<%@ page language="java" contentType="text/html; charset=${encoding}" pageEncoding="${encoding}"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=${encoding}">
<title>Insert title here</title>
</head>
<body>
<f:view>
${cursor}
</f:view>
</body>
</html>
-
测试
如图所示:测试成功
以上就是我对于 Eclipse设置JSP页面为HTML5格式 的解决方法
==================================================================
分割线
==================================================================
博主为咯学编程:父母不同意学编程,现已断绝关系;恋人不同意学编程,现已分手;亲戚不同意学编程,现已断绝来往;老板不同意学编程,现已失业三十年。。。。。。如果此博文有帮到你欢迎打赏,金额不限。。。