多项选择题
在J2EE中,在aa.jsp中有行代码:
<%><% request.setAttribute("Co.","jb-aptech"); %>
在bb.jsp中有行代码:
<% out.println((String)request.getAttribute("Co.")); %>
<%>
为了使得在bb.jsp中的如上代码可以显示“jb-aptech”,可以使用()方法。%>%>
A.在aa.jsp中使用<form method=post action="bb.jsp">把请求提交到bb.jsp
B.在aa.jsp中使用<jsp:forward file="bb.jsp" />把页面重定向到bb.jsp
C.在aa.jsp中使用<% response.sendRedirect("bb.jsp"); %>把页面重定向到bb.jsp
D.在aa.jsp中使用<%@ include file="bb.jsp" %>包含页面bb.jsp
E.在aa.jsp中使用<% config.getServletContext().getRequestDispatcher("/bb.jsp").forward(request,response); %>把页面重定向到bb.jsp
相关考题
-
单项选择题
public class MyExample{ public static void main(String args[]) { System.out.println(args[2]) }} 如果以下列命令行运行: java MyExample Aptech online 上述代码将输出()。
A.MyExample
B.Aptech
C.Online
D.产生异常: "java.lang.ArrayIndexOutOfBoundsException" -
多项选择题
下列不是Java的保留字的是()。
A.if
B.then
C.float
D.until
E.case -
单项选择题
在Java语言中,会在前个组件相同行上放置组件,直到该组件超出容器的宽度,然后从新行开始,并把添加的组件居中放置的布局管理器是()。
A.BorderLayout
B.FlowLayout
C.GridLayout
D.CardLayout
E.GridBagLayout
