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-tp29297517p29300617.html
Sent from the tiles users mailing list archive at Nabble.com.

Reply via email to