Java web 的一些问题
问题:Expecting"jsp:param"standardactionwith"name"and"value"attributes源代码:<%@pagecontent...
问题:Expecting "jsp:param" standard action with "name" and "value" attributes
源代码:<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<html>
<body>
<!-- 只是把文件包含进来 -->
<%@ include file ="static.html" %>
<a href="response.jsp">转到response.jsp页面=》</a><br>
<h3>这个例子用来说明两种include指令有何不同</h3>
<!-- 下面把从static.html中获得的参数传给response.jsp -->
<!-- response.jsp是动态包含进来的 -->
<jsp:include page="response.jsp" flush="true">
<!-- 获取name的值,并把它赋给a1 -->
<jsp:param name="a1" value="<%=request.getParameter("name") %>"/>
<!-- 获取password的值,并把它赋给a2 -->
<jsp:param value="<%=request.getParameter("password") %>" name="a2"/>
</jsp:include>
</body>
</html>
求大神解释 展开
源代码:<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<html>
<body>
<!-- 只是把文件包含进来 -->
<%@ include file ="static.html" %>
<a href="response.jsp">转到response.jsp页面=》</a><br>
<h3>这个例子用来说明两种include指令有何不同</h3>
<!-- 下面把从static.html中获得的参数传给response.jsp -->
<!-- response.jsp是动态包含进来的 -->
<jsp:include page="response.jsp" flush="true">
<!-- 获取name的值,并把它赋给a1 -->
<jsp:param name="a1" value="<%=request.getParameter("name") %>"/>
<!-- 获取password的值,并把它赋给a2 -->
<jsp:param value="<%=request.getParameter("password") %>" name="a2"/>
</jsp:include>
</body>
</html>
求大神解释 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询