Eclipse设置JSP页面为HTML5格式

涎涎原创约 236 字小于 1 分钟...EclipseEclipse

18-Eclipse设置JSP页面为HTML5格式

注意

本博文仅供学术研究和交流参考,严禁将其用于商业用途。如因违规使用产生的任何法律问题,使用者需自行负责。

  1. 设置: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>
  1. 测试
  • 如图所示:测试成功

分割线


相关信息

以上就是我关于 Eclipse设置JSP页面为HTML5格式 知识点的整理与总结的全部内容,希望对你有帮助。。。。。。。

上次编辑于:
贡献者: 涎涎
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.4