jsp 关闭窗口触发的事件
<script language="javascript">
function window.onunload(){
//所有窗口关闭
if((window.screenLeft>=10000 && window.screenTop>=10000) || event.altKey)
{ //点击右上角的窗口关闭
alert("aaaaaaaaaaaaaaaaaa");
}
}
</script>
相关文档:
<SCRIPT LANGUAGE="javascript">
//指定页面区域内容导入Word
function AllAreaWord() {
var oWD = new ActiveXObject("Word.Application");
var oDC = ......
<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> ......
今天又遇到乱码问题,可真烦.为什么TOMCAT就不能自动判断项目的编码,而一定要项目遵循TOMCAT的编码.
说说解决方法吧:
在TOMCAT的SERVER.XML配置文件中的connector中添加URIEncoding="UTF-8"属性,如
<Connector port="88" maxHttpHeaderSize="8192" maxThreads="20" minSpareThreads="5" maxSpareThreads="10"
e ......
一 、 用struts2标签的<s:select来显示
<s:select cssStyle="width: 84%" list="#application.officeList" headerKey="" headerValue="--请选择--" listKey="#this.value" listValue="#this.key+'.'+#this.value" name="entity.officeName" value="entity.officeName"/>
其中
1、list是接收java类或者在启动时 ......