struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sreekanth S. Nair" <sreekanth.n...@egovernments.org>
Subject Re: Dynamically switching Tiles master layout
Date Fri, 04 Nov 2016 08:04:16 GMT
There is a wildcard way of doing it but don't know if it helps in this case

like

*<definition name="sign/*" *template="/WEB-INF/tiles/layout.jsp"

*>       <put-attribute name="body"
value="/WEB-INF/views/sign/{1}.jsp"/>   </definition>*




-- 
Thanks & Regards

Sreekanth Nair
Java Developer
--------------------
eGovernments Foundation <http://www.egovernments.org>
 9980078913
--------------------
<http://in.linkedin.com/pub/sreekanth-s-nair/b/946/5a0/>
<https://github.com/sreekanthsnair>  <sreekanthsnair@hotmail.co.uk>
--------------------

On Fri, Nov 4, 2016 at 1:25 PM, Lukasz Lenart <lukaszlenart@apache.org>
wrote:

> Hi,
>
> Does someone has a solution how to dynamically change layout that
> given Tiles extends from?
>
> I have two main layouts:
>
> <definition name="logged-in" template="/WEB-INF/tiles/layout.jsp">
>    ...
> </definition>
>
> <definition name="not-logged-in" template="/WEB-INF/tiles/layout.jsp">
>    ...
> </definition>
>
> and have a page that should extend one of these when user is logged in
> or not. Any idea?
>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message