struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: Operating System identification
Date Sat, 08 Jul 2006 15:00:46 GMT
try:
if (System.getProperty("os.name").equals("Linux")){
....

leon


On 7/8/06, Raghuveer <raghuveerv@infotechsw.com> wrote:
> How to identify Operating System of my Application server.
>
> I have property file in my web application for Windows and Linus.
>
> I need to identify th Operating System and read specific configuration file
> in my Struts Application .?
>
> Example:
> My Web application can be run on OC4J server,JBOSS  on Windows or Linux
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Mime
View raw message