UpdateUserAction

Updates the logged in user with the values defined in the form. It both updates existing profiles and creates new profiles if user has added a new profile. The userName will not be updated using this action as this is a readonly value.

Struts config
<action path="/updateUser"
  type="com.escenic.profile.presentation.struts.UpdateUserAction"
  name="UserForm"
  input="/updateUser-input.jsp"
  validate="true">

  <forward name="success"
           path="/updateUser-success.jsp"/>

  <forward name="not-logged-in"
           path="/updateUser-not-logged-in.jsp"/>
</action>
Action Form

Below is a list of the Action Forms known to work with this Action. All of these Action Forms is a instance of {@link AbstractUserForm}.

DefaultUserForm

Implementation which uses the email as username.

StandardUserForm

Implementation which uses a separate field as username.

Action Forwards

input page

If the user couldn't be updated.

success

If the user was successfully updated

not-logged-in

If user is not logged in

Action Error

If updating the user fails, an error will be logged, and the action will be forwarded to the input-page.

update_user_failed

(On the global property.) If updating user failes