Thanks Jon,
When is the $page.setTitle("my title") is used, and when is the
data.setTitle() (Rundata Class Method) gets used?
Thank you
Wei
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 8:49 AM
To: [EMAIL PROTECTED]
Subject: RE: data.setTitle()
to set the title of the html page use $data.setTitle("my title") in your
Home.vm template file.
You use the doBuildTemplate method to place any additional objects into
the
context so that you can use them in the templates. eg, you could use
the
following code
Vector myVector = new Vector();
// you code goes here to fill the vector with objects
//place the vector in the template context
context.put("MyVector",myVector);
you could then access the vecotr and its contents in your Home.vm
template
with the following VTL code
#foreach ($item in $MyVector)
$item
#end
Hope this helps a little
Jon
> -----Original Message-----
> From: Wei Ru [mailto:[EMAIL PROTECTED]]
> Sent: 31 August 2001 14:37
> To: [EMAIL PROTECTED]
> Subject: RE: data.setTitle()
>
>
> I am resending this, can anyone kindly point me to a right direction?
>
> Thank you very much
>
> Wei
>
> -----Original Message-----
> From: Wei Ru
> Sent: Thursday, August 30, 2001 3:12 PM
> To: [EMAIL PROTECTED]
> Subject: data.setTitle()
>
>
> Hi,
>
> I am new to VelocityScreen, I am trying to use data.setTitle("My
> Title"); in the doBuildTemplate, but it did not work.
>
> I am using Turbine 2.1, I have a Home.vm in template/screens and a
> Default.vm in /template/layout, Neither of them has
>
> $page.setTitle() in it. the above code is in Home.java, witch extends
> VelocityScreen.
>
> Why doesn't it work? any idea?
>
> Thanks
>
> Wei
>
> ---------------------------------------------------------------------
> 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]
>
--------------------------------------------------
DISCLAIMER: This message contains proprietary
information some or all of which may be
confidential and/or legally privileged. It is for
the intended recipient only who may use and apply
the information only for the intended purpose.
Internet communications are not secure and
therefore the British Biotech group does not
accept legal responsibility for the contents of
this message. Any views or opinions presented are
only those of the author and not those of the
British Biotech group. If you are not the intended
recipient please delete this e-mail and notify the
author immediately by calling ++44 (0)1865 748747;
do not use, disclose, distribute, copy, print or
rely on this e-mail.
---------------------------------------------------------------------
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]