¹ØÓÚÔÚJSPÖÐscriptµÄÒýÓÃ
ÏÂÃæcategoryTreeCont.jsp ´úÂë
----------------------------------------
Java code:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<script language="javascript" src="../javascript/TV20.js"></script>
ÕâÊDZ»ÒýÈëÒ³ÃæµÄÎÄ×Ö
<script language="javascript">
<!--
addNode(-1,0,"hehe","../images/top.gif"); //Ìí¼ÓÊ÷½Úµã
addNode(0,1,"haha","../images/top.gif");
addNode(0,2,"haha","../images/top.gif");
addNode(1,3,"haha","../images/top.gif");
addNode(1,4,"haha","../images/top.gif");
addNode(2,5,"haha","../images/top.gif");
addNode(2,6,"haha","../images/top.gif");
showTV();
-->
</script>
-----------------------------------
ÎÒÔÚcategorySetTree.jspÖо²Ì¬°üº¬
Java code:
ÏÂÃæ½«ÒýÈëÒ³Ãæ
[color=#FF0000]<%@ include file="categoryTreeCont.jsp" %>[/color]
<H3>Àà±ðÁбí</H3>
<DIV class=Tip_Buy>
<TABLE
Ïà¹ØÎÊ´ð£º
HTML code:
<%@ page contentType="text/html; charset=GBK" language="java"%>
<%@ page import="java.io.*"%>
<html>
<body>
<form name=" ......
ÎÒÔÚjspÒ³Ãæ´æÉÏÒ»¸ösession,±¾Ò³Ã滹¿ÉÒÔÈ¡³öÖµÀ´.
µ«ÊÇһˢÐÂ,»òÕß´ò¿ªÐµÄÒ³Ãæ¾ÍÈ¡²»³öÖµÀ´ÁË.
Ææ¹ÖµÄÊÇ,ÎÒ²âÊÔÁíÒ»¸ö³ÌÐòʱºò
ÔÚjspÒ³Ãæ´æÉÏÒ»¸ösession,±¾Ò³Ãæ¿ÉÒÔÈ¡³öÖµÀ´,ˢлò´ò¿ªÐÂÒ³ÃæÖµÄÜÈ¡³öÀ´ÁË.
......
<%@ page contentType = "text/html;charset =gb2312"%>
<%!
public String codeToString(String str)
{
String s =str;
&nbs ......
ÓÉÓÚ Javascript ²»ÄÜ·ÃÎʱ¾µØÎļþ£¬ÏëÓÃJsp¶ÁÈ¡±¾µØÎļþ£¬È»ºó½«ÎļþÄÚÈÝ´«µ½·þÎñÆ÷ºǫ́½øÐд¦Àí£¬ÔõôʵÏÖѽ£¡
ÕâÑùԽȨÁË¡£»òÕß²ÉÓøßÊÚȨµÄAPPLETÀ´×ö£¬ÕâÑùÔÚʹÓÃʱÐèÒªÓû§ÏÂÔØÖ¤Êé²¢ÇÒÊÚȨ£¡
¹Ø× ......
ËÓйØÓÚjsp·½ÃæµÄfck°¡ лл´ó¼ÒÀ´ Ö»Òª¼òµ¥µÄ¾ÍÐÐÁË
ºÃ±ÈÔÚcsdnÉÏÃæ»Ø¸´Ê± ¿´µ½µÄµÄ "»Ø¸´ÄÚÈÝ" ÏÂÃæµÄÒ»ÐÐ ²»ÒªÌ«¶àµÄ¸ñʽ
ÓÊÏä mustvictory@126.com Òª ......