Expecting "jsp:param" standard action with "name" and "value" attributes错误

来源:互联网 发布:linux nc -4 -i 编辑:程序博客网 时间:2024/05/21 10:37

原因:当<jsp:include>标签没有参数时,<jsp:include page="include/header.jsp">的配对标签</jsp:include>不能换行。修改后html文件如下:


<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ss</title>
</head>
<body>
<jsp:include page="include/header.jsp"></jsp:include><!-- 此处必须在同一行,不能换行 -->
dd
</body>
</html>

0 0
原创粉丝点击