how to save ftl's content in database so that it can be retrieved with the coded functionality

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

how to save ftl's content in database so that it can be retrieved with the coded functionality

jaiser roney
For the reusability purpose i want to save the header.ftl in database  and
want to use it wherever it requires

Some of the file contents are as

<form name="SiteMap">
<input type="hidden" name="siteID" value="${requestParameters.siteID
?if_exists}">
</form>

${screens.render
("component://ecommerce/widget/CatalogScreens.xml#productSearchHome")}

the above contents are not working when i retrieved the respective page from
database

is there any special code is used for recovering dynamic contents after
taking the  ftl's    code from database
so that the above code should act like that it is in ftl   not as a simple
html content  ??


Please Help
Reply | Threaded
Open this post in threaded view
|

Re: how to save ftl's content in database so that it can be retrieved with the coded functionality

guo weizhan
I haven't done this before but I think it can work, if you use the ftl
handler to parse the ftl code your generated

2008/1/17, jaiser roney <[hidden email]>:

>
> For the reusability purpose i want to save the header.ftl in database  and
> want to use it wherever it requires
>
> Some of the file contents are as
>
> <form name="SiteMap">
> <input type="hidden" name="siteID" value="${requestParameters.siteID
> ?if_exists}">
> </form>
>
> ${screens.render
> ("component://ecommerce/widget/CatalogScreens.xml#productSearchHome")}
>
> the above contents are not working when i retrieved the respective page
> from
> database
>
> is there any special code is used for recovering dynamic contents after
> taking the  ftl's    code from database
> so that the above code should act like that it is in ftl   not as a simple
> html content  ??
>
>
> Please Help
>
Reply | Threaded
Open this post in threaded view
|

Re: how to save ftl's content in database so that it can be retrieved with the coded functionality

BJ Freeman
have you looked at using the requestParameters?

guo weizhan sent the following on 1/23/2008 8:19 AM:

> I haven't done this before but I think it can work, if you use the ftl
> handler to parse the ftl code your generated
>
> 2008/1/17, jaiser roney <[hidden email]>:
>> For the reusability purpose i want to save the header.ftl in database  and
>> want to use it wherever it requires
>>
>> Some of the file contents are as
>>
>> <form name="SiteMap">
>> <input type="hidden" name="siteID" value="${requestParameters.siteID
>> ?if_exists}">
>> </form>
>>
>> ${screens.render
>> ("component://ecommerce/widget/CatalogScreens.xml#productSearchHome")}
>>
>> the above contents are not working when i retrieved the respective page
>> from
>> database
>>
>> is there any special code is used for recovering dynamic contents after
>> taking the  ftl's    code from database
>> so that the above code should act like that it is in ftl   not as a simple
>> html content  ??
>>
>>
>> Please Help
>>
>