TO SUM UP IS IT POSSIBLE TO INTEGRATE STRUTS 2.1.8, TILES 2.2.2, AND
FREEMARKER?
BECAUSE I'M HAVING TROUBLES WITH THIS, DO YOU RECOMMEND ME TO USE JSP
INSTEAD OF FREEMARKER AS THE VIEW TECHNOLOGY?


heamaya wrote:
> 
> I'm getting an HTTP 404 NOT FOUND error
> 
> and in the Eclipse Console I get this:
> 
> 18:29:50,522 DEBUG cache:81 - Could not find template in cache, creating
> new one; id=[ftl/administrator/layout.ftl[en_US,ISO-8859-1,parsed] ]
> 
> and If I try to access again I get this in the console:
> 
> 18:29:55,961 DEBUG cache:81 -
> ftl/administrator/layout.ftl[en_US,ISO-8859-1,parsed] no source found.
> 
> It seems the templates are not loaded, how do I load them?
> 
> 
> 
> heamaya wrote:
>> 
>> Are this Servlet mappings correct?
>> 
>> <servlet-mapping>
>>    <servlet-name>freemarker</servlet-name>
>>    <url-pattern>/*</url-pattern>
>> </servlet-mapping>  
>> 
>> <servlet-mapping>
>>    <servlet-name>roTilesInitializerServlet</servlet-name>
>>    <url-pattern>/*</url-pattern>
>> </servlet-mapping>
>> 
>> 
>> heamaya wrote:
>>> 
>>> Thank you, the exception has disappeared! Problem solved. Now I get a
>>> message:
>>> HTTP Status 405 - HTTP method GET is not supported by this URL... But it
>>> seems this is a struts 2 problem and not a tiles 2 problem, is this
>>> correct?
>>> 
>>> I would like to evacuate some doubts:
>>> 
>>> When I write a definition in the xml file can it be a freemarker
>>> template?
>>> 
>>>     <definition name="administratorBase"
>>> template="/ftl/administrator/layout.ftl" >
>>>             <put-attribute name="header" value="/ftl/header.ftl" 
>>> type="freemarker"
>>> />
>>>             <put-attribute name="menu" value="/ftl/administrator/menu.ftl"
>>> type="freemarker" />
>>>             <put-attribute name="footer" value="/ftl/footer.ftl" 
>>> type="freemarker"
>>> />
>>>     </definition>
>>> 
>>> In the freemarker template /ftl/administrator/layout.ftl defined in the
>>> definition above is this line necessary?
>>> 
>>>  <#assign tiles=JspTaglibs["http://tiles.apache.org/tags-tiles";]>
>>> 
>>> 
>>> 
>>> Antonio Petrelli-3 wrote:
>>>> 
>>>> 2010/7/28 Hernán <[email protected]>:
>>>>>   �...@override
>>>>>    protected void registerAttributeRenderers(
>>>>>            BasicRendererFactory rendererFactory,
>>>>>            TilesApplicationContext applicationContext,
>>>>>            TilesRequestContextFactory contextFactory,
>>>>>            TilesContainer container,
>>>>>            AttributeEvaluatorFactory attributeEvaluatorFactory)
>>>>>    {
>>>>>        FreeMarkerAttributeRenderer freemarkerRenderer = new
>>>>> FreeMarkerAttributeRenderer();
>>>>>...
>>>> 
>>>> You miss the call to super.registerAttributeRenderers.
>>>> 
>>>> Antonio
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Struts-2-Tiles-2-Freemarker-Integration-tp29297517p29301267.html
Sent from the tiles users mailing list archive at Nabble.com.

Reply via email to