Miranda
01-08-2001, 07:50 PM
I am having a lot of problems getting the data back from a JSP after submitting the data from the Flash movie to it.
I currently have a small 2 frame test example like so:
Frame 1:
Action: stop();
Text box: login
Button: done
Action for done:
on(release, keyPress"<Enter>") {
loadVariables("http://localhost:8100/test/logintest.jsp", "_root.logincatcher", "POST");
}
Movieclip: logincatcher
Action for logincatcher:
onClipEvent(data) {
gotoAndPlay(2);
}
Frame 2:
Action: stop();
Text box: return
The JSP is very simple:
<%
String login = request.getParameter("login");
out.println("return=" + login);
%>
I have been through many different incarnations of these two files. At one point, it *was* submitting to the JSP perfectly fine, the login variable was received, but whatever I was doing with loadVariables was not reading the data back into the movie...in fact I would never even get back to the movie, my logintest.jsp page would load in the browser with the return=foo text on that page.
This current incarnation just sits in Frame 1 and never goes any further. I am expecting that once the data is received from the JSP, then in Frame 2, the return variable will be displayed. Even though the movie *seems* to be stuck in Frame 1, it is attempting to do the processing on the JSP because the compiled Java files are being generated by JRun (my JSP environment).
Does anyone have any ideas on what is wrong with my Flash? I am assuming that is where the error is since my knowledge of Flash is pretty limited. :)
Thanks!
Miranda
I currently have a small 2 frame test example like so:
Frame 1:
Action: stop();
Text box: login
Button: done
Action for done:
on(release, keyPress"<Enter>") {
loadVariables("http://localhost:8100/test/logintest.jsp", "_root.logincatcher", "POST");
}
Movieclip: logincatcher
Action for logincatcher:
onClipEvent(data) {
gotoAndPlay(2);
}
Frame 2:
Action: stop();
Text box: return
The JSP is very simple:
<%
String login = request.getParameter("login");
out.println("return=" + login);
%>
I have been through many different incarnations of these two files. At one point, it *was* submitting to the JSP perfectly fine, the login variable was received, but whatever I was doing with loadVariables was not reading the data back into the movie...in fact I would never even get back to the movie, my logintest.jsp page would load in the browser with the return=foo text on that page.
This current incarnation just sits in Frame 1 and never goes any further. I am expecting that once the data is received from the JSP, then in Frame 2, the return variable will be displayed. Even though the movie *seems* to be stuck in Frame 1, it is attempting to do the processing on the JSP because the compiled Java files are being generated by JRun (my JSP environment).
Does anyone have any ideas on what is wrong with my Flash? I am assuming that is where the error is since my knowledge of Flash is pretty limited. :)
Thanks!
Miranda