Announcement Announcement Module
No announcement yet.
Spring MVC delete method Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring MVC delete method

    I am trying to implement delete method in my spring mvc but it is not working.I can save and list the entries .Can anyone help me in giving example of spring controller delete method and its corresponding jsp. I do not want to use java script.


    Please refer to the following stackoverflow link for detail question.


  • #2
    Hi Amzi,

    Couple of questions:
    - is the delete.html on the link is updated one? I see - <a href="delete">DELETE</a> code, but you have not mentioned which controller should be invoked?
    - Also, you can pass only ID instead of passing whole person object?

    It's difficult to help without seeing the code but you can follow below tutorial - Refer the way how Krams is passing the id in the delete URL in personspage.jsp

    Let me know if case you have any further questions!