aspose file tools*
The moose likes JSP and the fly likes Need An Example of How to Call a Controller fuction via button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Need An Example of How to Call a Controller fuction via button" Watch "Need An Example of How to Call a Controller fuction via button" New topic
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: 60997
    
  65

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 60997
    
  65

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need An Example of How to Call a Controller fuction via button