Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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){
       


Ïà¹ØÎĵµ£º

jspѧϰ±Ê¼Ç1

JSP£¨java server page£©
JSPÊÇ·þÎñÆ÷¶ËÔËÐеÄÒ³Ã棬JSP±¾Ê¾ÍÊÇÒ»¸öÎĵµ£¬Ëû²»½ö¿ÉÒÔ°üº¬¾²Ì¬µÄHTML´úÂ룬Ҳ¿ÉÒÔ°üº¬¶¯Ì¬µÄJAVA´úÂ룬·þÎñÆ÷ÈÝÆ÷¿ÉÒÔ½«JSPת»»³ÉServlet·¢²¼£¬²¢½ÓÊÜÇëÇó¡£
JspÎļþÖ»Ðè·ÅÔÚÓ¦ÓÃÎļþϾͿÉÒÔÁË¡£
JSPÀý×Ó£º
     <html>
     <head& ......

JspµÄ¾ÅÖÖ¶ÔÏó

JspµÄ¾ÅÖÖ¶ÔÏóÎÒ¼òÊöÖ®£º
page
application
request
response
session
config
out
pageContext
 
page
<%@page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" %>
response
<%
  response.setHeader("Pragma","No-cache"); 
  respons ......

jspºÍservletÖеÄsession¹²Ïí

×î½ü×öÒ»¸öÉÌ»§½Ó¿Ú£¬·¢ÏÖͬһӦÓÃÏÂjspÓëservletµÄsession¶ÔÏó²»Äܹ²Ïí£»¿àÏëÚ¤Ï룬ÖÕÓÚÕÒµ½Ò»¸ö½â¾ö·½°¸¡£
         °¸Àý±³¾°ÊÇÕâÑùµÄ£º
         ¿Í»§Òªµ÷ÓÃÎÒдµÄÕâ¸ö½Ó¿Ú½øÐÐÕÊ»§ÑéÖ¤£¬Æä²Ù×÷Á÷³ÌÈçÏ£º
1.   &nb ......

Struts2¿ò¼ÜJSPÒ³Ãæ´«ÊäÖÐÎÄÂÒÂëÎÊÌâ½â¾ö

Action´úÂë
package com.zxc.action;import java.net.URLEncoder;public class XiaoZAction {
private String username; public String getUsername() { return username; }
public String execute() throws Exception{
username = URLEncoder.encode("ÖÜС´¨", "utf-8"); return "success"; }}

struts.x ......

JSP×Ô¶¨Òå±êÇ©±àд

Ò»¸ötag¾ÍÊÇÒ»¸öÆÕͨµÄjavaÀ࣬ËüΩһÌرðÖ®´¦ÊÇËü±ØÐë¼Ì³ÐTagSupport»òÕßBodyTagSupportÀà¡£ÕâÁ½¸öÀàÌṩÁËһЩ·½·¨£¬¸ºÔðjspÒ³ÃæºÍÄã±àдµÄÀàÖ®¼äµÄ½»»¥£¬ÀýÈçÊäÈ룬Êä³ö¡£¶øÕâÁ½¸öÀàÊÇÓÉjspÈÝÆ÷ÌṩµÄ£¬ÎÞÐ뿪·¢ÈËÔ±×Ô¼ºÊµÏÖ¡£»»¾ä»°Ëµ£¬ÄãÖ»Ðè°ÑʵÏÖÁËÒµÎñÂß¼­µÄÀà¼Ì³ÐTagSupport»òÕßBodyTagSupport£¬ÔÙ×öһЩÌرðµÄ¹¤× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ