public void beginDisplay(DisplayEvent event) throws ModelControlException {
  super.beginDisplay(event);
  PWResetUserValidationModel model=(PWResetUserValidationModel)getModel();
  if (model.isValidRealm()) {
    String orgDN=(String)getPageSessionAttribute(ORG_DN);
    String userAttr=model.getUserAttr(orgDN);
    HiddenField hf=(HiddenField)getChild(FLD_USER_ATTR);
    hf.setValue(userAttr);
    setDisplayFieldValue(USER_VALIDATION_TITLE,model.getUserValidateTitleString());
    setDisplayFieldValue(LBL_USER_ATTR,model.getLocalizedStrForAttr(userAttr));
    setDisplayFieldValue(NEXT_BUTTON,model.getNextBtnLabel());
    String userAttrValue=(String)getPageSessionAttribute(USER_ATTR_VALUE);
    if (userAttrValue != null && userAttrValue.length() > 0) {
      setDisplayFieldValue(TF_USER_ATTR,userAttrValue);
      removePageSessionAttribute(USER_ATTR_VALUE);
    }
  }
}

public void beginDisplay ( DisplayEvent event ) throws ModelControlException { super . beginDisplay ( event ) ; PWResetUserValidationModel model = ( PWResetUserValidationModel ) getModel ( ) ; if ( model . isValidRealm ( ) ) { String orgDN = ( String ) getPageSessionAttribute ( ORG_DN ) ; String userAttr = model . getUserAttr ( orgDN ) ; HiddenField hf = ( HiddenField ) getChild ( FLD_USER_ATTR ) ; hf . setValue ( userAttr ) ; setDisplayFieldValue ( USER_VALIDATION_TITLE , model . getUserValidateTitleString ( ) ) ; setDisplayFieldValue ( LBL_USER_ATTR , model . getLocalizedStrForAttr ( userAttr ) ) ; setDisplayFieldValue ( NEXT_BUTTON , model . getNextBtnLabel ( ) ) ; String userAttrValue = ( String ) getPageSessionAttribute ( USER_ATTR_VALUE ) ; if ( userAttrValue != null && userAttrValue . length ( ) > 0 ) { setDisplayFieldValue ( TF_USER_ATTR , userAttrValue ) ; removePageSessionAttribute ( USER_ATTR_VALUE ) ; } } }
set the required information to display the page .
