Hi, If you are using struts 1.x then u need to have a database code.Call that from your action get the values. Set them to your action form ....thats it....example if u want...
let your action form be someActionform extends ValidatorForm{ private String name; public String getName(){ return name; } public String setName(String name) { this.name = name; } } public someAction extends Action{ function extends............... { someActionForm form = (SomeActionForm)form; uploadName(form); } } thats it... If I am not able to represent idea in right way sorry.. and as Rick said there are many ways to do this..what I showed is the basic way... Regards Viplav public uploadName(SomeActionForm f){ //use connection string to connect to database and return a resultset for example resultset = dbcon.getResult("select name from //name"); f.setName(resultSet.getString(name)); } On 9/21/07, A. Lotfi <[EMAIL PROTECTED]> wrote: > > Hi, > I need to populate a form with data from database, is there any example. > > thank you your help is appreciated. > > > --------------------------------- > Tonight's top picks. What will you watch tonight? Preview the hottest > shows on Yahoo! TV. -- Regards Viplav Kallepu