Home > Contents > Index >
user:su
Log in as a particular user.
Syntax
<user:su username="user name" password="user's password"/>Parameters
username (required)
- Name of the user.
password (required)
- User's password.
Description
Allows you to log in as a particular so you can make changes. This tag is useful when combined with the
user:modify
tag to make administrative user profile changes.Error Numbers
The possible values of
errno
include:
Value Description -10004 A required parameter is missing. -10005 The requested object is not in the object pool (is not loaded intomemory).Example
The following example logs in a user as Percy, changes the password, and logs out and back to the original user:
<user:su username="Percy" password="rosebud"/> <user:modify username="Percy" password="other"/> </user:su>See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.