Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

please help ----- passing variable to flash form

843838May 9 2006
Hi,

I'm having a problem passing the variable back to flash.
I have two text box (a),(b) in flash. (a) to input and (b) to display the input from (a). I'm not good in flash but this is what i manage to modify based on other examples. Here is my flash code.


on (release) {
lv = new LoadVars();
lv.a = this.a.text;
trace(lv.a);
lv.sendAndLoad("test.jsp",lv, "POST");
lv.onLoad = function(success) {
if (success) {
trace(lv.a);
b.text = lv;
}
};

}


this is my jsp code

<%
String strInput=request.getParameter("a");
out.print("&b="+strInput);
%>

when i input sumthing on (a) and click the submit button, nothing happens. the page remains the same. No action.

Can someone pls help me to solve this. I need to implement this to save the flash variables to MySQL database, so i'm testing if this works.

It's really urgent.

Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2006
Added on May 9 2006
0 comments
72 views