Announcement Announcement Module
Collapse
No announcement yet.
Spring MVC delete method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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.

    thanks

    Please refer to the following stackoverflow link for detail question.



    http://stackoverflow.com/q/17708465/1403843

    thanks

  • #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
    http://krams915.blogspot.com/2011/01...notations.html

    Let me know if case you have any further questions!

    Comment

    Working...
    X