Obtener Información del Sistema Operativo
Publicado por pablitux (9 intervenciones) el 24/01/2005 17:47:48
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)
--------------------------------------
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)
--------------------------------------
Valora esta pregunta


0