执行包含onclick事件的相同JSP

时间:2012-02-22 11:56:52

标签: jsp onclick

我想在onc​​lick事件后执行ABC.jsp,这里是代码

ABC.jsp

<%@ page import = "java.sql.*"%>
<%..........some jsp code%>
<html>
<head>
<body>
<%
   .........jsp code
%>

<input type = "button" value = "submit" onclick = "abc.jsp"/>

</body>
</head>

I want the jsp to execute after i click on submit butnothing happens when i click submit

</html>

1 个答案:

答案 0 :(得分:0)

<form action="abc.jsp">
<input type="submit" value="submit">
</form>