I am integrating Struts into an existing web application. It seemed like
a good idea to have our custom RequestProcessor extend
org.apache.struts.tiles.TilesRequestProcessor rather than
org.apache.struts.action.RequestProcessor, so we would have the option
of using Tiles. However, when I change the struts-config.xml controller
tag to:
<controller
processorClass="com.med.struts.action.CustomRequestProcessor"/>
where previously it had been:
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

I get the following errors if the CustomRequestProcessor extends the
TilesRequestProcessor and the application is configured to use the Tiles
tab library and plug-in:

org.apache.struts.tiles.TilesPlugin TilesPlugin : Specified
RequestProcessor not compatible with TilesRequestProcessor

org.apache.struts.action.ActionServlet Unable to initialize Struts
ActionServlet due to an unexpected exception or error thrown, so marking
the servlet as unavailable. Most likely, this is due to an incorrect or
missing library dependency.

org.apache.struts.action.ActionServlet TRAS0014I: The following
exception was logged javax.servlet.ServletException: TilesPlugin :
Specified RequestProcessor not compatible with TilesRequestProcessor

Beyond extending org.apache.struts.tiles.TilesRequestProcessor, what is
needed to make the CustomRequestProcessor compatible with
TilesRequestProcessor?

--------------------------------------------------------------
Jane Eisenstein
MEDecision, Inc.
phone: 610-540-0202 ext. 1285
email:  [EMAIL PROTECTED]

 

Reply via email to