在JSP中创建级联下拉列表

问题描述:

大家好,



如何创建一个带有3个级联或链式下拉列表框的JSP前端,所有这些都会询问SQL Server数据库表? />


第一个下拉列表将有一个类似select * from column_name的语句,在此下拉列表中选择的值将用于第二个select语句,该语句将填充第二个下拉列表list和第二个中选择的值将用于第三个等的select语句。



我对JSP和Web开发一般都是新手。虽然我已经设法创建了一个表单,其中第一个下拉列表使用jstl填充了select * from column_name,但是找不到任何关于从何处开始的明确指导。有人可以提供指导吗?我正在使用Eclipse Helios。



提前致谢。



AJF

Hi all,

How do I create a JSP front end with 3 cascading or chained dropdown list boxes all of which interrogate a SQL Server database table?

The first dropdown list will have a statement like "select * from column_name" and the value selected in this dropdown will be used in a second select statement which will populate the second dropdown list and the value selected in the second will be used in the select statement for the third etc.

I am completely new to JSP and web development in general. Although I have managed to create a form with the first dropdown list populated with the "select * from column_name" using jstl, but can't find any clear guidance on where to go from here. Can someone provide guidance please? I am using Eclipse Helios.

Thanks in advance.

AJF

看你也可以用jquery来做。通过以下链接,这将有助于你很多

cascading-dropdown -using-jquery.html [ ^ ]

级联-dropdown-list-using-json / [ ^ ]
see you can do it using jquery also. Go through following links which will help you lot
cascading-dropdown-using-jquery.html[^]
cascading-dropdown-list-using-json/[^]