学习进度条103

<%--
  Created by IntelliJ IDEA.
  User: 19773
  Date: 2021/6/13
  Time: 2:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>词云一下</title>
</head>
<body>
<%
    String cishu = request.getParameter("cishu");
    String[] args = new String[3];
    args[0] = "python";
    args[1] = "D:\\alljava\\untitled3\\src\\test.py";
    args[2]=cishu;
    Process proc = Runtime.getRuntime().exec(args );
    proc.waitFor();
    session.setAttribute("cishu",cishu);
%>
<div align="center">
生成成功,正在跳转!
</div>
<script type="text/javascript">

    window.onload = function(){

        var count = 1;

        setInterval(function(){

            count--;

            if(count == 0){

                window.location.href = "ciyun.jsp";//跳转后的页面

            }else{

                document.getElementById("count-span").innerHTML = count;

            }

        },5000);

    }

</script>
</body>
</html>

 

posted @ 2021-06-14 18:21  独倚高楼凭栏醉  阅读(11)  评论(0编辑  收藏  举报