aspose file tools*
The moose likes Struts and the fly likes Strange session timeout problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange session timeout problem?" Watch "Strange session timeout problem?" New topic
Author

Strange session timeout problem?

A Harry
Ranch Hand

Joined: Jan 23, 2002
Posts: 124
In each action's execute method I test for the exsistance of a session object that is set at app start up. This will not be present if the session timed out so the plan is like this -

SecurityFlags_DTO oSec = (SecurityFlags_DTO)session.getAttribute("sec");

if(oSec==null)
{
return (mapping.findForward("startup"));
}

The trouble is this forward just presents a blank page in the browser, no errors nothing!

The forward "startup" looks like this -

<forward name="startup" path="/PRD.do"/>

& should restart the app in the correct action i.e PRD.do

Any ideas?

this is reallky spooky!

thanks

harry
Leandro Melo
Ranch Hand

Joined: Mar 27, 2004
Posts: 401
Is your problem the Session or the Forward???
If it`s the foward, post some code.


Leandro Melo
SCJP 1.4, SCWCD 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Strange session timeout problem?
 
Similar Threads
Is this possible?
Use welcome-file-list to run struts action?
Passed with 88%
How often the listeners as well as filters are used in applications by companies??
Correct way to use getSession() in actions?