This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Populating a drop down with the values from database
 
Similar Threads
html:select - maintain incoming value in drop down box
help please
how to use horizontal_scroll bar to html:select
Struts No getter method problem
update html:options