求大神速速注解!JSP!{List rooms = (List)session.getAttribute(Constants.ROOM_LIST_KEY);Room room = null;String sid=request.getParameter("kkdwid");int kkdwid = Integer.valueOf(sid).intValue();if(rooms==null){jsgl jsglsl=new jsglimp();rooms

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/06 06:20:20

求大神速速注解!JSP!{List rooms = (List)session.getAttribute(Constants.ROOM_LIST_KEY);Room room = null;String sid=request.getParameter("kkdwid");int kkdwid = Integer.valueOf(sid).intValue();if(rooms==null){jsgl jsglsl=new jsglimp();rooms
求大神速速注解!JSP!
{List rooms = (List)session.getAttribute(Constants.ROOM_LIST_KEY);Room room = null;String sid=request.getParameter("kkdwid");int kkdwid = Integer.valueOf(sid).intValue();if(rooms==null){jsgl jsglsl=new jsglimp();rooms = (List)jsglsl.getRoomsByKKDWID(kkdwid);}求详细点!

求大神速速注解!JSP!{List rooms = (List)session.getAttribute(Constants.ROOM_LIST_KEY);Room room = null;String sid=request.getParameter("kkdwid");int kkdwid = Integer.valueOf(sid).intValue();if(rooms==null){jsgl jsglsl=new jsglimp();rooms
//从session中取出Constants.ROOM_LIST_KEY的值放到List中
List rooms = (List)session.getAttribute(Constants.ROOM_LIST_KEY);
//rooms初始为空
Room room = null;
//从request中获取kkdwid的值
String sid=request.getParameter("kkdwid");
//将取出的sid由字符型转化成整型
int kkdwid = Integer.valueOf(sid).intValue();
if(rooms==null){
//实例化类jsgl的对象jsglsl
jsgl jsglsl=new jsglimp();
//传入kkdwid,通过jsglsl对象调用jsgl类的方法getRoomsByKKDWID(),再强制转化为List类型
rooms = (List)jsglsl.getRoomsByKKDWID(kkdwid);