level 1
男人动心的男人
楼主
最近制作了一个flash向jsp传值结果jsp接收到的是个NULL jsp给flash传值却又是成功的 ------------------------------JSP (user.jsp)<%@page contentType="text/html" language="java"%> <% String str_Msg=""; String action1=""; String conn=""; action1=request.getParameter("action1"); if (action1 == "post"){ str_Msg = "OK! return a Msg to you!"; conn = "1"; } out.print("&conn=" + conn + "&output=" + str_Msg); %> ----------------------------------------FLASH(里边有个output的动态文本) myload = new LoadVars(); myload.action1 = "post"; myload.sendAndLoad("user.jsp", myload, "post"); myload.onLoad = function(success) { if (success) { if (this.conn == "1") { _root.output.text =this.output; } } else { _root.output.text = "Can't connect to Server"; } };
2008年05月06日 12点05分
1