Hi everyone

I found the solution. Its related to the browser cached pages.
The trick is that in struts you specified to the controller not to let the
browser to cache the html pages of your apps. That way the browser has to
ask for the page every time that its been accessed. And in consequence, to
validate the authentication of the user.

So in the controller config in struts-config.xml you put something like

  <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"
                          nocache="true"
                    inputForward="true"
                    maxFileSize="2M" />

nocache="true" is the trick.

PS. Don't forget to redirect the error 400 to the login page. In web.xml add

   <error-page>
      <error-code>400</error-code>
      <location>/index.jsp</location>
   </error-page>

Regards




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to