[b]Olá a todos… Onde estou errando aki!!
Eu tenho essa pagina aki:[/b]
Calculo do Peso Ideal:::: Autor:DiegoCálculo do Peso Ideal
Digite a sua altura:
kg
Sexo:
Masculino
Feminino
E tenho esse SERVLET
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
double result = 0;
Double altura = Double.parseDouble(request.getParameter("altura"));
String sexo = request.getParameter("Masculino");
String sexo1 = request.getParameter("Feminino");
{
result = (72.7*altura)-58;
}
{
result = (62.1*altura)-44.7;
}
String html = "<html><head>"+
"<title>Cálculo do Peso Ideal</title></head>" +
"<body>" +
"<h2>" +
"<h1><font face=Arial color=Blue>Calculo do Peso Ideal</font><br><br>" +
"<font color=blue>Seu Peso Ideal é: </font></h2>"+result+" Kg"+
"</body></html>";
response.setContentType("text/html");
PrintWriter writer = response.getWriter();
writer.print(html);
writer.close();
}
[b]O que quero saber qual é o procedimento que tenho que fazer…
Obrigado desde já!
Abs!![/b]