String score = request.getParameter("PERCENTSCORE");
BufferedWriter out = new BufferedWriter(new FileWriter(filelocations,true));
out.write(",");
out.write(score);
out.close();
} catch (IOException e){
e.printStackTrace();
}
}
}
Please help I have been working on this for weeks and I needed to get it to work like yesterday.
If I test it in a form where I enter the variable in it writes to the file.
u are sending the result from flash to jsp. Then u are retrieving the value in the jsp, however after that u do not do anything, what u need to do is forward that variable to the servlet either directly or submit the jsp page again by adding html submit button to it.
Last edited by Khalid Ali; 05-16-2006 at 09:24 AM.
I tried sending it directly from flash but I can't tell if it's working. In Websphere under the servers, I'm not getting any indication that it is working.
Flash:
var envio_lv:LoadVars = new LoadVars();
function send_data(per_val) {
envio_lv.PERCENTSCORE = per_val;
envio_lv.send("/servlet/com.dcm.secaware.WriteText",_blank,"POST");// I put the address of the servlet and it's not working.
I would prefer to go this route anyway. Is there any reasons why it won't work?
I don't know how flash works or how it will send requests to a server. For that you probably are better off if you post your question in the graphics section, some one there might know about it.
Bookmarks