[opencms-dev] Empty pages published

Thomas M�rz thomasmaerz at gmx.de
Tue Jan 6 14:38:01 CET 2004


"Murray, Neil" <neil.murray at za.eds.com> writes:

> We've got a .jsp template which checks the login status of a user and
> redirects to a login page if he/she is not logged in, otherwise it opens the
> requested page. The redirection works fine if tested on the offline /
> unpublished version of the site, but the published version just shows a
> blank page. I've narrowed it down to the actual redirect part of the code -
> if I take that out the template works fine.
>
> Also the file size of the index.html that uses this template is zero if this
> redirect portion of the code is included.

// this works for me:
if (session != null && (session.getValue("loggedIn") != null)) {
    response.sendRedirect(cms.link("/go/to/login.html"));
}




More information about the opencms-dev mailing list