* Finn Smith [[EMAIL PROTECTED]], August 09, 2001 11:38 AM
>
> * toni karhu [[EMAIL PROTECTED]], August 09, 2001 8:54 AM
> >
> > hello, im using jsp pages and have a problem with
> > login. All I want to do is use the peers without
> > needing to login. I have done researh and found out
> > that I should overide the sessionvalidator somehow.
> > How do I do this im confused as I cant seem to
> > understand how the rundata service is used, all the
> > examples say that I should do data.getACL(), to get an
> > access list, but how do i get the data object into a
> > jsp page or jsp bean.
>
> It's not necessary to mess with the SessionValidator if you don't plan on
> having people login to your site. All you have to do is build a site using
> Screen classes which inherit from VelocityScreen rather than
> VelocitySecureScreen.
>
> Secure screens perform a security check with the method isAuthorized()
> before allowing you to view the page. Regular screens do not, and allow
> anyone to access them.
>
> If you look at the sample app that comes with the TDK, you can remove the
> SecureScreen class from modules/screens and rewrite the other classes to
> inherit from VelocityScreen and everything should work fine. Also take a
> look at the Velocity Site Howto. It walks through creating a HelloWorld
> screen which doesn't have any security.
>
> Note that the SQL action in modules/actions also inherits froma secure
> action class. You can change that so it doesn't need
> authentication as well.


Whoops. I forgot to mention a couple of other things as well. You'll need to
have a Default.java class which inherits from VelocityScreen.java in your
modules/screens directory.

You'll also want to edit your TurbineResources.properties so that
template.homepage and template.login both point to Index.vm

-F


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

Reply via email to