hi
i am using <html:link /> tag in the top menu of my
jsp page.
i am passing parameters to the tag using its "name" attribute after storing them in a HashMap.
The parameters in the map are retrieved from "session".These are actually Login parameters.
The problem is that even when i logout of the application and press the back button, although the session has been invalidated in my logout action class, these parameter values are still availaible to the html:link tag and i am able to browse through the application.
Please help. below i am copying the code
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="java.io.*,java.util.*"%>
<%
if(((
String)request.getSession().getAttribute("userid"))!= null){
String userid =(String)request.getSession().getAttribute("userid");
String password =(String)request.getSession().getAttribute("password");
Map paramMap = new HashMap();
paramMap.put("loginStatus", "USER");
paramMap.put("userid", userid);
paramMap.put("password", password);
request.setAttribute("linkParams", paramMap);
}
%>
<table align="right">
<tr bgcolor="#66CCFF">
<td ><html:link action="Logout" styleClass="text"><b>Logout </html:link></td>
<td ><html:link action="Login" name="linkParams" styleClass="text" ><b>Enter As User </html:link></td>
</tr>
</table>
After loogging out and going back to this jsp thru the browser back button and press the link "Enter As user", i am able to browse the application.
Can this be corrected
thanx
Sameer