webwork.view.xslt
Class XSLTServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bywebwork.view.xslt.XSLTServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class XSLTServlet
extends javax.servlet.http.HttpServlet

XSL presentation servlet. Markup the result as XML and process it with an XSLT Stylesheet. This allows you to use XSLT stylesheets as views of WebWork actions.

Version:
$Revision: 1.5 $
Author:
Rickard Öberg (rickard@dreambean.com), Philipp meier (meier@o-matic.de)
See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
           
static java.lang.String ROOT_ELEMENT_NAME
           
static java.lang.String STACK_NAME
           
 
Constructor Summary
XSLTServlet()
           
 
Method Summary
protected  javax.xml.transform.Templates getTemplates(javax.servlet.http.HttpServletRequest request)
           
 void init(javax.servlet.ServletConfig config)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STACK_NAME

public static final java.lang.String STACK_NAME
See Also:
Constant Field Values

ROOT_ELEMENT_NAME

public static final java.lang.String ROOT_ELEMENT_NAME
See Also:
Constant Field Values

log

protected static org.apache.commons.logging.Log log
Constructor Detail

XSLTServlet

public XSLTServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException,
                    java.net.MalformedURLException
Throws:
javax.servlet.ServletException
java.io.IOException
java.net.MalformedURLException

getTemplates

protected javax.xml.transform.Templates getTemplates(javax.servlet.http.HttpServletRequest request)
                                              throws javax.xml.transform.TransformerException,
                                                     java.io.IOException
Throws:
javax.xml.transform.TransformerException
java.io.IOException


Copyright © 2001-2003 WebWork All Rights Reserved.