public void forwardTo(RequestContext context){
  String classMethod="PWResetUserValidationViewBean:forwardTo : ";
  HttpServletRequest req=context.getRequest();
  PWResetUserValidationModel model=(PWResetUserValidationModel)getModel();
  ISLocaleContext localeContext=new ISLocaleContext();
  localeContext.setLocale(req);
  java.util.Locale locale=localeContext.getLocale();
  model.setUserLocale(locale.toString());
  String orgDN=(String)getPageSessionAttribute(ORG_DN);
  if (orgDN == null) {
    Hashtable reqDataHash=AuthUtils.parseRequestParameters(req);
    String orgParam=AuthUtils.getOrgParam(reqDataHash);
    String queryOrg=AuthUtils.getQueryOrgName(req,orgParam);
    orgDN=AuthUtils.getOrganizationDN(queryOrg,true,req);
    model.setValidRealm(orgDN);
    if (debug.messageEnabled()) {
      debug.message(classMethod + "orgDN is :" + orgDN);
    }
    setPageSessionAttribute(ORG_DN,orgDN);
    if (orgParam != null && orgParam.length() > 0) {
      setPageSessionAttribute(ORG_DN_FLAG,STRING_TRUE);
      model.setRealmFlag(true);
    }
  }
 else {
    model.setValidRealm(orgDN);
  }
  super.forwardTo(context);
}

public void forwardTo ( RequestContext context ) { String classMethod = "PWResetUserValidationViewBean:forwardTo : " ; HttpServletRequest req = context . getRequest ( ) ; PWResetUserValidationModel model = ( PWResetUserValidationModel ) getModel ( ) ; ISLocaleContext localeContext = new ISLocaleContext ( ) ; localeContext . setLocale ( req ) ; java . util . Locale locale = localeContext . getLocale ( ) ; model . setUserLocale ( locale . toString ( ) ) ; String orgDN = ( String ) getPageSessionAttribute ( ORG_DN ) ; if ( orgDN == null ) { Hashtable reqDataHash = AuthUtils . parseRequestParameters ( req ) ; String orgParam = AuthUtils . getOrgParam ( reqDataHash ) ; String queryOrg = AuthUtils . getQueryOrgName ( req , orgParam ) ; orgDN = AuthUtils . getOrganizationDN ( queryOrg , true , req ) ; model . setValidRealm ( orgDN ) ; if ( debug . messageEnabled ( ) ) { debug . message ( classMethod + "orgDN is :" + orgDN ) ; } setPageSessionAttribute ( ORG_DN , orgDN ) ; if ( orgParam != null && orgParam . length ( ) > 0 ) { setPageSessionAttribute ( ORG_DN_FLAG , STRING_TRUE ) ; model . setRealmFlag ( true ) ; } } else { model . setValidRealm ( orgDN ) ; } super . forwardTo ( context ) ; }
forwards to current view bean after validating organization
