On 7/22/01 11:19 PM, "Lothar Krause" <[EMAIL PROTECTED]> wrote:

> Wow this was almost enlightning!
> 
> ....
>> If you're using 2.1 than what you should do is make a Default.java
>> screen that subclasses VelocityScreen. This will allow anonymous
>> access by default. Than use a secure screen for the secure access.
>> I just tried it and you don't need to make a new session validator.
> 
> I'm using and 2.1 and I just created Default.java extending VelocityScreen
> than I added a link <a href="$link.setPage("Form.vm")>Form</a> to the
> Login.vm file.
> When I now click on the link this will take me to the ... Login screen
> again?

If you are doing what I think you're doing than no, it won't work.
If this is the sample app than Form.vm has a corresponding screen
named Form.java which extends SecureScreen.java and any subclass
of SecureScreen.java requires the user to be logged in.

Here are some files to try and help you along:

http://www.apache.org/~jvanzyl/insecure.zip

There are four files in the zip file.

1) copy templates to the templates/app/screens directory
2) replace TRP with the one provided
3) copy Insecure.java to the screen module directory

Compile the sample app again and run catalina. The app will
go to the Login.vm template first and there will be a link
named 'Insecure' beneath the login/password fields. You can
access this page without logging in. This should at least get
you started.

You'll notice the correct layout isn't found, this is a bug and
I will fix it tomorrow. Martin will be working on getting a 2.1.1
tdk out.

> 
>> I will clean this code up in HEAD. It's definitely confusing at
>> first glance.
> 
> true. How long will it takes until tdk-3 is out on the streets? I just tried
> the alpha version but I throws a NumberFormatException when I try to login
> (using Oracle there).
> Also I noticed that Oracle 8i is complaining about missing parenthesis after
> RAW while creating tables.
> 
> I'm trying to convice my boss to use turbine for a protein database
> interface with not so many proteins but a lot of tables,so  any pointer to
> package/howtos  that provide me with ammo especially generating/performing
> more complex SQL queries welcome here.
> 
> lo
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



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

Reply via email to