Hi,

I am securing my screens with the method isAuthorized() which includes the
following code:
        if (!isAuthorized)
         {
                data.setScreenTemplate("AccessNotAllowed.vm");
                data.setScreen("AccessNotAllowed");
         }
        return isAuthorized;
This will lead the user to the new screen but the correspondending java code
in
"AccessNotAllowed.class" (which is setting some text in the proper language)
is not executed.
If I call the screen "AccessNotAllowed.vm" directly in the URL, everything
is fine.

After that, I tried
                
            data.setRedirectURI("AccessNotAllowed.vm");
            data.setStatusCode( 302);

This will lead to an endless loop whenever the user has no privileges to
execute the secured screen.

Do you have an idea, how to execute another screen from the isAuthorized
method ?

Regards,

Bernd Potzkai

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

Reply via email to