FileDocCategorySizeDatePackage
CustomRequestProcessor.javaAPI DocExample1227Thu Apr 08 02:05:12 BST 2004com.oreilly.strutsckbk

CustomRequestProcessor

public class CustomRequestProcessor extends org.apache.struts.action.RequestProcessor

Fields Summary
Constructors Summary
Methods Summary
protected org.apache.struts.action.ActionForwardprocessActionPerform(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.Action action, org.apache.struts.action.ActionForm form, org.apache.struts.action.ActionMapping mapping)

		ActionForward forward = null;
		if (!(mapping instanceof DisablingActionMapping)) {
			forward = super.processActionPerform( request, response, action, form, mapping);
		}
		else {
			DisablingActionMapping customMapping = (DisablingActionMapping) mapping;
			if (customMapping.isActionDisabled()) {
				forward = customMapping.findForward("underConstruction");
			}
			else {
				forward = super.processActionPerform( request, response, action, form, mapping);
			}
		}
		return forward;