JonTheBaller
Golden Member
Using JSP, I want to be able to upload a file via an HTML form and then display that file to the screen. I specifically want to be able to do this via XML, so a user could use a FileUpload form element to select an xml file, hit submit, and then view the XML file on the page (as a browser such as IE6 or Firefox would normally display an XML file). I have the uploading part working, and have the file stored in a File object. How do I display this object to the screen in the appropriate format (mime type application/xml?)? Thanks!