org.kuali.rice.kew.web
Class StrutsRequestProcessor

java.lang.Object
  extended by org.apache.struts.action.RequestProcessor
      extended by org.kuali.rice.kew.web.StrutsRequestProcessor

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

A RequestProcessor implementation for Struts which handles saving and retrieving ActionForms when leaving one context in the web GUI for another and then returning. This uses the DOC_FORM_KEY_ATTRIBUTE to store the saved forms.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.apache.struts.action.RequestProcessor
actions, INCLUDE_PATH_INFO, INCLUDE_SERVLET_PATH, log, moduleConfig, servlet
 
Constructor Summary
StrutsRequestProcessor()
           
 
Method Summary
protected  boolean isConvertNullWorkaroundNeeded()
          In KEW we set the convertNull property to "true" on the Struts ActionServlet.
 void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  org.apache.struts.action.ActionForm processActionForm(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.apache.struts.action.ActionMapping mapping)
           
 
Methods inherited from class org.apache.struts.action.RequestProcessor
destroy, doForward, doInclude, getInternal, getServletContext, init, internalModuleRelativeForward, internalModuleRelativeInclude, log, log, processActionCreate, processActionPerform, processCachedMessages, processContent, processException, processForward, processForwardConfig, processInclude, processLocale, processMapping, processMultipart, processNoCache, processPath, processPopulate, processPreprocess, processRoles, processValidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrutsRequestProcessor

public StrutsRequestProcessor()
Method Detail

process

public void process(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws java.io.IOException,
                    javax.servlet.ServletException
Overrides:
process in class org.apache.struts.action.RequestProcessor
Throws:
java.io.IOException
javax.servlet.ServletException

isConvertNullWorkaroundNeeded

protected boolean isConvertNullWorkaroundNeeded()
In KEW we set the convertNull property to "true" on the Struts ActionServlet. However, if an application which is running KEW as an embedded Struts Module has it set to false or is using some customizations to BeanUtils this will cause problems. We need to detect when this case occurs, then register context sensitive converters which will convert properly inside of the KEW web application.


processActionForm

protected org.apache.struts.action.ActionForm processActionForm(javax.servlet.http.HttpServletRequest request,
                                                                javax.servlet.http.HttpServletResponse response,
                                                                org.apache.struts.action.ActionMapping mapping)
Overrides:
processActionForm in class org.apache.struts.action.RequestProcessor


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.