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

jspͨ¹ýdivʵÏÖ¸²¸Ç£¬µ¯³öд°Ìå

<body style="height:100%;">
-------------------------------------------------------------------Ò»¿ªÊ¼µÄÒ³Ãæ----------------------
fdasfsdfadf
<input name="button2" onclick="ShopConfirm('fdsaf')" value="µãÎÒ" type="button"/>
----------------------------------------------------------µã»÷ºó³öÏֵĸ²¸ÇÏÔʾµÄÄÚÈÝ-------------------
<!--ÄÚÈݲã-->
<div id="ShopConfirmLayer" style="position:absolute;top:300px;left:100px;z-index:900;border:1px red solid;width:500px;display:none;">
ÕâÊÇÎÒµã»÷ºó³öÏÖµÄÄÚÈÝ
    <input name="button1" value="¹Ø±Õ" type="button" onclick="CloseShopConfirm()"/>
</div>
------------------------------------------------------------------¸²¸ÇµÄÒ³Ãæ-------------------
<!--¸²¸Ç²ã-->
<div id="webBgLayer" style="position:absolute;top:0px;left:0px;z-index:899;background-color:#ccc;height:100%;width:100%;display:none;-moz-opacity:0.9;filter:alpha(opacity=50);"></div>
                              -------------------ÕâÀï;-moz-opacity:0.9;filter:alpha(opacity=50£©ºÜ¹Ø¼ü/*͸Ã÷Â˾µ50%*/ }
<script type="text/javascript">
    function ShopConfirm(str){
        var ShopConfirmLayer=document.getElementById("ShopConfirmLayer");
        var webBgLayer=document.getElementById("webBgLayer");
     // ShopConfirmLayer.innerHTML=str;
         ShopConfirmLayer.style.display="";//ÏÔʾÄÚÈݲ㣬ÏÔʾ¸²¸Ç²ã
     ShopConfirmLayer.style.left=parseInt((document.documentElement.scrollWidth-ShopConfirmLayer.offsetWidth)/2)+document.documentElement.scrollLeft+"px";
     ShopConfirmLayer.style.top=Math.abs(parseInt((document.documentElement.clientHeight-Sho


Ïà¹ØÎĵµ£º

ÌáÉýJSPÒ³ÃæÏìÓ¦ËٶȵÄÆß´óÃؼ®¾øÕÐ

·½·¨Ò»£ºÔÚservletµÄinit()·½·¨Öлº´æÊý¾Ý
¡¡¡¡µ±Ó¦Ó÷þÎñÆ÷³õʼ»¯servletʵÀýÖ®ºó£¬Îª¿Í»§¶ËÇëÇóÌṩ·þÎñ֮ǰ£¬Ëü»áµ÷ÓÃÕâ¸öservletµÄinit()·½·¨¡£ÔÚÒ»¸öservlet
µÄÉúÃüÖÜÆÚÖУ¬init()·½·¨Ö»»á±»µ÷ÓÃÒ»´Î¡£Í¨¹ýÔÚinit()·½·¨Öлº´æһЩ¾²Ì¬µÄÊý¾Ý»òÍê³ÉһЩֻÐèÒªÖ´ÐÐÒ»´ÎµÄ¡¢ºÄʱµÄ²Ù×÷£¬¾Í¿É´ó´óµØÌá¸ßϵ
ͳÐÔÄÜ¡£
¡¡ ......

MyEclipseÖв»ÄÜÌáʾJSPÒ³ÃæµÄhtml±ê¼ÇÊôÐÔÖµ£¿

ÄãµÄ¿ì½Ý½¨ÉèÖÃÓÐÎÊÌ⣬ÄãÖØÐÂÉèÖÃÒ»ÏÂÔÚ window --> Perferences--> General--> keys
½«Content Assist¿ì½Ý¼üÉèÖóÉAlt + /¾Í¿ÉÒÔÁË
Èç¹ûÄã·¢ÏÖµãÁËApply¹ØÁËÖ®ºó£¬Ôٴδò¿ªContent AssistµÄ¿ì½Ý¼üûÓиıäµÄ»°£¬ÄÇÊÇÒòΪÏÂÃæÓÐÒ»¸öÑ¡ÏîÒѾ­Óõ½ÁËAlt + /£¬¾ßÌåÊÇÄÄÒ»¸öÎҼDz»ÇåÁË£¬Äã°ÑÄǸöcommandµÄ¿ì½Ý¼ü¸ ......

ÈçºÎÏòÒ»¸öjsp´«µÝÁ½¸öÒÔÉϵIJÎÊý

ÓÐÁ½ÖÖ´«²Î·½Ê½
Ò»¡¢get·½Ê½£º
        ÕâÖÖ·½Ê½½«²ÎÊýдÔÚurlÖУ¬¾ÙÀýÀ´Ëµ£¬Èç¹ûÄ¿±ê´«²ÎÒ³ÃæÊÇtarget.jsp,ÄÇôÔÚurlÀï¿ÉÒÔÕâôд£º
        http://..../target.jsp? <Param1> = <value1> & <Param2> = <value2> &...
    &n ......

JSP¶ÁÎļþ´úÂë

<%@ page contentType="text/html; charset=gbk" language="java" import="java.io.*" buffer="64kb" %>
      <%
 
   String path_in = "";
   String content = "";
 
   path_in = request.getRealPath("/")+"admin"+File.separator+ ......

jsp¶ÁÈ¡Êý¾Ý¿âÖÐÎÄÂÒÂëÎÊÌâ

Õâ¸öÎÊÌâÊÇ´ÓÏîÄ¿ÖÐÉè¼ÆÊý¾Ý¿âºÍ²Ù×÷Êý¾Ý¿âµÄÈ˲»Í¬¶øÔì³ÉµÄ¡£ËùÓõÄÊý¾Ý¿â
ÊÇsybase£¬Éè¼Æʱ°ÑÊý¾ÝÀàÐÍÉè¼ÆΪnvarcharÁË£¬Èç¹ûÊÇÖÐÎÄ£¬¶ÁÈ¡³öÀ´¾Í»áµÃ
µ½ÂÒÂë¡£ÎÒÊÔÁ˺ö෽·¨»¹ÊDz»ÐУ¬×îºóÎÞÄΣ¬Ö»ºÃ½«Êý¾ÝÀàÐ͸ÄΪvarcharÁË¡£
ËùÒÔÔÚ´Ë×ܽáÒ»ÏÂÖÐÎÄÂÒÂëÎÊÌâ¡£
Ò»¡¢JSPÓëÒ³Ãæ²ÎÊýÖ®¼äµÄÂÒÂë
   &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ