• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Populating a drop down with the values from database

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am getting the following error when i tried to populate a dropdown with values from database.

Error:
javax.servlet.jsp.JspException: Cannot find bean under name searchlist

i am setting the object in session.

<html:select property="searchType" style="width:120px" name="SearchForm">
<html ption value="">---Select---</html ption>
<html ptions collection="searchlist" property="searchCode" labelProperty ="codeAndName"/>
</html:select>

Need f1 f1!!.


Regards,
Pradeep
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe you are using a capital 'L' when setting it?

Please show us the code where you set it to session.
 
reply
    Bookmark Topic Watch Topic
  • New Topic