You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Dean A. Hoover" <dh...@rochester.rr.com> on 2004/04/17 21:39:11 UTC
Re: tiles and custom RequestProcessor (SOLVED)
OK, the trick is to subclass TilesRequestProcessor.
Thanks anyway....
Dean A. Hoover wrote:
> Sorry, I should probably have included the exception:
>
> javax.servlet.ServletException: TilesPlugin : Specified
> RequestProcessor not compatible with TilesRequestProcessor
> org.apache.struts.tiles.TilesPlugin.initRequestProcessorClass(TilesPlugin.java:360)
>
> org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:164)
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
>
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
> javax.servlet.GenericServlet.init(GenericServlet.java:256)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
>
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
>
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:339)
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:415)
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:716)
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:650)
>
> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
>
> java.lang.Thread.run(Thread.java:536)
>
>
> Dean A. Hoover wrote:
>
>> I am using tiles *and* I want to use a custom
>> RequestProcessor to handle HttpSession stuff.
>> It seems that tiles uses its own request processor.
>> I wrote a simple subclass of RequestPorcessor
>> and configured as follows:
>>
>> <controller contentType="text/html;charset=UTF-8" nocache="true"
>> processorClass="fi.els.util.SessionRequestProcessor"/>
>>
>> <message-resources parameter="resources.application"/>
>>
>> <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"/>
>> </plug-in>
>>
>> How can I get "in front of" the tiles request processor?
>> Dean Hoover
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org