Hi David,
I got the 2.3 version, and now can get my code to compile. But I still
have the same problem with not being able to render the velocity screen
when I click on the link.
<a href="$link.setPage("profilepage.vm")">Device Profiles</a>
Correct me if I am wrong, but I should necessarily even need a java
class file associated with this template if there is no dynamic data?
Why can't I see the new screen when I click on the link then?
Thanks,
Ritu..
-----Original Message-----
From: David Demner [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 4:46 PM
To: 'Turbine Users List'
Subject: RE: Limited use of Turbine
Hi Ritu,
I think VelocityScreen is part of turbine-2.2.jar (at least it's part of
turbine-2.3.jar which comes with TDK-2.3)
You can use the newer TDK-2.3 if you want. It's 'unofficial' but lots
of
people are using it with success. You can get it at
http://www.kiasoft.com/~painter/tdk-2.3_01.tgz
David
-----Original Message-----
From: Goyal, Ritu (Ritu) [mailto:[EMAIL PROTECTED]
Sent: Thursday May 20, 2004 3:39 PM
To: Turbine Users List
Subject: RE: Limited use of Turbine
Hi David,
I have installed the TDK. I think I have version 2.2. It doesn't seem to
have the VelocityScreen class file in it. Do I need to install a
separate package to get the whole thing?
Thanks,
Ritu..
-----Original Message-----
From: David Demner [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 4:15 PM
To: 'Turbine Users List'
Subject: RE: Limited use of Turbine
Hi Rita,
It's probably because you are extending SecureScreen. Try extending
VelocityScreen (in org.apache.turbine.modules.screens) instead.
David
-----Original Message-----
From: Goyal, Ritu (Ritu) [mailto:[EMAIL PROTECTED]
Sent: Thursday May 20, 2004 3:11 PM
To: Turbine Users List; [EMAIL PROTECTED]
Subject: RE: Limited use of Turbine
I have the
action.sessionvalidator=sessionvalidator.TemplateSessionValidator in my
TR.props. I don't see the Login page when I launch my app. I see it when
I click on links created in my left panel/navigation file.
I have the following line in my code. I don't even need dynamic data
associated with this template, so I tried not creating a class file with
the same name. That returned nothing when I click on the link. <a
href="$link.setPage("profilepage.vm")">Device Profiles</a>
If I create a class file with the following code, I get to the Login
page with the username and password fields.
public class profilepage
extends SecureScreen
{
/**
* Grab a record from the database based on the entry_id
* found in the form. Make the data available in the
* template.
*/
public void doBuildTemplate( RunData data, TemplateContext context )
{
try
{
String str = "Object in java code";
context.put("entry", str);
}
catch (Exception e)
{
// log something ?
}
}
}
Thanks for your help,
Ritu..
-----Original Message-----
From: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 20, 2004 4:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Limited use of Turbine
"Goyal, Ritu (Ritu)" <[EMAIL PROTECTED]> writes:
>I need to use Turbine to generate web applications, without using a
>database and also without needing any login mechanism. What do I need
to
>remove from the sample application if I don't need the login.vm file. I
>tried changing the build.xml to not do any database stuff, and also
>created my own files in the layout ,navigations and screen directory.
My
>app still goes to the login page.
What do you have for
action.sessionvalidator
in your TR.props? Make sure that it is
action.sessionvalidator=sessionvalidator.TemplateSessionValidator
and not
action.sessionvalidator=sessionvalidator.TemplateSecureSessionValidator
The 2nd one will send you to your Login Page if you are not logged in.
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
[EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/
RedHat Certified Engineer -- Jakarta Turbine Development -- hero for
hire
Linux, Java, perl, Solaris -- Consulting, Training, Development
"Fighting for one's political stand is an honourable action, but re-
fusing to acknowledge that there might be weaknesses in one's
position - in order to identify them so that they can be remedied -
is a large enough problem with the Open Source movement that it
deserves to be on this list of the top five problems."
-- Michelle Levesque, "Fundamental Issues with
Open Source Software Development"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]