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
Õâ¸ö»Ø´ðÕýÊÇÎÒÏëÒªµÄ£¬Ð»Ð»Ä㣡
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
ÔÚASPϵıäÁ¿£¬Èç¡°2009-09-09¡°£¬×÷Ϊ²ÎÊý£¬´«ÈëJSPº¯ÊýÄÚ£¬±äΪÂÒÂ룬ÇëÎÊÈçºÎ½â¾ö
asp´«µ½jsp?ûÅö¹ý...up up
¸ñʽ»¯°¡£¡
ASPÖÐÈÕÆÚÊDz»ÊÇÒÔ×Ö·û´®µÄÐÎʽ´«ÈëJSPº¯ÊýÖеģ¿
Èç¹û²»ÊÇ×Ö·û´®µÄ»°£ ......
ÎÒÏÖÔÚÏëÓÃsshÕûºÏÀ´×öÒ»¸öÂÛ̳£¬µ«Êý¾Ý¿â·½Ãæ²»ÐУ¬ÎÒÖ÷Òª²»»áÉæ¼°Êý¾Ý¿â£¬²»ÖªµÀ·¢Ìû±í£¬ºÍ»ØÌû±íÒªÈçºÎÉè¼ÆºÍÇø·Ö¡£²»ÖªµÀËÓÐÒ»¸ö¼òµ¥µÄ˼·£¬À´Éè¼ÆÕâЩ±í¡£Ð»Ð»ÁË¡£
·¢ÌûºÍ»ØÌûÓÃͬһÕÅ±í ¡£·¢Ìû id user ......
ÎÒÊÇÓÃSTRUTS £¬×öÁËÒ»¸öJSPÒ³Ã棬Ìá½»ºóûÓдæÈëÊý¾Ý¿â¡£
JSP´úÂëÈçÏ£º
aa.jsp´úÂë
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ taglib uri=" ......
±¾ÈËÔÚ±àдjsp½çÃæʱ£¬³öÏÖÂÒÂë¡£ÎҵIJ˵¥Ä£¿éÊÇÒýÓõÄÍⲿÎļþ ´úÂ룺 <%@ include file="head.txt" %>
ÔÚÏÔʾʱ£¬²Ëµ¥ÀïÃæµÄ×ÖÈ«ÊÇÂÒÂ룬¶øÒ³ÃæÖ÷ÌåµÄ×ÖÌåÕý³£¡£
head.txtµÄ´úÂëÈçÏ£º
......