标签:弹窗 script get 设置 text obj setattr type jsp
简单的弹窗
servlet 层设置
request.setAttribute("message","添加成功");
jsp
<%
Object message = request.getAttribute("message");
if(message!=null && !"".equals(message)){
%>
<script type="text/javascript">
alert("<%=request.getAttribute("message")%>");
</script>
<%} %>
标签:弹窗 script get 设置 text obj setattr type jsp
原文地址:https://www.cnblogs.com/mumulailai/p/14161591.html