http://www.mail-archive.com/[email protected]/msg15542.html
suggests calling processActionForward from unauthenticatedUser, which is
called from processesPreprocess, to handle timout checking. But in the
stable release processActionForward needs an ActionMapping parm. So I change
the example code to this:
private void unauthenticatedUser(
HttpServletResponse iResponse,
HttpServletRequest iRequest,
String iRequestedPage)
throws IOException, ServletException {
HttpSession session = iRequest.getSession();
ActionErrors errors = new ActionErrors();
// redirect to the login servlet (passing parameter)
String path = processPath(iRequest);
this.log(" User is not logged on in session "
+ session.getId());
/*errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError("error.notloggedin"));
saveErrors(iRequest, errors);*/
ActionForward logonForward = findForward("logon");
ActionForward forward = new ActionForward(logonForward.getPath(), true);
//forward.setPath(forward.getPath() + "?page=" + iRequestedPage);
processForward(processMapping(path,iRequest), iRequest, iResponse);
}
This function is being called when a timout occurs, but the forward to my
logon page never happens. I just get a plain white screen. (The address bar
shows me the name of last screen I was on.)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>