Skip to Content
Former Member
Sep 28, 2007 at 09:58 AM

List uses multiselection : Exception


Hi experts,

I am developing an application where on 1st JSP a listbox is used whose model is set with SingleSelection property. When i select an entry from it, it should take me to next jSP with selected entry on it.

But it throws exception saying <b>List uses multiselection.</b>. Though i set model attribute to single selection,why then it throws this error?

I found below line is the cause of exception

objlistbox.selected = lb.getSingleSelection();

// selected is String declared in bean and lb is listbox object

if i use this line to get the selected entry, the exception is thrown.

any clues?