,ch14.9433 Page 479 Monday, February 14, 2005 12:55 PM
The configuration of STXX is specified in the stxx.properties file. For this recipe, you
can use this file without modification. From the STXX directory, copy source/web/
WEB INF/classes/stxx.properties to your application's WEB INF/classes directory.
STXX uses the concept of pipelines to chain transformations together. The stxx
pipelines.xml controls how the pipelines work. For this recipe, copy the source/web/
WEB INF/stxx pipelines.xml file to your application's /WEB INF directory.
As shown in Example 14 30, add an initialization parameter specifying the location
of the stxx.properties file to the Struts
ActionServlet
declaration in your web.xml file.
Example 14 30. Adding STXX to your application's web.xml
PUBLIC " //Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web app_2_2.dtd">
Struts Cookbook Chapter 14 : STXX
action
org.apache.struts.action.ActionServlet
config
/WEB INF/struts config.xml
stxxInit
/stxx.properties
2
action
*.do
index.jsp
You configure the integration between Struts and STXX in your Struts configuration
file. Example 14 31 shows the struts config.xml used for this sample application.
Integrating Struts and XSLT | 479
This is the Title of the Book, eMatter Edition
Copyright 2005 O'Reilly & Associates, Inc. All rights reserved.
footer
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved