java-web查询系统

1:select标签.选择列表~

让从数据库得到的科目名称全部放入一个ArrayList里,用for循环将其遍历。数据库存取暂不介绍。

效果图:

classC班没有此分数段,所以我改成classA

page2:

String name = request.getParameter("xx");
String name2 = request.getParameter("cc");
String xxx1 = request.getParameter("s");
String xxx2 = request.getParameter("t");

将page1的学科xx、班级cc、分数s---分数t保存到request。

 Integer.parseInt:  将字符串类型转换成 Integer类型。  (我对此理解就是讲String对象型转换成可以相加减的整数型)

 

通过传入4个参数,将数据库的信息存入ArrayList,在遍历。

posted on 2014-11-28 17:35  lulup  阅读(720)  评论(0编辑  收藏  举报

导航