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

jsÄÜÈ¡µÃjspÖеĶÔÏóÂð£¿

  ¾ßÌå¾ÍÊÇ  ÎÒÏëÓÃjsÈ¡µÃsessionÖеĶÔÏóÊý¾Ý·ÅÈëjsÖзâÆðÀ´ 



  ²»ÖªµÀ Äܲ»ÄÜʵÏÖ    Ï£Íû¸÷λ¸ßÊÖÖ¸µãһϣ¡£¡  ²»Éõ¸Ð¼¤£¡£¡
ͨ¹ýjspÊä³öµ½Ò³ÃæÉÏ£¬ÓÃÒ»¸öÒþ²ØÓò°ÑÖµ¸ø±£´æÆðÀ´²»¾ÍÐÐÁËÂð£¿

Äã¿ÉÒÔ¸øJSµÄ·½·¨´«Öµ~·

±ÈÈç
function sess(session){
    alert(session);
};

ÕâÑù´«Öµ
sess('"+ <%=session.get()%>+"');

Èç¹ûÊÇ×Ö·û´®Ö®ÀàµÄ¿ÉÒÔ°¡ var s=" <%=session.getAttribute("name")%>"

ÕâÑùÓ¦¸ÃÊÇ¿ÉÒԵİɡ£

~~  ÎÒµÄÒâ˼ÊÇÈ¡¶ÔÏóÊýÖµ    ²»¹ý ×Ô¼ºÏëÁ˺þà ¾õµÃºÃÏñ²»¿ÉÄÜ    ²»ºÃÒâ˼ÀÍ·³¸öλÀ²£¡£¡

<%@ page language="java" import="java.util.*,com.model.User" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 
<script type="text/javascript">
function testSession(){
var username=document.getElementById("username").value;
var password=document.getElementById("password").value;
}
</script>

  </head>
 
  <body onload="testSession()">
    <%
      User user = (User)ses


Ïà¹ØÎÊ´ð£º

jspÖÐÏÔʾ²Ëµ¥£¨µÝ¹é£©

ÎÊÌâÃèÊö£º

    ÀýÈçÎÒÒªÏÔʾµÄÄÚÈÝÈçÏÂËùʾ

Ò»¼¶Ä¿Â¼1
    Ò»¼¶Ä¿Â¼1×ÓÀà1
        ×ÓÀà1
    Ò»¼¶Ä¿Â¼1×ÓÀà2
      ......

Çó½Ìjsp useBean beanµÄÎÊÌâ - Java / Web ¿ª·¢

±ÈÈç˵DB.classÊÇÔÚ°ücom/zhl/jdbcϵÄ
ÄÇôDB.class·ÅÔÚʲôµØ·½ Èç¹ûÓÃ<jsp:useBean id="d" class=""/>À´ÒýÈëbean ÄÇôclassÊôÐÔÓ¦¸ÃÔõôд
Ðè²»ÐèÒªÏñservletÄÇÑù»¹ÒªÅäÖÃweb.xmlµÄ& ......

jspºÍtomcatÎÊÌ⣬¿ì·èÁË - Java / Java EE

ÎÒдÁ˸öjspÒ³Ãæ£¬È»ºó¸Ä¶¯ÁËһϣ¬¸Ä¶¯µÄÄÚÈݾÍÊÇÔÚjspÒ³ÃæµÄjsº¯ÊýÀï¼ÓÁ˸öalert()Óï¾ä£¬µ«ÊÇÎÒ·ÃÎÊÕâ¸öÒ³ÃæÊ±£¬ËÀ»î¶¼ÊÇÔ­À´Ò³ÃæµÄÄÚÈÝ£¬ÎÒ¼ÓÁ˺ܶàalertº¯Êý»¹ÊÇû¸Ä¶¯Ç°µÄÒ³ÃæÄÚÈÝ£»tomcatÖØÆôÁË£¬Ò²ÖØÐ²¿ÊðÕâ ......

jspÎļþµ½µ×Òª²»Òª¼ÓNo-cache - Java / Web ¿ª·¢

ÓÃStruts2+Spring+Hibernate×öµÄÒ»¸öwebµÄERPСÏîÄ¿£¬×ܲ¿Ò»Ì¨·þÎñÆ÷£¨Êý¾Ý¿âÓëWeb·þÎñÆ÷ÔÚͬһ»ú×ÓÉÏ£©Êǵ¥¶À²¦ºÅÉÏÍøµÄ£¬Óë·Ö¹«Ë¾Ã»ÓÐÓþÖÓòÍøÏߣ¬Ó²¼þÌ«¹óÁË£¬ÆäËû¼¸¸öÊ¡Êзֹ«Ë¾¶¼À´·ÃÎÊÕâÒ»·þÎñÆ÷£¬¸Ð¾õºǫ́´ú ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ