how to get the war name wicket application is running from?

2008-04-07 Thread Vit Rozkovec

Hallo,
is there a way how could you get a name of the WAR file the application 
is running from?
I would like to do create the WAR once and then copy it multiple times 
under the different names to the container. By the name I would then 
decide what client is running the application and set the appropriate 
style of the application.
I know I can introduce the attribute in the compile time, but if 
possible, I would like to do it the way I described before.


Regards Vitek

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to get the war name wicket application is running from?

2008-04-07 Thread Jeremy Levy
If by the application and set the appropriate style of the application.
you mean the look and feel there are better ways to do this then deploying
your application multiple times.

Use locales which will let you have multiple style sheets and/or HTML /
resources which vary depending the locale value.

http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html

J



On Mon, Apr 7, 2008 at 8:18 AM, Vit Rozkovec [EMAIL PROTECTED] wrote:

 Hallo,
 is there a way how could you get a name of the WAR file the application is
 running from?
 I would like to do create the WAR once and then copy it multiple times
 under the different names to the container. By the name I would then decide
 what client is running the application and set the appropriate style of the
 application.
 I know I can introduce the attribute in the compile time, but if possible,
 I would like to do it the way I described before.

 Regards Vitek

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]