aspose file tools
The moose likes Struts and the fly likes Using same form for insert and update Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Using same form for insert and update
 
Similar Threads
best way to send xml
JSF Registration Form.
how to insert null values into table
How to generate a jsp page with form in struts where input values are pre-generated?
Radio Button,Check Boxes