jsp页面div应用
<%@ page contentType="text/html;charset=GBK"%>
<div id="divDisable" style="display: none;width:expression(document.body.offsetWidth); height:100%; z-index: 1000; position: absolute;left: 0px; top: 0px;filter:alpha(opacity=50); background-color:White">
</div>
<div id="divWaiting" style="display: none; z-index: 900; left: 25%; right: 25%; position: absolute;
text-align: center; width: 50%; height: 50px; border-right: #0099FF 1px solid;
border-top: #0099FF 1px solid; border-left: #0099FF 1px solid; border-bottom: #0099FF 1px solid;
background-color: #f9fff6; left: expression((this.offsetParent.clientWidth/2)-(this.clientWidth/2)+this.offsetParent.scrollLeft);
top: expression((this.offsetParent.clientHeight/2)-(this.clientHeight/2)+this.offsetParent.scrollTop);">
<br>
<table border="0" >
<tr valign="middle" >
<td >
<img src="<%=request.getContextPath()%>/images/3/waiting.gif" height="32">
</td>
<td>
<font size="2.5" class="STYLE1">操作正在进行请等待...</font>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
var sUserAgent = navigator.userAgent;
var isOpera = sUserAgent.indexOf("Opera") > -1;
var isIE = sUserAgent.indexOf("compatible") > -1 && sUserAgent.indexOf("MSIE") > -1 && !isOpera;
function getAbsoluteOffsetTop(obj) {
var y = obj.offsetTop;
while (obj = obj.offsetParent) y += obj.offsetTop;
if(isIE){return y+21;}
else{return y+21+"px";}
}
function coverage(lastid){
相关文档:
首先说说为什么要静态化。
对于现在的Web Application来说,动态页面是占有绝对高的地位的,正因为有了动态化,才有了现在Web的丰富多彩,但是如同所有别的事实一样,好处往往都是有代价的。
为了产生出动态的效果,每一次对页面的请求都会要求服务器对页面进行编译或者执行,这些操作都很消耗系统资源。如果这期间还有 ......
在本篇文章中将使用过滤器进行编码转换、登陆验证、防站外提交的过程,为了演示,我把编码转换放在一个filter中,登陆验证和防站外提交放在另一个filter中,两个filter进行串联工作。
1、为了演示,先制作这两个filter
//这个filter是为了做编码转换,只要访问.jsp网页都要功过这个filter
/**类名:filter.Encoding
*作 ......
JSP2.0中的表达式语言(EL表达式)
EL语法
EL的语法很简单,他最大的特点就是使用上很方便
例:
${sessionScope.user.sex}
所有EL都是以 ${ 为起始、以} 为结尾的。
上述EL范例的意思是:从Session取得用户的性别。如果使用之前JSP代码的写法如下:
<%
User user = (User)session.getAttribute("user");
& ......
表结构:
CREATE TABLE `article` (
`id` int(10) unsigned ......