注意:此页面搜索的是所有试题
题目内容
(湖南大学-网络编程)
给定一个JSP程序源码如下:
<jsp:include page = “two.jsp”flush = “true”>
<jsp:param name = “location”value = “beijing”/>
</jsp:include>
在two.jsp中加入( )代码片断可以输出参数location的值。
a)<jsp:getParam name = “location”> b) <jsp:getParameter name = “location”>
c) <% = request.getAttribute(“location”)%> d)<% = request.getParameter(“location”)%>
<jsp:include page = “two.jsp”flush = “true”>
<jsp:param name = “location”value = “beijing”/>
</jsp:include>
在two.jsp中加入( )代码片断可以输出参数location的值。
a)<jsp:getParam name = “location”> b) <jsp:getParameter name = “location”>
c) <% = request.getAttribute(“location”)%> d)<% = request.getParameter(“location”)%>
参考答案