tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Petrelli" <antonio.petre...@gmail.com>
Subject Re: Tiles2+struts 2
Date Tue, 08 Jul 2008 09:40:51 GMT
2008/7/8 Dhammdip jadhav <djadhav@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

Mime
View raw message