Announcement Announcement Module
Collapse
No announcement yet.
Using the SPring WEB MVC Framework an example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using the SPring WEB MVC Framework an example

    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

  • #2
    Matt Raible AppFuse implements some functionalities you are asking for.

    Comment


    • #3
      you should take a look at the tutorial Matt Riable wrote for his "Spring Live" book. The tutorial chapter is availbale free for download and implements a CRUD workflow.

      Comment

      Working...
      X