在J2EE中,在Server1中doGet和doPost方法中,有如下代码:
request.setAttribute("a","jb");
response.sendRedirect("http://localhost:8080/server/server2");
那么server2中,使用()可以把属性"a"的值取出来
a) String str=request.getAttribute("a")
b) String str=(String)request.getAttribute("a")
c) Object str=request.getAttibute("a")
d) 取不出来
request.setAttribute("a","jb");
response.sendRedirect("http://localhost:8080/server/server2");
那么server2中,使用()可以把属性"a"的值取出来
a) String str=request.getAttribute("a")
b) String str=(String)request.getAttribute("a")
c) Object str=request.getAttibute("a")
d) 取不出来
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货