This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Populating a drop down with the values from database
 
jQuery in Action, 3rd edition