aspose file tools*
The moose likes Struts and the fly likes how to populate a form 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 "how to populate a form from database ?" Watch "how to populate a form from database ?" New topic
Author

how to populate a form from database ?

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 161
Hi,

can you please give me an example on how to populate a form from a database , edit it and send it back to the database ?

thanks, I appreciate your help.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This link shows a good example of a database application using the DAO (Data Access Object) pattern. However, it doesn't show you any actual database retrieval and update code, just where you should put that code. However, I suspect you already know how to do that part - it's just standard JDBC code.


Merrill
Consultant, Sima Solutions
majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 161
thank you for your help,

I have a question please,
the user will be presented with a form that has lot of rows from a database, each line will be like this :

ID --- TITLE --- 0(1) 0(2) 0(3) 0(4) 0(5)

the user has only to select one radio button of each line (it's like a survey) and the submit the form back to the database.

1)How to create the last data called (priority) in the database ?

Thanks.
 
Don't get me started about those stupid light bulbs.
 
subject: how to populate a form from database ?
 
Similar Threads
SCJD Assignment
Dynamic Form Creation within a Loop
regarding JTable
cannot see index.jsp in struts
how to populate value in combo box