Documentos de Académico
Documentos de Profesional
Documentos de Cultura
LENGUAJE JSP
ORIENTACIONES
• CONCEPTOS DE JSP
MAYOR DE EDAD
MENOR DE
EDAD
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%
String xnom;
xnom=request.getParameter("txtnombre");
int xedad,num=0 ;
if(request.getParameter("OK") != null)
{xedad = Integer.parseInt(request.getParameter("txtedad"));
if (xedad>=0&&xedad<18)
num=2;
else if(xedad>=18&&xedad<=120)
num=3;
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-
1252"/>
<title>prueba1</title>
</head>
<body>