2004.12.15 Struts implements multiple buttons in the same FORM!

xiaoxiao2021-03-06  46

page:

In Action:

String command = (string) Request.getParameter ("Command");

IF (Command.equals ("OK")) {............................

} else IF (Command.equals ("Previous")) {.......................

} else if ("new")) {.......................

}

PS: Only in HTML: Text, add οnclick = "command.value = 'sele';" after entering the information, successfully submit />

转载请注明原文地址:https://www.9cbs.com/read-80476.html

New Post(0)