You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by javaskull <Gr...@harcourt.com> on 2008/02/01 19:52:16 UTC
Can I use these two together?
I am using RAD 7.0 and targeting WebSphere 6.1 using JDK 5.0. I
recently moved from RAD 6.0 and WAS 5.1. I removed Struts 1.1 and
Tiles 1.1 from the project facets, and then added the JARS for Apache
Tiles 2.05 and Struts 1.38 (and DisplayTag 1.1.1).
Can I use Tiles 2.05 and Struts 1.38 together?
Also, if I can, should I change this:
<tiles:insert attribute="header">
<tiles:put name="title" beanName="title" beanScope="tile" />
<tiles:put name="formDescription" beanName="formDescription"
beanScope="tile" />
<tiles:put name="formInstructions" beanName="formInstructions"
beanScope="tile" />
</tiles:insert>
to this:
<tiles:insertAttribute name="header">
<tiles:putAttribute name="title" value="${tile.title}" />
<tiles:putAttribute name="formDescription"
value="${title.formDescription}" />
<tiles:putAttribute name="formInstructions"
value="${title.formInstructions}" />
</tiles:insertAttribute>
?
I'm confused because there's only 2 of the beanXXX thigns instead of
all 3.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Can I use these two together?
Posted by Antonio Petrelli <an...@gmail.com>.
2008/2/1, javaskull <Gr...@harcourt.com>:
> Can I use Tiles 2.05 and Struts 1.38 together?
Yes, as long as you don't use integration code, such as forward to a
Tiles definition. There is a Struts 1/Tiles 2 plugin in the SVN trunk
for the future Struts 1.4 but we really don't know when it will be
released.
>
> Also, if I can, should I change this:
>
> <tiles:insert attribute="header">
> <tiles:put name="title" beanName="title" beanScope="tile" />
> <tiles:put name="formDescription" beanName="formDescription"
> beanScope="tile" />
> <tiles:put name="formInstructions" beanName="formInstructions"
> beanScope="tile" />
> </tiles:insert>
>
> to this:
>
> <tiles:insertAttribute name="header">
> <tiles:putAttribute name="title" value="${tile.title}" />
> <tiles:putAttribute name="formDescription"
> value="${title.formDescription}" />
> <tiles:putAttribute name="formInstructions"
> value="${title.formInstructions}" />
> </tiles:insertAttribute>
>
> ?
>
> I'm confused because there's only 2 of the beanXXX thigns instead of
> all 3.
Ask these Tiles-related questions to Tiles Users mailing list:
http://tiles.apache.org/mail.html
Ciao
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org