[code]<html>
<head><title>Aprendendo JSP</title></head>
<body>
<form name=“login” method=“post” action=“login.jsp”>
Valor1: <input type=“text” name=“Valor1”>
Valor2: <input type=“text” name=“Valor2”>
<input type=“submit” value=“Somar!”>
</form>
</body>
</html>[/code]
[code]<html>
<head><title>Aprendendo JSP</title></head>
<body>
<%
// usuario e senha corretos
// dados informados no formulário
String usuario = request.getParameter(“Valor1”);
String senha = request.getParameter(“Valor2”);
%>
</body>
</html>
[/code]
eu ja tentei botar uma variavel int mais fica dando erro!