sandeeps kulkarni wrote:
i use request.setAttribute("cityList",cityList);
in my jsp file as <%request.setAttribute("cityList","cityList");%>
after that i got
No getter method for property: "cityNames" of bean: "cityList" error.
I think the property is "cityName" and NOT "citynames"
Why are you setting request attribute in JSP, there is no need. Also the example I given previously purely based on some assumption and understanding of your code snippet. The given link describe all the attributes for html:optionsCollection tag.