美文网首页JSP专题
JSP中应用JS代码

JSP中应用JS代码

作者: 神坛下的我 | 来源:发表于2018-08-17 14:55 被阅读0次

index.jsp

<form action="result.jsp" method="post">
        <button type="submit">Submit</button>
    </form>

result.jsp

<body>
    <%
        out.println("<script>alert('Resgiter Success!');window.location.href='index.jsp';</script>");
    %>
</body>
5.PNG

相关文章

网友评论

    本文标题:JSP中应用JS代码

    本文链接:https://www.haomeiwen.com/subject/jrttiftx.html