-1
<button type="button" class="btn btn-default button-colorcancel fontcancel">Cancel</button>

I want this button to call a servlet when I click it, do I need to use jQuery?

Chong
  • 59
  • 1
  • 7

1 Answers1

0

A simple way to do it without using javascript is to use a form and set the servlet as the action:

http://www.w3schools.com/tags/att_form_action.asp

Servlet returns "HTTP Status 404 The requested resource (/servlet) is not available"

Then you can modify your submit element to match what you have on your current button:

how to change the submit button appearance?

Community
  • 1
  • 1
ZRoman
  • 180
  • 6