This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes how populate data from database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how populate data from database" Watch "how populate data from database" New topic
Author

how populate data from database

shivdayal Kushwaha
Greenhorn

Joined: Feb 07, 2009
Posts: 4
Can someone send me the working code

that can populate the list box from a bean.

Its really urgent. i am trying it since 2 days, but till not unsuccessful.
my id is shivdayal.tbt@gmail.com
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Can someone send me the working code

Welcome to the ranch ! We usually do not spit out code like that Explain what your problem is, and how you are trying to do it. What have you got so far ?

Also, there are some important information you need to read, like this, and also this.


[My Blog]
All roads lead to JavaRanch
shivdayal Kushwaha
Greenhorn

Joined: Feb 07, 2009
Posts: 4
Christophe Verré wrote:
Can someone send me the working code

Welcome to the ranch ! We usually do not spit out code like that :) Explain what your problem is, and how you are trying to do it. What have you got so far ?

Also, there are some important information you need to read, like this, and also this.



this is my jsp page

and my action class is look like this


and form class look like this

and example .java class is look like this...





when i am running this code i am getting exception like this please help me
Cannot create iterator for com.wrox.company.ExampleForm@16c1227
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Moving to a more appropriate forum...
karan wadhwani
Greenhorn

Joined: Feb 22, 2005
Posts: 12
>><htmlptionscollection ="ExampleForm"
><htmlptionscollection ="exampleForm" same as you are setting in request.>
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

For the benefit of developers to come, please fix the spelling of "employee" throughout your Java and JSP.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how populate data from database
 
Similar Threads
Populate listbox from sql
Populating a collection by reference
Convert a String[] array
selection box values from database
i want to create a file in the server from the client? is it possible?