# <um:login> Tag

The <um:login> tag provides weak authentication (username, password) against the current security realm, and sets the authenticated user as the current WebLogic user. This tag has no enclosed body.

The login tag requires a username parameter and a password parameter to be present in the HTTP request.

Note: All User Management tags send results to the same file. If you are checking for results, include this import statement at the top of the page: <%@ page import="com.bea.p13n.usermgmt. servlets.jsp.tags.UserManagementTag- Constants" %>

## Syntax

<tagName attribute="value" />

## Attributes

result

Required (String) - The name of an Integer variable to which the result of the login operation is assigned.

Possible values:

- Success: UserManagementTagConstants.LOGIN_OK.
- General error when performing authentication: UserManagementTagConstants.LOGIN_ERROR.
- Authentication failed because of invalid username/password combination: UserManagementTagConstants.LOGIN_FAILED.

## Example

    <um:login result="result" />

This tag is also used in the Login to Portal Portlet sample.

Related Topics

<um:logout> Tag