My first post, a little nervous I am. I am starting with learning Java on the server side in servlets. I use Flash on the client side. What I would like to do is the following:
client side: send xml file / receive xml file
server: accept xml file and save it / sent xml file when requested.
To achieve this I use the client code (Flash snippet):
my_xml = new XML("<tag1><tag2 /></tag1>"); my_xml.contentType = "text/xml"; my_xml.send("saveXML.jsp");
How can I retrieve the xml file from the servlet request instance and save it. I will do the xml creation and evaluation on the client. So retrieving xml from the servlet request instance and saving the xml data is all I want to do for now(to little experience yet on java...but for now I need this save mechanism to work).
Problem is two ways: 1) retrieving xml data 2) saving data
On 1) I do not have a clue
On 2) maybe use construction with: String xml = xml_data_as_a_string; File f = new File("c\xmlData");FileWriter fw = new FileWriter(f);fw.write(xml);
Thanks for any help