| Author |
Need An Example of How to Call a Controller fuction via button
|
Jeff Bowers
Greenhorn
Joined: Nov 04, 2010
Posts: 2
|
|
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
Joined: Jan 10, 2002
Posts: 56232
|
|
|
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?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Jeff Bowers
Greenhorn
Joined: Nov 04, 2010
Posts: 2
|
|
|
If you could show me how to leverage a form element, that would be fantastic.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56232
|
|
|
|
 |
 |
|
|
subject: Need An Example of How to Call a Controller fuction via button
|
|
|