Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need An Example of How to Call a Controller fuction via button

 
Jeff Bowers
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. This is my first time posting here, and I hope some one can help me. I am stuck on an MVC user administration application. Basically, the page presents a viewer with a list of users, and then lets you select a user via radio button and delete that user from the database table. I can't for the life of me find a simple way to do that. I am sure I am being dense, and I am sorry. I'd greatly appreciate any help anyone can give me.

P.S. I am not sure if this is the correct forum for this, but I put it here because it is a button on my jsp page. If this is wrong, I am sorry. Just tell me and/or move it.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you hung up on? Just invoking a servlet from a button? You can do it easily with either JavaScript of by leveraging a form element. What's your preference?
 
Jeff Bowers
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you could show me how to leverage a form element, that would be fantastic.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic