Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

dropdownbox Selection in jsp

hi everybody,

In jsp i have 3 drop down boxes are there (say country, state , district )

if i select country means , that coressponding states should populate in that

State dropdown box. , in the same way if i select state means that

corresponding districts must populate in the District drop down box....

so plese send me the ......

thanks

Former Member
Former Member replied

Hi,

If it is a simple jsp then put the options tag in the while(rs.next) loop.

e.g :

while(rs.next){

<option>rs.getString("State");</options>

}

Or else...put in the arraylist and use a loop to that of the size of the arraylist.

e.g

for(int i = 0; i<= arr.size; i++ ){

<option>arr.get(i)</options>

}

If you use any of the two options it will work.

Thanks

Ritu

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question