在<head>
<meta http-equiv=refresh content="5; url=main.jsp">
</head>
用javascript:
<script>
setTimeout("window.location.href='地址'",2000);
</script>
2秒后跳转
<script>
function go(){
window.location="www.sohu.com";
}
</script>
<input type=button value="3秒后转到www.sohu.com" οnclick="setTimeout('go()',3000)">