You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Dhammdip jadhav <dj...@systime.net> on 2008/07/08 09:24:09 UTC
Tiles2+struts 2
Hi,
I am using tiles 2 with struts 2.In the menu region of layout I have
menu links and I want to render body corresponding to link clicked. Now
I got that functionality but for that I had to configure different
definitions for every JSP to be displayed in layout.
I have tiles.xml as
<definition name="menu" template="/tiles/Menu.jsp">
<put-list-attribute name="menu.Attributes">
<item value="Body1" link="Body1.action" />
<item value="Login" link="Login_input.action" />
<item value="Register" link="Register_input.action" />
</put-list-attribute>
</definition>
<definition name="login.one" extends="tileHelloWorld">
<put-attribute name="body" value="/five/Login.jsp" />
</definition>
<definition name="login.success" extends="tileHelloWorld">
<put-attribute name="body" value="/five/Success.jsp" />
Here for login page and for login success I configured two
definitions.SO it will be lengthy.
Is there any alternative to this..?
--
*DHAMMDIP** **JADHAV* | <ASSOCIATE>
*S Y S T I M E* | Office: +91 (22) 2778 3100 Ext: <5222>| Fax: +91 (22)
2778 2291| Mobile: <+91 9975769353>
Email: djadhav@SYSTIME.net <ma...@SYSTIME.net>| Website:
www.SYSTIME.net <http://www.SYSTIME.net/>
*SYSTIME: Oracle JD Edwards Partner of the Year, 2006-2007 and 2007-2008
<http://www.systime.net/oracle_partner_of_the_year.asp>
*The only partner to achieve this honor for two years in a row.
___________________________________________________________________________
Please click here <http://www.systime.net/confidentiality-statement.asp>
for the Confidentiality Statement.
Re: Tiles2+struts 2
Posted by Antonio Petrelli <an...@gmail.com>.
2008/7/8 Dhammdip jadhav <dj...@systime.net>:
> You mean to say that in future release of Tiles 2.1.0 this functionality
> will be available...??
Yes
Antonio
Re: Tiles2+struts 2
Posted by Dhammdip jadhav <dj...@systime.net>.
Antonio Petrelli wrote:
> 2008/7/8 Dhammdip jadhav <dj...@systime.net>:
>
>> <definition name="login.one" extends="tileHelloWorld">
>> <put-attribute name="body" value="/five/Login.jsp" />
>> </definition>
>>
>> <definition name="login.success" extends="tileHelloWorld">
>> <put-attribute name="body" value="/five/Success.jsp" />
>>
>> Here for login page and for login success I configured two definitions.SO it
>> will be lengthy.
>> Is there any alternative to this..?
>>
>
> Yes but only in the development version of Tiles, the future 2.1.0 version.
> You can define a definition this way:
> <definition name="login.*" extends="tileHelloWorld">
> <put-attribute name="body" value="/five/{1}.jsp" />
> <definition>
>
> The development version can be checked out using the Subversion repository:
> http://svn.apache.org/repos/asf/tiles/framework/trunk/
>
> Antonio
>
>
You mean to say that in future release of Tiles 2.1.0 this
functionality will be available...??
--
*DHAMMDIP** **JADHAV* | <ASSOCIATE>
*S Y S T I M E* | Office: +91 (22) 2778 3100 Ext: <5222>| Fax: +91 (22)
2778 2291| Mobile: <+91 9975769353>
Email: djadhav@SYSTIME.net <ma...@SYSTIME.net>| Website:
www.SYSTIME.net <http://www.SYSTIME.net/>
*SYSTIME: Oracle JD Edwards Partner of the Year, 2006-2007 and 2007-2008
<http://www.systime.net/oracle_partner_of_the_year.asp>
*The only partner to achieve this honor for two years in a row.
___________________________________________________________________________
Please click here <http://www.systime.net/confidentiality-statement.asp>
for the Confidentiality Statement.
Re: Tiles2+struts 2
Posted by Antonio Petrelli <an...@gmail.com>.
2008/7/8 Dhammdip jadhav <dj...@systime.net>:
> <definition name="login.one" extends="tileHelloWorld">
> <put-attribute name="body" value="/five/Login.jsp" />
> </definition>
>
> <definition name="login.success" extends="tileHelloWorld">
> <put-attribute name="body" value="/five/Success.jsp" />
>
> Here for login page and for login success I configured two definitions.SO it
> will be lengthy.
> Is there any alternative to this..?
Yes but only in the development version of Tiles, the future 2.1.0 version.
You can define a definition this way:
<definition name="login.*" extends="tileHelloWorld">
<put-attribute name="body" value="/five/{1}.jsp" />
<definition>
The development version can be checked out using the Subversion repository:
http://svn.apache.org/repos/asf/tiles/framework/trunk/
Antonio