aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Populating a drop down with the values from database