aspose file tools*
The moose likes Struts and the fly likes how to edit data on a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to edit data on a form" Watch "how to edit data on a form" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to edit data on a form