UNLV-ShaneD / unlvCS473kilo

5 stars 4 forks source link

Getting a mapping when post data is submitted to a controller? #13

Closed UNLV-ShaneD closed 12 years ago

UNLV-ShaneD commented 12 years ago

Tagging Branch I can't get post data out of the controller, and when the delete button is clicked, it doesn't call any of my mapped methods. What am I doing wrong?

TaggingController.java

UNLV-ShaneD commented 12 years ago

Okay, it turns out that index() was getting mapped. I added a ModelMap parameter and everything works. I don't understand what type of request is being made when that post goes through, though, and why index is chosen.

UNLV-ShaneD commented 12 years ago

Alright - I'm getting POST data and everything, now. You can reference this work for your own controllers, now. I can't find any decent tutorials for using Spring for forms any other way. I've already wasted hours searching, so I'll just do it how I've been.