code: public void sendRedirect(String location) throws IOException {
          if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
              logger.entering(CLASS_NAME,"sendRedirect", "location --> " + PasswordNullifier.nullifyParams(location) + " ["+this+"]" );
          }
  
          // d151464 - check the include flag
          WebAppDispatcherContext dispatchContext = (WebAppDispatcherContext) getRequest().getWebAppDispatcherContext();
          if (dispatchContext.isInclude() == true) {
              if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
                  logger.logp(Level.FINE, CLASS_NAME,"sendRedirect", nls.getString("Illegal.from.included.servlet", "Illegal from included servlet"), "sendRedirect location --> " + PasswordNullifier.nullifyParams(location));  //311717
              }
          }
          else {
              dispatchContext.sendRedirect(location);
          }
  
          this.closeResponseOutput();
  
          // PK79143 Start
          if (!isCommitted() && !dispatchContext.isInclude()) {                                          // PM04383
              if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE))
                  logger.logp(Level.FINE, CLASS_NAME,"sendRedirect"," : Not committed, so write headers");
              commit();
              _response.setLastBuffer(true);
              _response.writeHeaders();
          }
          // PK79143 End
  
          if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)) {  //306998.15
              logger.exiting(CLASS_NAME,"sendRedirect");
          }        
      }
docs: Sends a redirect response to the client using the specified redirect location URL.
  
  @param location The redirect location URL.
  
  @exception IOException
  If an I/O error has occurred.