dgraham 2002/10/27 13:36:12 Modified: doc/userGuide building_controller.xml Log: added processContent doc for RequestProcessor Revision Changes Path 1.41 +8 -1 jakarta-struts/doc/userGuide/building_controller.xml Index: building_controller.xml =================================================================== RCS file: /home/cvs/jakarta-struts/doc/userGuide/building_controller.xml,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- building_controller.xml 27 Oct 2002 21:30:04 -0000 1.40 +++ building_controller.xml 27 Oct 2002 21:36:12 -0000 1.41 @@ -371,7 +371,8 @@ will be used later to retrieve an ActionMapping.</li> <li><code>processLocale</code> Select a locale for this request, if one hasn't already been selected, and place it in the request.</li> - <li><code>processContent</code> [:TODO:]</li> + <li><code>processContent</code> Set the default content type (with optional + character encoding) for all responses if requested.</li> <li><code>processNoCache</code> If appropriate, set the following response headers: "Pragma", "Cache-Control", and "Expires".</li> <li><code>processPreprocess</code> This is one of the "hooks" the @@ -417,9 +418,11 @@ Your execute method should process the Exception and return an ActionForward object to tell Struts where to forward to next. Then you configure your handler in struts-config.xml like this:<br/> + <pre> <global-exceptions> <exception key="some.key" type="java.io.IOException" handler="com.yourcorp.ExceptionHandler"/> </global-exceptions> + </pre> <br/> That configuration says that com.yourcorp.ExceptionHandler.execute() will be called when any IOException is thrown by an Action. The key is a key from your message resources @@ -686,10 +689,12 @@ <p> This example uses the default values for several controller parameters. If you only want default behavior you can omit the controller section altogether.<br/> + <pre> <controller processorClass="org.apache.struts.action.RequestProcessor" debug="0" contentType="text/html"/> + </pre> </p> </section> @@ -751,9 +756,11 @@ </p> <p> This is an example using the Tiles plugin:<br/> + <pre> <plug-in className="org.apache.struts.tiles.TilesPlugin" > <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/> </plug-in> + </pre> </p> </section>
-- To unsubscribe, e-mail: <mailto:struts-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>