BEA Systems, Inc.

com.beasys.commerce.user.jsp.tags
Class SetPasswordTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.beasys.commerce.user.jsp.tags.UserManagerTag
              |
              +--com.beasys.commerce.user.jsp.tags.ResultTag
                    |
                    +--com.beasys.commerce.user.jsp.tags.SetPasswordTag
All Implemented Interfaces:
SchemaManagerConstants, java.io.Serializable, javax.servlet.jsp.tagext.Tag, UserManagementConstants, UserManagerTagConstants

public class SetPasswordTag
extends ResultTag

Corresponds to <um:setPassword>.

The <um:setPassword> tag updates the password for the user corresponding to the provided username.

Note: This tag should only be invoked when the weblogic.security.realmClass property in the weblogic.properties file is com.beasys.commerce.axiom.contact.security.RDBMSRealm.

Tag Attribute

Required

Type

Description

username

yes

String

The username of the user whose password is to be changed.

Example: "<%=username%>"

password

yes

String

The new user password.

Example: "<%=password%>"

result

yes

String

The name of an Integer variable to which the result of the set password operation is assigned.

Possible Values:
Success:
UserManagerTagContstants.SET_PASSWORD_OK

Failure:
UserManagerTagContstants.SET_PASSWORD_FAILED

See Also:
Serialized Form

Fields inherited from class com.beasys.commerce.user.jsp.tags.ResultTag
result
 
Fields inherited from class com.beasys.commerce.user.jsp.tags.UserManagerTag
printStackTraces, verbose
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface com.beasys.commerce.user.jsp.tags.UserManagerTagConstants
ADD_GROUP_FAILED, ADD_GROUP_OK, ADD_USER_FAILED, ADD_USER_OK, CREATE_GROUP_FAILED, CREATE_GROUP_OK, CREATE_USER_FAILED, CREATE_USER_OK, DEFAULT_SEARCH_EXP, DEFAULT_USER_LIMIT, GET_PROFILE_FAILED, GET_PROFILE_OK, GROUP_CHANGE_FAILED, GROUP_CHANGE_OK, GROUP_EXISTS, LOGIN_ERROR, LOGIN_FAILED, LOGIN_OK, NO_SUCH_PROFILE, NO_SUCH_SUCCESSOR, PROFILE_SUCCESSOR_UID, PROFILE_USER_UID, REMOVE_GROUP_FAILED, REMOVE_GROUP_OK, REMOVE_USER_FAILED, REMOVE_USER_OK, RESERVED_GROUP_NAME, RESERVED_USER_NAME, SERVLET_AUTHENTICATION, SET_PASSWORD_FAILED,
Fields inherited from interface com.beasys.commerce.axiom.contact.UserManagementConstants
ANONYMOUS_PROFILE, CACHED_PROFILE, DEFAULT_SCOPE, DEFAULT_SUCCESSOR, DEFAULT_SUCCESSOR_HOME, DEFAULT_SUCCESSOR_JNDI, DEFAULT_SUCCESSOR_PK, DEFAULT_USER, DEFAULT_USER_HOME, DEFAULT_USER_JNDI, DEFAULT_USER_PK, GROUP, GROUP_ENTITY_HOME, PROFILE_MGR, PROFILE_SUCCESSOR, PROFILE_USER, REALM_CONFIG, RESERVED_SCOPE, USER, USER_ENTITY_HOME, USER_MGR
 
Fields inherited from interface com.beasys.commerce.foundation.property.SchemaManagerConstants
APPLICATION_INIT_TYPE, CATALOG_TYPE, CONTENT_TYPE, REQUEST_TYPE, SCHEMA, SCHEMA_GROUPS, SESSION_TYPE, USER_TYPE
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
SetPasswordTag()
           
 
Method Summary
 int doStartTag()
          Go through the UserManager session bean to set the user's password.
 java.lang.String getPassword()
          Get the new password
 java.lang.String getUsername()
          Get the name of the user to modify
 void setPassword(java.lang.String s)
          Set the new password
 void setUsername(java.lang.String s)
          Set the name of the user to modify
 
Methods inherited from class com.beasys.commerce.user.jsp.tags.ResultTag
getResult, release, setResult
 
Methods inherited from class com.beasys.commerce.user.jsp.tags.UserManagerTag
getUserManager
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetPasswordTag

public SetPasswordTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Go through the UserManager session bean to set the user's password.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport

getPassword

public java.lang.String getPassword()
Get the new password

setPassword

public void setPassword(java.lang.String s)
Set the new password

getUsername

public java.lang.String getUsername()
Get the name of the user to modify

setUsername

public void setUsername(java.lang.String s)
Set the name of the user to modify

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved