com.jclark.xsl.sax

Class XSLServlet


public class XSLServlet
extends HttpServlet

an example servlet which compiles and caches a stylesheet, then with each "GET" transforms the requested file

Method Summary

(package private) static Parser
createParser()
void
doGet(HttpServletRequest request, HttpServletResponse response)
static InputSource
fileInputSource(File file)
Generates an InputSource from a file name.
void
init()

Method Details

createParser

(package private) static Parser createParser()
            throws ServletException


doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
            throws ServletException,
                   IOException


fileInputSource

public static InputSource fileInputSource(File file)
Generates an InputSource from a file name.


init

public void init()
            throws ServletException