Hi,
The simple answer is that you are writing Java code, when you want JavaScript :-)
Try something along the lines of
req = testExec.getStateValue("lisa.Respond.rsp");
file = testExec.getStateValue("prop");
testExec.setStateValue("result",file);
out = new java.io.BufferedWriter(new java.io.FileWriter("C:\\LISA_incoming_requests\\"+file+".txt"));
out.write(req);
out.close();
/* If you need a return, try
retval = true; to return true, etc
Any assignment will do
*/