Dear all,
I'd like to create a web app with 2 different possibilities for user to login
The first one is using the standard
tomcat security mechanism, i.e by defining realm with the user and user role tables:
USER: user - password
USER_ROLE: user - userrole
so that the 1st login page will look approx. as follows:
<form action="<%= response.encodeURL("j_security_check") %>" method="post" id="loginForm" name="loginForm">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td height="45px" colspan="2" style="padding:0;"> </td>
</tr>
<tr style="height:24px;">
<td style="padding:0 0 0 5px;">
<label for="j_username">Username</label>
</td>
<td style="padding:0;">
<input type="text" value="Username" id="j_username" name="j_username" />
</td>
</tr>
<tr style="height:24px;">
<td style="padding:0 0 0 5px;">
<label for="j_password">Password</label>
</td>
<td style="padding:0;">
<input type="password" value="*****" id="j_password" name="j_password" /></td>
</tr>
Now I'd like to create a 2nd login-page, which protects exactly the same sites, but the fields should be diffenet, i.e. instead of using username and password, the user should be able to login using his lastname, birthday, mail address and password
The table which contains those information has also the column containing the username, e.g
USER_INFO: username - lastname - birthday - email
My questions are:
- is it still possible to implement this kind of 2nd login page while the standard tomcat mechanism is activated (any round-way or forwarding possible?)
-if yes, could you please provide a simple example for this?
Many thanks in advance!
Regards
Piotr
gru�