on 10/30/2000 9:45 AM, "Dave Bryson" <[EMAIL PROTECTED]> wrote:

> On Mon, 30 Oct 2000, you wrote:
>> Hi,
>> 
>> I want to be sure that a User is logged before displaying a page.
>> I am sure that this already exists in Turbine. I've searched but I didn't
>> find.
>> 
>> How to do that ? (Where is the secure page, or secure layout ? )
> 
> - In the Screen you can use the RunData object
> 
>   if ( data.getUser.hasLoggedIn() )
>       // show the screen
> -- 
> Dave Bryson
> [EMAIL PROTECTED]
> ----------------------

Or, even easier...create a class like this (url below) and then any screen
which extends this screen gets the above code executed for them...

<http://scarab.tigris.org/source/browse/scarab/sandbox/webapps/scarab/WEB-IN
F/src/org/tigris/scarab/screens/base/RequireLoginFirst.java?rev=1.2&content-
type=text/x-cvsweb-markup>

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to