问题:
在J2EE中,在Servlet1中的doGet和doPost方法中只有如下代码:
request.setAttribute("jb","aptech");
response.sendRedirect("http://localhost:8080/servlet/Servlet2");
那么在Servlet2中使用()可以把属性jb的值取出来。
A . String str=request.getAttribute("jb");
B . String str=(String)request.getAttribute("jb");
C . Object str=request.getAttribute("jb");
D . 取不出来
在J2EE中,在Servlet1中的doGet和doPost方法中只有如下代码:
request.setAttribute("jb","aptech");
response.sendRedirect("http://localhost:8080/servlet/Servlet2");
那么在Servlet2中使用()可以把属性jb的值取出来。
● 参考解析
本题暂无解析