You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Muralikrishna <mu...@yahoo.com> on 2001/07/27 12:33:41 UTC

Turbine - Tomcat

Hello All,

I have one doubt, hoping to get the response from one amongst you.
I started going through the Turbine few days back. I want to know is it
posiible to use Turbine in the place of Tomcat? Turbine is a servlet
based (framework) tool for Web Application, right?
Please clarrify the same.

Thanking you.
Murali.

--
.................................................
Muralikrishna N.
SYNERGY INFOTECH PVT. LTD.
Mail me at :: muralin@synergy-infotech.com
Phone : 044-4466448/9.
Visit my Home page :- www.geocities.com/nidugala
.................................................



Trying to understand user and session validation in Turbine

Posted by "Daniel B. Ramagem" <da...@ssaihq.com>.
Hello all,

I hope I have not double-posted this message.  For some reason my first post
to the list (yesterday night) never showed up so I'm trying again.

I've been using Turbine (2.1) for a few days now and I'm excited about its
potential.  I'm still trying to better understand the inner workings of
Turbine's session and user validation scheme.

In my TR I have the following definitions:

action.sessionvalidator=sessionvalidator.TemplateSessionValidator
...
services.VelocityService.default.screen=VelocityScreen

If I request a template file that has no corresponding Java class (i.e.,
there is a templates/app/screens/Test.vm but no
WEB-INF/classes/.../screens/Test.class), the Login.vm screen is immediately
returned because I have not yet logged in.

But if I simply create a Test.java class that extends the VelocityScreen
class like so:

package com.etc.turbine.screens;

import org.apache.velocity.context.Context;
import org.apache.turbine.util.RunData;
import org.apache.turbine.modules.screens.VelocityScreen;

public class AboutTechspace extends VelocityScreen {
}

And I then request the same template Test.vm file again, it is returned to
me even when I'm not logged in.  Here's where I'm getting confused:
according to my TR, the default screen class should be VelocityScreen for
those templates called without a corresponding Java class, right?  If so,
then how does the simple addition of the class above make Turbine ignore the
user logged in check?  And where in the code should I be looking?

BTW, is this the best solution to keep a set of pages "public"?  Right now I
have about 5-8 links from my homepage that I want to be available to anyone.
Once the user is logged in, then I want all other links to be restricted
(which is being done automatically by TemplateSessionValidator and
VelocitySecureScreen).

Thanks,

Daniel.



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Turbine - Tomcat

Posted by Muralikrishna <mu...@yahoo.com>.
Hai,

Thank you for quick reply.
I got what you are saying. So Turbine is like Cocoon (XML publishing
platform).
ok fine, thank you once more.
Murali.

Skondras Panagiotis wrote:

> Tomcat is an Application Server for running servlets
> Turbine is not such a Server is a framework
> to create nice apps which need Tomcat to run or another servlet container
>
> Muralikrishna wrote:
>
> > Hello All,
> >
> > I have one doubt, hoping to get the response from one amongst you.
> > I started going through the Turbine few days back. I want to know is it
> > posiible to use Turbine in the place of Tomcat? Turbine is a servlet
> > based (framework) tool for Web Application, right?
> > Please clarrify the same.
> >
> > Thanking you.
> > Murali.
> >
> > --
> > .................................................
> > Muralikrishna N.
> > SYNERGY INFOTECH PVT. LTD.
> > Mail me at :: muralin@synergy-infotech.com
> > Phone : 044-4466448/9.
> > Visit my Home page :- www.geocities.com/nidugala
> > .................................................
>
>   ------------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

--
.................................................
Muralikrishna N.
SYNERGY INFOTECH PVT. LTD.
Mail me at :: muralin@synergy-infotech.com
Phone : 044-4466448/9.
Visit my Home page :- www.geocities.com/nidugala
.................................................



Re: Turbine - Tomcat

Posted by Skondras Panagiotis <pa...@acn.gr>.
Tomcat is an Application Server for running servlets
Turbine is not such a Server is a framework
to create nice apps which need Tomcat to run or another servlet container

Muralikrishna wrote:

> Hello All,
>
> I have one doubt, hoping to get the response from one amongst you.
> I started going through the Turbine few days back. I want to know is it
> posiible to use Turbine in the place of Tomcat? Turbine is a servlet
> based (framework) tool for Web Application, right?
> Please clarrify the same.
>
> Thanking you.
> Murali.
>
> --
> .................................................
> Muralikrishna N.
> SYNERGY INFOTECH PVT. LTD.
> Mail me at :: muralin@synergy-infotech.com
> Phone : 044-4466448/9.
> Visit my Home page :- www.geocities.com/nidugala
> .................................................