| Author |
how to edit data on a form
|
chetan kokil
Greenhorn
Joined: Sep 02, 2006
Posts: 9
|
|
HI i am new bie to struts, i want to edit data on a form. i have a single form , through which i enter the data into the database. now i want to use this form only and want to edit the data, so is there any ting. i am using Dispatch Action, looking forward for a positive response. Thanking you Chetan kokil
|
 |
lynn fann
Ranch Hand
Joined: Oct 15, 2006
Posts: 115
|
|
in your actionclass method have something like this Object obj = new Object(); PageForm oForm= (PageForm) form; oForm.setName(obj.getName()); oForm.setId(obj.getId()); in jsp: <html:text property="name"/> 'PageForm' == your actionForm 'Object' == your object class oForm.setName() == will set the respective property value to the form
|
 |
 |
|
|
subject: how to edit data on a form
|
|
|