Customizing Login Pages, Logout Pages, and Messages
85
n
ov
do
cx (e
n)
16
Ap
ril 20
10
Windows Identity Server:
Enter the following commands:
net stop Tomcat5
net start Tomcat5
2.4 Sample Custom Login Pages
Section 2.4.1, “Modified login.jsp File for Credential Prompts,” on page 85
Section 2.4.2, “Custom nidp.jsp File with Custom Credentials,” on page 88
Section 2.4.3, “Custom 3.1 login.jsp File,” on page 95
Section 2.4.4, “Custom 3.0 login.jsp File,” on page 98
2.4.1 Modified login.jsp File for Credential Prompts
The following code is a modified version of the 3.1
login.jsp
file. It has been modified to add a
prompt for the user’s email address.
Figure 2-4
illustrates the login page that these changes produce.
Figure 2-4
Custom Credentials
Such a JSP file must be used with a contract that uses a method that defines the query for the new
attribute. The method also needs to define which login file has been modified to display the prompt.
For more information about this process, see
“Customizing the Default Login Page to Prompt for
Different Credentials” on page 61
.
The sample code contains the following the text for the prompt:
<td align=left>
<label>Email Address:</label>
</td>
It also adds an input element for the query variable:
<td align=left>
<input type="text" class="smalltext" name="Ecom_User_Mail" size="30">
</td>
These elements are both part of the new
<tr>
element that has been added to the file. These lines are
marked in bold in the following sample file.
Summary of Contents for ACCESS MANAGER 3.1 SP2 - README 2010
Page 4: ...4 Novell Access Manager 3 1 SP2 Identity Server Guide novdocx en 16 April 2010...
Page 12: ...12 Novell Access Manager 3 1 SP2 Identity Server Guide novdocx en 16 April 2010...
Page 158: ...158 Novell Access Manager 3 1 SP2 Identity Server Guide novdocx en 16 April 2010...
Page 172: ...172 Novell Access Manager 3 1 SP2 Identity Server Guide novdocx en 16 April 2010...
Page 182: ...182 Novell Access Manager 3 1 SP2 Identity Server Guide novdocx en 16 April 2010...
Page 290: ...290 Novell Access Manager 3 1 SP2 Identity Server Guide novdocx en 16 April 2010...
Page 362: ...362 Novell Access Manager 3 1 SP2 Identity Server Guide novdocx en 16 April 2010...
Page 374: ...374 Novell Access Manager 3 1 SP2 Identity Server Guide novdocx en 16 April 2010...