struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venkat Maddipati <>
Subject RE: Extending Request Processor
Date Thu, 08 Jul 2004 21:00:24 GMT
Try to put include the following in your struts configuratin file
(struts-config.xml). Follow the  comments to understand the Tiles plugin :

I have also extended my RequesteProcessor class from TilesRequestProcessor

  <!-- ========== Tiles plugin ===================  -->
     This plugin initialize Tiles definition factory. This later can takes
	 parameters explained here after. The plugin first read parameters
from web.xml, then
	 overload them with parameters defined here. All parameters are
	 The plugin should be declared in each struts-config file.
       - definitions-config: (optional) 
            Specify configuration file names. There can be several comma 
		    separated file names (default: ?? )
       - moduleAware: (optional - struts1.1) 
            Specify if the Tiles definition factory is module aware. If true
			there will be one factory for each Struts module. 
			If false, there will be one common factory for all
module. In this later case, 
			it is still needed to declare one plugin per module.
The factory will be 
			initialized with parameters found in the first
initialized plugin (generally the
			one associated with the default module).
			  true : One factory per module. (default)
			  false : one single shared factory for all modules
	   - definitions-parser-validate: (optional)
	        Specify if xml parser should validate the Tiles
configuration file.
			  true : validate. DTD should be specified in file
header. (default)
			  false : no validation
	  Paths found in Tiles definitions are relative to the main context.
  <plug-in className="org.apache.struts.tiles.TilesPlugin" >
    <set-property property="definitions-config" 
	                 value="/WEB-INF/tiles-defs.xml" />
    <set-property property="moduleAware" value="true" />
    <set-property property="definitions-parser-validate" value="true" />


-----Original Message-----
From: Lucas Gonzalez Pearson []
Sent: Thursday, July 08, 2004 1:37 PM
To: Struts Users Mailing List
Subject: Extending Request Processor

I´ve recently extended the requestProcessor with one of my own and found
this error:

    javax.servlet.ServletException: TilesPlugin : Specified RequestProcessor
not compatible with TilesRequestProcessor

Everything seems to be fine

public class MyRequestProcessor
        extends TilesRequestProcessor { .... }

and in struts-config.xml

I´ve searched quite a bit on the internet and only found that you have to
extend from TilesRequestProcessor just as I did

any ideas on why this is happening?

To unsubscribe, e-mail:
For additional commands, e-mail:


If you have received this e-mail in error, please delete it and notify the sender as soon
as possible. The contents of this e-mail may be confidential and the unauthorized use, copying,
or dissemination of it and any attachments to it, is prohibited. 

Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility
for the contents of this message nor for any damage caused by viruses.  The views expressed
here do not necessarily represent those of Hyperion.

For more information about Hyperion, please visit our Web site at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message