You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by talkative <ta...@gmail.com> on 2007/10/18 02:49:46 UTC
Tiles 2 (v 2.0.4) with Struts 2 (v2.0.9) Integration Issues
I am trying to integrate Tiles 2 (v 2.0.4) integration with Struts 2 (v2.0.9)
and I'm getting errors, following is the snippet:
______________________________________________________________________________________
org.apache.commons.logging.impl.Jdk14Logger error Error executing tag:
Attribute 'header' not found.
org.apache.tiles.TilesException: Attribute
'header' not found.
at
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:112)
at
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
at
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
at
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
RoleSecurityT E org.apache.commons.logging.impl.Jdk14Logger error Error
executing tag: Attribute 'body' not found.
org.apache.tiles.TilesException: Attribute
'body' not found.
at
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:112)
at
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
at
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
at
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
at
com.ibm._jsp._layout._jspx_meth_tiles_insertAttribute_2(_layout.java:194)
______________________________________________________________________________________
To integrate tiles 2 with struts 2, I did following changes in my
application:
Added following files to WEB-INF/lib
*struts2-tiles-plugin-2.0.9.jar
*tiles-api-2.0.4.jar
*tiles-core-2.0.4.jar
*tiles-jsp-2.0.4.jar
Updated Struts.xml:
Updated web.xml with:
org.apache.struts2.tiles.StrutsTilesListener
org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
/WEB-INF/tiles.xml
Addded tiles.xml under WEB-INF like
<?xml version="1.0" encoding="ISO-8859-1" ?>
Added layout.jsp, like:
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
_________________________________________________________________________________________
Am I missing something ??? :confused:
Kindly guide me in right direction to fix the issues
Thanks in anticipation
--
View this message in context: http://www.nabble.com/Tiles-2-%28v-2.0.4%29-with-Struts-2-%28v2.0.9%29-Integration-Issues-tf4644265.html#a13265988
Sent from the tiles users mailing list archive at Nabble.com.
Re: Tiles 2 (v 2.0.4) with Struts 2 (v2.0.9) Integration Issues
Posted by Antonio Petrelli <an...@gmail.com>.
2007/10/18, talkative <ta...@gmail.com>:
>
>
> Thanks for replying.
>
> I'm calling my.homepage in following manner with in one of the <action>
> element of struts.xml:
>
> <result name="input" type="tiles">my.homepage</result>
So you forward to "input.action"?
In this case it is really strange. But I suspect (sorry for not being nice
:-) ) that you are forwarding to the template JSP, and not the definition
itself....
Antonio
Re: Tiles 2 (v 2.0.4) with Struts 2 (v2.0.9) Integration Issues
Posted by talkative <ta...@gmail.com>.
Thanks for replying.
I'm calling my.homepage in following manner with in one of the <action>
element of struts.xml:
<result name="input" type="tiles">my.homepage</result>
And I have all the required/dependent commons-***.jar under WEB-INF/lib
folder
I don't know, what I'm missing???
Thanks again...
Antonio Petrelli-3 wrote:
>
> 2007/10/18, talkative <ta...@gmail.com>:
>>
>>
>> I am trying to integrate Tiles 2 (v 2.0.4) integration with Struts 2 (
>> v2.0.9)
>> and I'm getting errors, following is the snippet:
>>
>> ______________________________________________________________________________________
>> org.apache.commons.logging.impl.Jdk14Logger error Error executing tag:
>> Attribute 'header' not found.
>> org.apache.tiles.TilesException:
>> Attribute
>> 'header' not found.
>
>
>
> How do you call the "my.homepage" definition? I cannot see a piece of
> stacktrace that refers to rendering the definition...
>
> Antonio
>
>
--
View this message in context: http://www.nabble.com/Tiles-2-%28v-2.0.4%29-with-Struts-2-%28v2.0.9%29-Integration-Issues-tf4644265.html#a13283678
Sent from the tiles users mailing list archive at Nabble.com.
Re: Tiles 2 (v 2.0.4) with Struts 2 (v2.0.9) Integration Issues
Posted by Antonio Petrelli <an...@gmail.com>.
2007/10/18, talkative <ta...@gmail.com>:
>
>
> I am trying to integrate Tiles 2 (v 2.0.4) integration with Struts 2 (
> v2.0.9)
> and I'm getting errors, following is the snippet:
>
> ______________________________________________________________________________________
> org.apache.commons.logging.impl.Jdk14Logger error Error executing tag:
> Attribute 'header' not found.
> org.apache.tiles.TilesException:
> Attribute
> 'header' not found.
How do you call the "my.homepage" definition? I cannot see a piece of
stacktrace that refers to rendering the definition...
Antonio
Re: Tiles 2 (v 2.0.4) with Struts 2 (v2.0.9) Integration Issues
Posted by James Hartrich <ja...@gmail.com>.
I believe (surely someone will correct me if I'm wrong:) Struts209 with
Tiles204 requires commons-beanutils-1.7.0, commons-collections-3.2,
commons-digester-1.8, commons-logging-1.1
I don't know about the <context-param> in your web.xml: I just have
<filter>, <filter mapping>, and <listener>
James
On 10/17/07, talkative <ta...@gmail.com> wrote:
>
>
> I am trying to integrate Tiles 2 (v 2.0.4) integration with Struts 2 (
> v2.0.9)
> and I'm getting errors, following is the snippet:
>
> ______________________________________________________________________________________
> org.apache.commons.logging.impl.Jdk14Logger error Error executing tag:
> Attribute 'header' not found.
> org.apache.tiles.TilesException:
> Attribute
> 'header' not found.
> at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(
> InsertAttributeTag.java:112)
> at
> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java
> :171)
> at
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(
> RoleSecurityTagSupport.java:75)
> at
> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(
> ContainerTagSupport.java:80)
>
> RoleSecurityT E org.apache.commons.logging.impl.Jdk14Logger error Error
> executing tag: Attribute 'body' not found.
> org.apache.tiles.TilesException:
> Attribute
> 'body' not found.
> at
> org.apache.tiles.jsp.taglib.InsertAttributeTag.render(
> InsertAttributeTag.java:112)
> at
> org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java
> :171)
> at
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(
> RoleSecurityTagSupport.java:75)
> at
> org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(
> ContainerTagSupport.java:80)
> at
> com.ibm._jsp._layout._jspx_meth_tiles_insertAttribute_2(_layout.java:194)
>
> ______________________________________________________________________________________
>
> To integrate tiles 2 with struts 2, I did following changes in my
> application:
>
> Added following files to WEB-INF/lib
> *struts2-tiles-plugin-2.0.9.jar
> *tiles-api-2.0.4.jar
> *tiles-core-2.0.4.jar
> *tiles-jsp-2.0.4.jar
>
> Updated Struts.xml:
>
>
> Updated web.xml with:
>
>
> org.apache.struts2.tiles.StrutsTilesListener
>
>
>
> org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
>
>
> /WEB-INF/tiles.xml
>
>
>
> Addded tiles.xml under WEB-INF like
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
>
>
>
>
>
>
>
>
>
>
>
>
> Added layout.jsp, like:
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _________________________________________________________________________________________
>
> Am I missing something ??? :confused:
>
> Kindly guide me in right direction to fix the issues
>
> Thanks in anticipation
>
>
> --
> View this message in context:
> http://www.nabble.com/Tiles-2-%28v-2.0.4%29-with-Struts-2-%28v2.0.9%29-Integration-Issues-tf4644265.html#a13265988
> Sent from the tiles users mailing list archive at Nabble.com.
>