1. XML display in the browser without creating the XML file coderanch.com |
2. unbale to view xml file in browser coderanch.comhi, i developed xml file..i want to view that xml file in browser...but im unable to do..it is showing in console..but i need is in browser..can any one help me out..here is my code..its urgent. package xml; import java.io.*; import org.w3c.dom.*; import org.xml.sax.SAXException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; public class ... |
3. redirect the generated XML file to the browser using Java servelet coderanch.com |
4. Open XML file with user default browser and not the default editor. forums.oracle.comRuntime.getRuntime().exec(cmd); ....opens the xml file with the users default program for opening xml files which in my case is Oxygen. I want to force java to open this xml file with the users default web browser and nothing else. I guess i need the Windows command to perform the 'open with' feature but i have no idea what that command is ... |