How to create Custom RequestProcessor
This link will help us to learn about custom request processor.
If we are using Tiles in our application then our Custom RequestProcessor need to extend TilesRequestProcessor.
Add these lines to your struts-config.xml file after the <action-mapping> element to inform Struts that CustomRequestProcessor should be used as the RequestProcessor class:
<controller>
<set-property property="processorClass"
value="com.sample.util.CustomRequestProcessor"/>
</controller>
If we are using Tiles in our application then our Custom RequestProcessor need to extend TilesRequestProcessor.
Add these lines to your struts-config.xml file after the <action-mapping> element to inform Struts that CustomRequestProcessor should be used as the RequestProcessor class:
<controller>
<set-property property="processorClass"
value="com.sample.util.CustomRequestProcessor"/>
</controller>
0 Comments:
Post a Comment
<< Home