Try something like this :

<%
if (System.getProperty("os.name").startsWith("Win"))
{
        // case windows
}
else
{
        // case not windows

}

%>

 -----Message d'origine-----
De :    Francisco José Arnau Vives [mailto:[EMAIL PROTECTED]
Envoyé :        mercredi 2 juin 2004 12:14
À :     [EMAIL PROTECTED]
Objet : 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to