jsp 关闭窗口触发的事件
<script language="javascript">
function window.onunload(){
//所有窗口关闭
if((window.screenLeft>=10000 && window.screenTop>=10000) || event.altKey)
{ //点击右上角的窗口关闭
alert("aaaaaaaaaaaaaaaaaa");
}
}
</script>
相关文档:
jsp中文显示乱码解决方案
一、JSP页面显示乱码
二、表单提交中文时出现乱码
三、数据库连接
大家在JSP的开发过程中,经常出现中文乱码的问题,可能一至困扰着您,我现在把我在JSP开发中遇到
的中文乱码的问题及解决办法写出来供大家参考。
一、JSP页面显示乱码
下面的显示页面(display.jsp)就出现乱码:
< ......
<html:html>
<HEAD>
<tiles:insert attribute="header" />
</HEAD>
<body>
<tiles:insert attribute="top" />
<table width="100%" height="400" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td width="178" ......
<table width=100% border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td height="1" class="gray1"></td>
</tr>
</table>
<tiles:insert attribute="footer" />
</body>
</html:html> ......
已经做好的一个J2EE项目,想应用flex中的图表,所以现在的首要问题就是如何把flex嵌入到jsp中,按照网上介绍的解决方案做了个小测试:
<%@ taglib uri="FlexTagLib" prefix="mm"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
&nbs ......
1 web服务器{TOMCAT(JSP)、WEBLOGIC(JSP) }
应用服务器
We ......