JAVA日报
简单的弹窗
servlet 层设置
request.setAttribute("message","添加成功");
jsp
<%
Object message = request.getAttribute("message");
if(message!=null && !"".equals(message)){
%>
<script type="text/javascript">
alert("<%=request.getAttribute("message")%>");
</script>
<%} %>