Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes Populating a drop down with the values from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Populating a drop down with the values from database" Watch "Populating a drop down with the values from database" New topic
Author

Populating a drop down with the values from database

pradeep Arun
Greenhorn

Joined: Oct 07, 2005
Posts: 1
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
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Maybe you are using a capital 'L' when setting it?

Please show us the code where you set it to session.


A good workman is known by his tools.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Populating a drop down with the values from database