GeeCON Prague 2014*
The moose likes Struts and the fly likes Using same form for insert and update Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using same form for insert and update" Watch "Using same form for insert and update" New topic
Author

Using same form for insert and update

RaviSingh Kumar
Ranch Hand

Joined: Sep 04, 2007
Posts: 52
Hi,
Am using a form for inserting records in database using struts. In actionform i am validating 13 fields before inserting.

Now i want to use the same form in order to update the inserted record. And i dont want to validate some of the fields(Empid,first name etc) as these fields are prepopulated and disabled. Please let us know how to proceed in this direction.

Thanks in advance

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Validate on the action, not on the form.
 
GeeCON Prague 2014
 
subject: Using same form for insert and update