Jsp 傳數組給Applet
<body><%
String[] choosedlist = (String[])session.getAttribute("choosedlist");
String curshowType = (String)session.getAttribute("LowORHigh");
String curpicType = (String)session.getAttribute("type");
//System.out.println("Movie" + curshowType + curpicType );
//for(int i = 0; i<choosedlist.length; i++){
//System.out.println(choosedlist[i]);
//}
%>
<APPLET
CODE = "cn.com.ztesoft.Animation.Animation.class"
codebase = "."
WIDTH = 740
HEIGHT = 400
NAME = "TestApplet"
ALIGN = middle
VSPACE = 0
HSPACE = 0>
<%
for (int a=0; a<choosedlist.length; a++)
{%>
<PARAM NAME = "paramA<%=a%>" VALUE = "<%=choosedlist[a]%>">
<%}%>
<PARAM NAME = "ParamNumber" VALUE = "<%=choosedlist.length%>">
<PARAM NAME = "curshowType" VALUE = "<%=curshowType%>">
<PARAM NAME = "curpicType" VALUE = "<%=curpicType%>">
</APPLET>
<a href="gms.jsp">返回</a>
</body>
posted on 2005-12-20 14:12 Ben 閱讀(797) 評論(0) 編輯 收藏 所屬分類: Java 源代碼