I have a JSP and if someone clicks on a button, Iam displaying xml in a seperate window. To display the xml, Iam opening the file using Java File class and Iam displaying using toURL() method in the File class.
<% File xmlFile = new File(<file path>
var link= "<%= xmlFile.toURL() %>";
window.open(link, "showXML", "width=900,height=550,resizable,scrollbars,status");
This is working perfectly fine when the xml file is on my local machine. It is not getting displayed when the xml file is on a seperate machine
say our server.My local machine is on Win xp, where as our server is on UNIX.
what is the get around for this, do I have to specify the name of the server and port or How should i make this work irrespective of the
location of the xml file.