File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • 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
  • 0
  • 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: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic