How to use spring mvc for adding,editing , deleting
a machine category obejct
say .... MCategory object
it has only id and name as attri.
Hibernate is used for persisting.
In one form i want to have the functionality of add, edit and delete option .
In one part of the Form will have one entry screen in which one input
field of name of the machine category will be there .
In another part of the form , there will be list of already
entered m/c category . in each row of m./c category , there will a edit and a delete button by which edit and deleting
can take place.
this form will be bounded to command object called
mcategory
1. when adding , it will take to one handler or controller
. this controller will just call the service add method
2. when editing ,there will be hidden id , this will take to
another controller and this controller will make
the command object and return back to the form for
submit after editing
3. when deleting , there will be also hidden id , this will take
to another controller and this controller will
delete the machine category of this id
How to implement the above using Spring web MVC
TIA
Abraham


Reply With Quote