You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Francisco José Arnau Vives <fa...@intercontrol.es> on 2004/06/02 12:14:17 UTC

How to know if platform is Windows or Linux from jsp?

How to know if platform is Windows or Linux from a jsp file in order to
define variables to access to the file system?
 
____________________________________________________________________________
____
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario
indicado, queda notificado de que la utilización, divulgación y/o copia
sin autorización está prohibida en virtud de la legislación vigente.
Si ha recibido este mensaje por error, le rogamos que nos lo comunique
inmediatamente por esta misma vía y proceda a su destrucción.
 
This message is intended exclusively for its addressee and may contain
information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly
prohibited by law. If this message has been received in error, please
immediately notify us via e-mail and delete it.
____________________________________________________________________________
____
 

Re: How to know if platform is Windows or Linux from jsp?

Posted by Veniamin Fichin <3c...@mail.ru>.
Francisco José Arnau Vives wrote:

> How to know if platform is Windows or Linux from a jsp file in order to
> define variables to access to the file system?

    java.lang.System#getProperty("os.name")


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


AW: How to know if platform is Windows or Linux from jsp?

Posted by Marco Pöhler <li...@poehlerpoehler.de>.
Possible System.getProperty("os.name") will do the job ?!

kr

Marco Poehler

---
http://www.poehlerpoehler.de
http://www.kontaktlinsen-preisvergleich.de

> -----Ursprüngliche Nachricht-----
> Von: Francisco José Arnau Vives [mailto:farnau@intercontrol.es]
> Gesendet: Mittwoch, 2. Juni 2004 12:14
> An: tomcat-user@jakarta.apache.org
> Betreff: How to know if platform is Windows or Linux from jsp?
>
>
> How to know if platform is Windows or Linux from a jsp file in order to
> define variables to access to the file system?
>
> __________________________________________________________________
> __________
> ____
> Este mensaje se dirige exclusivamente a su destinatario y puede contener
> información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario
> indicado, queda notificado de que la utilización, divulgación y/o copia
> sin autorización está prohibida en virtud de la legislación vigente.
> Si ha recibido este mensaje por error, le rogamos que nos lo comunique
> inmediatamente por esta misma vía y proceda a su destrucción.
>
> This message is intended exclusively for its addressee and may contain
> information that is CONFIDENTIAL and protected by professional privilege.
> If you are not the intended recipient you are hereby notified that any
> dissemination, copy or disclosure of this communication is strictly
> prohibited by law. If this message has been received in error, please
> immediately notify us via e-mail and delete it.
> __________________________________________________________________
> __________
> ____
>
>



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