Obtener Informaci贸n del Sistema Opertivo

pablitux
25 de Enero del 2005
Holas, quien me puede dar una mano con esto ??. Estoy teniendo problemas con la implantaci贸n de la funci贸n getProperty("os.name") en un archivo JSP b谩sico.
El archivo contine:
------------------------
<%@page import="java.lang.*"%>
<html>
<body>
<%= new getProperty("os.name") %>
</body>
</html>

El mensaje de error de la compilaci贸n retorna esto:
------------------------------------------------
compile-single-jsp:
init:
deps-jar:
compile:
Compiling 1 source file to /home/postmaster/WebApplication1/build/generated/classes
/home/postmaster/WebApplication1/build/generated/src/org/apache/jsp/index_jsp.java:67: cannot resolve symbol
symbol : class getProperty
location: class org.apache.jsp.index_jsp
out.print( new getProperty("os.name") );
^
1 error
/home/postmaster/WebApplication1/nbproject/build-impl.xml:249: The following error occurred while executing this line:
/home/postmaster/WebApplication1/nbproject/build-impl.xml:241: The following error occurred while executing this line:
/home/postmaster/WebApplication1/nbproject/build-impl.xml:92: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 7 seconds)
--------------------------------------

Ken
25 de Enero del 2005
El m茅todo getProperty es un m茅todo est谩tico de System.

Deberias hacer:

<%=System.getProperty("os.name")%>

Salu2


pablitux
25 de Enero del 2005
Hola Ken, efectivamente, lo prob茅 y todo super
muchas gracias.

pablo