求大神速速注解!JSP!
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/10 16:03:22
求大神速速注解!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);}求详细点!
{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);}求详细点!
//从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);
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);