Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Howard Dixon   on Nov 17 In Java Category.

  
Question Answered By: Anna Hill   on Nov 17

I have set up xslt  under a stand alone tomcat instance [not running
under apache] as a filter specification in the target applications
web.xml file. If the name of the xml  document matches the URL filter
specification:

/servlet/pps.path.PPSServlet

The XSLT file culo.xsl is used to render the XML file. The order of
all the tags in web.xml file are critical. For example if <filter-
mapping> appears before <filter> tomcat will fail to load the
application.

<filter>
<filter-name>culo Filter</filter-name>
<filter-class>com.develop.filters.XSLTFilter</filter-class>
<init-param>
<param-name>xslt</param-name>
<param-value>/culo.xsl</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>culo Filter</filter-name>
<url-pattern>/servlet/pps.path.PPSServlet</url-pattern>
</filter-mapping>

Share: 

 
 
Didn't find what you were looking for? Find more on XSLT issues Or get search suggestion and latest updates.


Tagged: