我这样写不管用
<body>
<%
out.print("<script type='text/javascript'>alert('添加失败!');</script>");
response.sendRedirect("../index.jsp");
%>
</body>
这样写也不管用
<head>
<script type='text/javascript'>
function load()
{
alert('添加失败!');
}
</script>
</head>
<body>
<%
response.sendRedirect("../index.jsp");
%>
</body>
到底要怎么写才可以实现JSP页面弹出消息框呢????