Struts---用ajax实现三级下拉列表
Struts---用ajax实现三级下拉列表
下面的就是学生注册时需要的学院,专业,班级,三层列表,
学院:
<html:select property="instituteId" onchange="getDepartments(this.value)">
<html:options collection="institutes" property="value" labelProperty="label"/>
</html:select>
专业:
<html:select property="departmentId" styleId="department"
onchange="getClasses(this.value)"></html:select>
班级:
<html:select property="classId" styleId="classid" ></html:select>
学院是上来就应该有的,我们把他放到了LabelValueBean里
public Vector<LabelValueBean> getInstitutes()
{
Connection connection = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try
{
connection = getConnection();
pstmt = connection.prepareStatement( "select * from institute" );
rs = pstmt.executeQuery();
Vector<LabelValueBean> institutes = new Vector<LabelValueBean>(); institutes.add( new LabelValueBean( "请选择所在学院", "" ) );
while ( rs.next() )
{
institutes.add( new LabelValueBean(
rs.getString( "institute" ), rs.getString( "id" ) ) );
}
return institutes;
}
catch ( Exception e )
{
e.printStackTrace();
}
finally
{
close( rs );
close( pstmt );
close( connection );
}
return null;
}
Struts---用ajax实现三级... 5页 1下载券 Ajax应用之三级联动及注... 9页 1下载券 ajax 三级联动servlet端 3页 免费 ajax 两级联动下拉列表 ... 2页...
JQuery教程实例-Ajax三级... 3页 免费 Struts2 +json+ jquery ... 9页 ... jquery 下拉列表框 改变... 3页 免费 三级联动 使用Jquery实现... 6页 ...
ajax技术实现级联下拉列表代码_IT/计算机_专业资料。比较经典的技术,ajax技术... ajax+php 级联列表 5页 1下载券 Struts---用ajax实现三级... 5页 1下载...
(1) Struts(1) Web Servers(2) Web 开发 (16) 文章档案 2007 年6 月 (...佩服佩服!!!1 回复 更多评论 # re: Ajax实现三级联动下拉框 2006-09-15 11...
id="city"> 城市列表 今日推荐 68份文档 新市场营销法则 助推企业成长 999... ajax实现三级联运下拉框 9页 免费 Ajax实现在textbox中输入... 2页 1下载...
基于jquery的ajax二级联... 20页 免费 Struts2整合jQuery实现A... 5页 ... JS级别联动下拉列表 1页 免费 Jquery特效 97页 1下载券 很齐全的省市县三级...
基于Ajax的动态下拉列表的实现_张玉叶_计算机软件及应用_IT/计算机_专业资料。... ajax实现三级联运下拉框 9页 免费 用Eclipse与AJAX技术在J... 5页 免费 ...
使用AJAX技术实现网页级联下拉列表_计算机软件及应用_IT/计算机_专业资料。? 1O ? (总0 010) 使用 AJA X技术实现网页级联下拉列表 201 4年第 1期 文章编号 ...
基于Ajax的动态下拉列表的实现_计算机软件及应用_IT/计算机_专业资料 暂无评价
34页 5财富值 Struts---用ajax实现三级下... 5页 2财富值...经受 了时间 的考验 , 表 明该 系统设 计合 理 ,功 能实 用 ,满足 了...
热门文档