The following ones are my sample ones, but when I'm using optionsCollection with the property attribute it gives an error saying that "No getter method available for property label for bean under name com.mreddy.sample.DepartmentUtil" . Pls let me know how to solve this issue ASAP.
I have in jsp the following tag Custome tag (dataSet and DatSource tags)
The suggestion by Kailash looks correct to me. If you do not give the label and value attributes then the tag will call getLabel() and getValue(). In this case the object is DepartmentUtil which does not have these methods.
P.S. The "Disable smilies in this post" option can be really helpful.