Hi list,
Thanks for your continuous support to resolve issues.
I have a query regarding customized log out page. I have added a link to return
back to login screen. To achieve this I have added below mentioned lines, I
have copied this form error.jsp where there is a link Return to home page.
This works fine ... it takes me to login page after I click on login again link
but
I have a char field on home page which says Welcome $USER$ after login in with
second user id it shows me values of the first user logged in...
Steps
1. Login with Joe User
2. Welcome Joe user is shown in char field
3. Logout-> Click on Login Again link
4. Login with credentials Francie Frontline
5. Welcome Joe user is shown in char field
is this a cache problem??? Please help me overcome this issue.. is the script
below right?? or is there a simple link which i can point to..
<tr>
<td class="ReturnHome">
<%
// put in a link to the home page if user has one
String hs = HomeServlet.getHomeServer();
if (hs != null && HomeServlet.getHomeForm(hs) != null) {
String homeurl=request.getContextPath() + "/home";
String localizedLink = MessageTranslation.getLocalizedText(locale,
"Login Again");
%>
<a href=<%=homeurl%>><%=localizedLink%></a>
<%
}
else
{
%>
<%
}
%>
</td>
</tr>
Regards,
Anish
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.
www.wipro.com