<%
pageContext.setAttribute("a","page");
request.setAttribute("a", "request");
session.setAttribute("a","session");
application.setAttribute("a","application");
%>
${a}显示结果为:_________________。
pageContext.setAttribute("a","page");
request.setAttribute("a", "request");
session.setAttribute("a","session");
application.setAttribute("a","application");
%>
${a}显示结果为:_________________。
举一反三
- <% pageContext.setAttribute("a","page"); request.setAttribute("a", "request"); session.setAttribute("a","session"); application.setAttribute("a","application"); %> ${a}显示结果为:_________________。 A: page B: request C: session D: application
- <% pageContext.setAttribute("a","page"); request.setAttribute("a", "request"); session.setAttribute("a","session"); application.setAttribute("a","application"); %> ${a}显示结果为:_________________。
- 某JSP中有如下代码:request.setAttribute("a","request");session.setAttribute("a","session");application.setAttribute("a","application");%>有:${a}则显示结果为:_________________。 A: page B: request C: session D: application
- 在JSP页面中,保存数据的范围由大到小依次是( )。 A: session,application,request,pageContext B: equest,session,application,pageContext C: application,session,request,pageContext D: pageContext,session,request,application
- 使用EL表达式${username}时,username查找顺序为( )。 A: equest、session、application、page B: application、session、request、page C: page 、 request、session、application D: equest、session、page 、application