首页 > 代码库 > JSP 刷新

JSP 刷新

 

返回发现原来的在页面并刷新:

servlet 中:

 

            out.print("<Script>alert(‘Add Success!‘);history.back();location.reload();</Script>‘" );

 

 

 

 

    out.print("<script  language=javascript>alert(‘Add Success!‘)</script>") ;            out.print("<script language=javascript> history.back() </script> ") ;

 

JSP 刷新