# com.bea.p13n.usermgmt.profile.taglib
SetPropertyTag Class

public class SetPropertyTag
extends `PropertyTag`

Corresponds to `<profile:setProperty>`.

The `<profile:setProperty>` tag updates a property value for either the session's current profile, or for the Anonymous User Profile. The tag has no enclosed body.

Tag Attribute | Required | Type | Description
propertySet | no | String | The Property Set in which the property's value is to be set. Example: "Demo Portal". Note: The property is set for the profile's default (unscoped) properties if no property set is provided.
propertyName | yes | String | The name of the property to be set. Example: "background_color".
value | yes | String | The new property value. Example: "green".
result | no | String | The name of an Integer variable to which the result of the set property operation is assigned. Possible Values: Success: `UserManagerTagConstants.SET_PROPERTY_OK` Error encountered: `UserManagerTagConstants.SET_PROPERTY_FAILED`

Hierarchy
  `Object`
  `TagSupport`
  `ProfileManagementTag`
  `PropertyTag`
  `SetPropertyTag`

All Implemented Interfaces
  `IterationTag`, `Serializable`, `Tag`

## Field Summary

Fields from com.bea.p13n.usermgmt.profile.taglib`.`ProfileManagementTag``
``CREATE_PROFILE_FAILED`, `CREATE_PROFILE_NO_SUCH_USER`, `CREATE_PROFILE_OK`, `GET_PROFILE_FAILED`, `GET_PROFILE_OK`, `NO_SUCH_PROFILE`, `NO_SUCH_SUCCESSOR`, `SET_PROPERTY_FAILED`, `SET_PROPERTY_OK``

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

SetPropertyTag()

## Method Summary

`public int` | `doStartTag`() Set the property in the current profile.
`public `String`` | `getResult`() Get the name of the variable to assign the result to
`public `Object`` | `getValue`() Get the value to set for the property
`public void` | `release`() Reset all of the tag's attributes
`public void` | `setResult`(`String` s) Set the name of the variable to assign the result to
`public void` | `setValue`(`Object` o) Set the value to set for the property
`public void` | `setValue`(`String` s) Set the value to set for the property, as a String

Methods from `com.bea.p13n.usermgmt.profile.taglib.`PropertyTag``
``getPropertyName`, `getPropertySet`, `setPropertyName`, `setPropertySet``

Methods from `com.bea.p13n.usermgmt.profile.taglib.`ProfileManagementTag``
``release``

Methods from `javax.servlet.jsp.tagext.`TagSupport``
`doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Constructor Detail

### SetPropertyTag

    public SetPropertyTag()

## Method Detail

### doStartTag() Method

    public int doStartTag()
         throws JspException

Set the property in the current profile.

Overrides
  `TagSupport.doStartTag()`

#### Exceptions

``JspException``

### getResult() Method

    public String getResult()

Get the name of the variable to assign the result to

### getValue() Method

    public Object getValue()

Get the value to set for the property

### release() Method

    public void release()

Reset all of the tag's attributes

Overrides
  `PropertyTag.release()`

### setResult(String) Method

    public void setResult(String s)

Set the name of the variable to assign the result to

### setValue(Object) Method

    public void setValue(Object o)

Set the value to set for the property

### setValue(String) Method

    public void setValue(String s)

Set the value to set for the property, as a String