Eclipse设置JSP页面为HTML5格式
原创约 236 字小于 1 分钟...
18-Eclipse设置JSP页面为HTML5格式
注意
本博文仅供学术研究和交流参考,严禁将其用于商业用途。如因违规使用产生的任何法律问题,使用者需自行负责。
- 设置: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格式 知识点的整理与总结的全部内容,希望对你有帮助。。。。。。。
Powered by Waline v2.15.4