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

javascript »òÕß Jsp ÈçºÎʵÏÖµ¯³ö±£´æÎļþ¶Ô»°¿òÄØ

javascript »òÕß Jsp ÈçºÎʵÏÖµ¯³ö±£´æÎļþ¶Ô»°¿òÄØ£¿ ÎÒÊÇ´òË㽫JspÒ³Ãæ»òµÃµ½µÄ²ÎÊý±£´æµ½±¾µØ¡£±ÈÈç˵£¬·þÎñÆ÷¶Ë·µ»ØÁËÒ»¸öxmlÎļþ£¬ÎÒÏë°ÑËüµÄÄÚÈݱ£´æÏÂÀ´£¬µ«Õâ²»ÊÇÏÂÔØ£¬¶øÊÇʹÓÃä¯ÀÀÆ÷ÔÚ±¾µØ´´½¨Ò»¸öÎļþ£¬½«ÄÚÈݱ£´æÏÂÀ´...
¼ÙÉè´¦Àí½á¹ûΪ  boolean dealResult 
  <% 
  if(dealResult){ 
          out.print(" <script>") 
          window.alert("Ìá½»³É¹¦") 
          location.href="other.jsp" 
          out.print(" </script>") 
  }else{ 
            ... 
  } 
   
  Ìá½»ºó£¬Äã×îÖÕ³ÊÏÖ¸øÓû§µÄÊÇHTML£¬ÏñÄãÕâÑùµÄÓн»»¥ÐÐΪµÄ¶¯×÷Ó¦¸ÃÓÉJavaScriptÀ´ÊµÏÖ, 
  ËùÒÔÎÒÓÃJava´úÂë°ÑJavaScript´úÂëÊä³ö¡£ 
  %>
±¾ÆªÎÄÕÂÀ´×Ô <A href='http://www.soidc.net'>IDCר¼ÒÍø </a> Ô­ÎÄÁ´½Ó£ºhttp://www.soidc.net/discuss/1/050122/11/312933_1.html


ÒýÓÃ
JSPÖмÓÈëresponse.setHeader("Content-Disposition", "attachment;filename=X.txt")¾Í¿ÉÒÔÁË
µ«ÊÇfilenameÕâÀïÈç¹û°üº¬ÖÐÎÄÐèҪת»»±àÂëµÄ¡£

Õâ¸ö»Ø´ðÕýÊÇÎÒÏëÒªµÄ£¬Ð»Ð»Ä㣡


Ïà¹ØÎÊ´ð£º

aspÖÐÓÃjavascript¶¯Ì¬¸Ä±äImageµÄsrcµÄ·¾¶ÎÊÌâ

<form id="form1" runat="server">
  <div>
  <script type="text/javascript">
  function oo(a){
  document.getEleme ......

JSPÈÕÆÚ

ÔÚASPϵıäÁ¿£¬Èç¡°2009-09-09¡°£¬×÷Ϊ²ÎÊý£¬´«ÈëJSPº¯ÊýÄÚ£¬±äΪÂÒÂ룬ÇëÎÊÈçºÎ½â¾ö

asp´«µ½jsp?ûÅö¹ý...up up

¸ñʽ»¯°¡£¡

ASPÖÐÈÕÆÚÊDz»ÊÇÒÔ×Ö·û´®µÄÐÎʽ´«ÈëJSPº¯ÊýÖеģ¿
Èç¹û²»ÊÇ×Ö·û´®µÄ»°£ ......

¹ØÓÚjspÂÛ̳ - Java / Web ¿ª·¢

ÎÒÏÖÔÚÏëÓÃsshÕûºÏÀ´×öÒ»¸öÂÛ̳£¬µ«Êý¾Ý¿â·½Ãæ²»ÐУ¬ÎÒÖ÷Òª²»»áÉæ¼°Êý¾Ý¿â£¬²»ÖªµÀ·¢Ìû±í£¬ºÍ»ØÌû±íÒªÈçºÎÉè¼ÆºÍÇø·Ö¡£²»ÖªµÀË­ÓÐÒ»¸ö¼òµ¥µÄ˼·£¬À´Éè¼ÆÕâЩ±í¡£Ð»Ð»ÁË¡£
·¢ÌûºÍ»ØÌûÓÃͬһÕÅ±í ¡£·¢Ìû id user ......

JSP´æÈëÊý¾Ý¿â

ÎÒÊÇÓÃSTRUTS £¬×öÁËÒ»¸öJSPÒ³Ã棬Ìá½»ºóûÓдæÈëÊý¾Ý¿â¡£
JSP´úÂëÈçÏ£º
aa.jsp´úÂë
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ taglib uri=" ......

jsp ÂÒÂë ÇóÖú

±¾ÈËÔÚ±àдjsp½çÃæʱ£¬³öÏÖÂÒÂë¡£ÎҵIJ˵¥Ä£¿éÊÇÒýÓõÄÍⲿÎļþ ´úÂ룺 <%@ include file="head.txt" %>
ÔÚÏÔʾʱ£¬²Ëµ¥ÀïÃæµÄ×ÖÈ«ÊÇÂÒÂ룬¶øÒ³ÃæÖ÷ÌåµÄ×ÖÌåÕý³£¡£
head.txtµÄ´úÂëÈçÏ£º
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ