//package com.abnamro.infinity.servlet; import java.io.*; import java.net.*; import java.util.*; import com.ibm.xml.parser.*; import org.w3c.dom.*; import com.lotus.xsl.*; import com.lotus.xsl.xml4j.*; import javax.servlet.*; import javax.servlet.http.*; public class xml2html extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); // Right now there is nothing to do herex } public void destroy() { super.destroy(); // And, nothing to do here yet, either } protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doRequest_(req, resp); } protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doRequest_(req, resp); } // Purposely do not implement doPut - no ftp-like interface yet // Purposely do not implement doDelete - no delete interface yet private void doRequest_(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String xmlFileName = req.getParameter(XML_); String xslFileName = req.getParameter(XSL_); PrintWriter printer = new PrintWriter(resp.getWriter()); if (xmlFileName != null && xslFileName != null) { resp.setContentType("text/html"); process(xmlFileName, xslFileName, printer); } else { resp.setContentType("text/html"); resp.getWriter().write("
The title page of the manual should state the version of the program which the manual applies to. The Top node of the manual should also contain this information. If the manual is changing more frequently than or independent of the program, also state a version number for the manual in both of these places.
The title page of the manual should state the version of the program which the manual applies to. The Top node of the manual should also contain this information. If the manual is changing more frequently than or independent of the program, also state a version number for the manual in both of these places.
The title page of the manual should state the version of the program which the manual applies to. The Top node of the manual should also contain this information. If the manual is changing more frequently than or independent of the program, also state a version number for the manual in both of these places.
The title page of the manual should state the version of the program which the manual applies to. The Top node of the manual should also contain this information. If the manual is changing more frequently than or independent of the program, also state a version number for the manual in both of these places.