[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: Re: tiles multi-channels
From: Zoran Avtarovski <zoran () conads ! com>
Date: 2006-02-28 23:52:26
Message-ID: C02B2D6A.2204B%zoran () conads ! com
[Download RAW message or body]
Thanks Antonio,
I'll have a look at dimensions. My needs are simple, which is why I'm
surprised that functionality doesn't exist.
I'd like to use a filter to the determine the request domain and set a
variable {domain} that tiles can use for the base template file.
For example it would be great if some way I could use the definition below.
<definition name="main.page" path="/WEB-INF/${domain}/templateGeneral.jsp">
<put name="title" value="Welcome to Healthscope Intranet" />
<put name="menu" value="/WEB-INF/core/menuUser.jsp" />
<put name="body" value="/WEB-INF/pages/pageContent.jsp" />
</definition>
As it stands it looks like I might have to put this kind of logic into
templateGeneral.jsp which then uses a dynamic include based on the ${domain}
value. Not the cleanest solution but it should work.
Zoran
>
> If you want to make a complex multichannel web-app you could try
> Dimensions (this is an advertisement :-P ):
> http://mutidimensions.sf.net/
> But I think you have a simpler problem. Maybe you can use a Struts
> Action as a template page:
>
> <definition name="xxx" path="/myAction.do">
> ...
> </definition>
>
> Then "myAction.do" forwards to the right JSP layout page depending (for
> example) on some bean in session scope.
> Ciao
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic