<html>
<head><title>Aprendendo JSP</title></head>
<body>
<form name="login" method="post" action="login.jsp">
Valor1: <input type="text" name="Valor1"><br>
Valor2: <input type="text" name="Valor2"><br>
<input type="submit" value="Somar!">
</form>
</body>
</html>
<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>
eu ja tentei botar uma variavel int mais fica dando erro!