How to set attributes in ftl.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set attributes in ftl.

G.Venkata Phanindra
Hi,
     I want to set the following in my header  in ftl files.
          response.addDateHeader("Last-Modified", lastModifiedDate); i did
this in Jsp files.
how can i do this in ftls.
regards
G . Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

Re: How to set attributes in ftl.

Souvik Saha Bhowmik
Use screen to add attributes. In the action tag include the following tag if
your attribute is in session scope
<set field="<attribute_name>" from-field="<session_variable_name>"
from-scope="user"/>

You can then access the same from ftl using the attribute name in ${}


On 9/5/06, G.Venkata Phanindra <[hidden email]> wrote:

>
> Hi,
>     I want to set the following in my header  in ftl files.
>          response.addDateHeader("Last-Modified", lastModifiedDate); i did
> this in Jsp files.
> how can i do this in ftls.
> regards
> G . Venkata Phanindra
> Mob:: 9849852989
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set attributes in ftl.

G.Venkata Phanindra
hi Souvik Saha Bhowmik,
My problem is not to set an attribute in and read its value in ftl i want to
add the following as a header .
        response.addDateHeader("Last-Modified", lastModifiedDate);
 regards
Phani

On 9/6/06, Souvik Saha Bhowmik <[hidden email]> wrote:

>
> Use screen to add attributes. In the action tag include the following tag
> if
> your attribute is in session scope
> <set field="<attribute_name>" from-field="<session_variable_name>"
> from-scope="user"/>
>
> You can then access the same from ftl using the attribute name in ${}
>
>
> On 9/5/06, G.Venkata Phanindra <[hidden email]> wrote:
> >
> > Hi,
> >     I want to set the following in my header  in ftl files.
> >          response.addDateHeader("Last-Modified", lastModifiedDate); i
> did
> > this in Jsp files.
> > how can i do this in ftls.
> > regards
> > G . Venkata Phanindra
> > Mob:: 9849852989
> >
> >
>
>


--
G.Venkata Phanindra
Mob:: 9849852989