该方法用于设置 request 对象的属性。
语法:
参数说明:
设置 request 对象属性值,关键代码如下:
<%
String uName = "tom";
String uSex = "man";
String uAge = "26";
String uCity = "长春";
String uTel = "13999999";
request.setAttribute("name",uNname);
request.setAttribute("sex",uSex);
request.setAttribute("age",uAge);
request.setAttribute("city",uCity);
request.setAttribute("tel",uTel);
%>