Meaningless Drivel is fun!*
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
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