wood burning stoves*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using same form for insert and update" Watch "Using same form for insert and update" New topic

Using same form for insert and update

RaviSingh Kumar
Ranch Hand

Joined: Sep 04, 2007
Posts: 52
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

Joined: Sep 29, 2008
Posts: 12617

Validate on the action, not on the form.
I agree. Here's the link: http://aspose.com/file-tools
subject: Using same form for insert and update
Similar Threads
JSF Registration Form.
how to insert null values into table
Radio Button,Check Boxes
best way to send xml
How to generate a jsp page with form in struts where input values are pre-generated?