File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

how to edit data on a form

chetan kokil

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;


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:
subject: how to edit data on a form
It's not a secret anymore!