The type of button in JSP has submit, button,reset three kinds.
The button is a normal button and can have its response event.
Reset from the literal can be seen is the meaning of reset, click on the contents of the form to empty.
The
submit submit button, which you can use the action= "*****,jsp" Item of the form to jump to another page. When a form has multiple submit buttons and needs to jump to a different page, the action is emptied then the script is used to jump. < Script language = "javascript " >
<!--
Function &nbs P; check () ... {
frm.action = "checkname.jsp " &NBSP;
}
function mysubmit () ... {
frm.action = "zhuce.jsp " &NBSP;
}
</Script >
< Form method = Post action = " " na me = "frm " >
< Input type = "submit " onc lick = "check () " >
< Input type = "submit " &nb Sp;onclick = "Mysubmit () " >
</form >
PS: Reference csdn--http://topic.csdn.net/u/20070823/16/a612f99b-b283-47ff-a64b-ca572e4dde3a.html