tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhammdip jadhav <djad...@systime.net>
Subject Tiles2+struts 2
Date Tue, 08 Jul 2008 07:24:09 GMT
  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 <mailto:djadhav@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.




Mime
View raw message