如何在 中打印 HTTP 请求参数<jsp:body>
?
以下不起作用。
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
<t:basePage>
<jsp:attribute name="title">Reset Password</jsp:attribute>
<jsp:attribute name="lib">lib/</jsp:attribute>
<jsp:attribute name="bodyClass">loginPage</jsp:attribute>
<jsp:body>
<%= request.getParameter("msg"); %>
</jsp:body>
</t:basePage>
我收到此错误:
HTTP Status 500 - /message.jsp (line: 39, column: 22) Scripting elements ( <%!, <jsp:declaration, <%=, <jsp:expression, <%, <jsp:scriptlet ) are disallowed here.