You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by me <ml...@e-beyond.de> on 2008/04/08 09:20:40 UTC

sitemesh + views configuration

Hi,

I'm working on configuration issues and I'm searching for the best way to
have a consitent configuration over the whole webapp (or more webapps).

The webapp has got a sitemesh-freemarker-template and the views are done 
with jsps.
What I wanted to do is to have configuratio values (such as hostnames of 
other servers)
on a single point (for example in a database). So I can access them also 
from the other servers
and have a confiuration repository which i can change on a development 
environment to use it on a productional site.

Does anybody have a "great/best way" idea?

Marc


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: sitemesh + views configuration

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
me wrote:
> Hi,
>
> I'm working on configuration issues and I'm searching for the best way to
> have a consitent configuration over the whole webapp (or more webapps).
>
> The webapp has got a sitemesh-freemarker-template and the views are 
> done with jsps.
> What I wanted to do is to have configuratio values (such as hostnames 
> of other servers)
> on a single point (for example in a database). So I can access them 
> also from the other servers
> and have a confiuration repository which i can change on a development 
> environment to use it on a productional site.
>
> Does anybody have a "great/best way" idea?

One approach is to place those resources in a directory accessed via 
JNDI.  That will allow you to share resources between your apps and 
containers.
There is overhead associated with JNDI lookups but it's supported by 
every J2EE container.  It may be over-the-top for what you want.

http://java.sun.com/products/jndi/tutorial/
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org