This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes How to load data from database in dropdown list using in struts 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 » Databases » JDBC
Bookmark "How to load data from database in dropdown list using in struts" Watch "How to load data from database in dropdown list using in struts" New topic
Author

How to load data from database in dropdown list using in struts

Mariraj Sankar
Greenhorn

Joined: Feb 03, 2011
Posts: 5

i had tried but i got error

This is Action class(DeleteAction)



This is actionbean (DeleteEmployee)




This is bean class(Crew)



How to create DAO please provide solution
;;;;
i am very confused.....

moderator: added code tags
mahesh shinde
Ranch Hand

Joined: Jul 24, 2009
Posts: 69

Let Me try first some simple
DAO basically contains database related methods
In Your case if you create one new class suppose BookDAO
You can put the getBooks() method in that class
and its become your DAO.
Call that method using creating the instant of DAO class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to load data from database in dropdown list using in struts