Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/09/2010, 17:55
CESAR060288
 
Fecha de Ingreso: septiembre-2010
Mensajes: 4
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: ayuda JAVA web aplicacion

Cita:
Iniciado por Xerelo Ver Mensaje
¿Y cómo lo intentaste?
EN EL NETBEANS POR DECIR EL EJERCICIO 1 INTENTE HACERLO ASÍ:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>

<%
//tarea1
int edad=0;
out.println("Cual es tu edad: <INPUT TYPE=TEXT NAME=EDAD VALUE="+edad+"><BR>");
if(edad>=18){
System.out.println("menor de edad");}
else{
System.out.println("menor de edad");}

out.println("</FORM>");

%>
</body>
</html>