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
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 56232
    
  13

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
    
  13

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Need An Example of How to Call a Controller fuction via button
 
Similar Threads
mapping.getInputForward()
HashMap Issues and Such
how to handle browser back button in jsf application
submit form problem
How to send a Java mail through servlet