tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "FRANCK AMELIN" <franck.ame...@proval.fr>
Subject RE: How to know if platform is Windows or Linux from jsp?
Date Wed, 02 Jun 2004 10:40:24 GMT
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:farnau@intercontrol.es]
Envoyé :	mercredi 2 juin 2004 12:14
À :	tomcat-user@jakarta.apache.org
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message