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Ò³Ãæ½ÓÊÕÆäËûÒ³ÃæÌá½»¹ýÀ´µÄFORM±íµ¥£¬µ«ÊÇÒªÇóÖ»½ÓÊÕµ±Ç°Õ¾µã¼°Æä×ÓÕ¾µãÌá½»¹ýÀ´µÄFORM±íµ¥£¬ÆäËûÕ¾µãÌá½»¹ýÀ´µÄ±íµ¥²»½ÓÊÕ£¬Õâ¸öÔõôÉèÖã¿
ÓùýÂËÆ÷
filter
½«µ±Ç°Õ¾µã¼°Æä×ÓÕ¾µã·ÅÒ»¸öĿ¼
È» ......
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
ÇëÎʸ÷λ¸ç¸ç½ã½ã£¬ÈçºÎÔËÓÃÏֳɵÄÄ£°åÀ´ÖÆ×÷ƯÁÁµÄJSPÍøҳѽ,»ØÕßÓзÖ!
×Ô¼º¶¥Ï£¬×ÜÓиßÊÖ°É,ÆÚ´ýÖÐ......
Èç¹ûÖ±½ÓÒýÓýøÈ¥
¿ÉÒÔÖ±½ÓÓÃjspµÄÖ¸ÁҲ¿ÉÒÔÓÃfreemarkÒýÓ㬼ǵøø·Ö
лл¸÷λÁË£¬¿´À´Î ......
µÚÒ»¸ö£ºjsp×ö½Øͼ¼òµ¥£¬»¹ÊÇasp×ö½Øͼ¼òµ¥£¡
µÚ¶þ¸ö£ºÎÒʹÓÃjsp½Øͼ£¬jsp½ØͼÔÚ·þÎñÆ÷¶Ë½Øͼ£¬²»ÊÇÔÚ¿Í»§¶Ë½Øͼ£¬ÎÒÒªµÄÊÇ¿Í»§¶Ë½Øͼ£¡
¾ÍÏ൱ÓëQQ½ØͼһÑù£¬½ØÍêͼ²¢°üͼƬµÄÐÅÏ¢±£´æÔÚÊý¾Ý¿âÖУ¬È»ºóÏÔʾÔÚÒ³Ãæ ......
³ÌÐòÈçÏÂ:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java" %>
<%@ page import="com.mysql.jdbc.Driver" %>
<%@ page import ......