Dúvida com lógica e servlet

.

Bem vindo!

Quando for postar seu código fonte, utilize a formatação do tópico!

questaoUm.jsp(também existem mais questões)

<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title>JSP Page</title> 
</head> 
<body> 
<h1>Questionário!!!</h1> 
<form action="media" method="POST"> 
<h3>Questao 1:</h3> 
<input type="radio" name="nota1" value="op1" id="nota1"/>oksjdf

<input type="radio" name="nota1" value="op2" id="nota1" />pgjeg

<input type="radio" name="nota1" value="op3" id="nota1"/>oiwueuri

<input type="radio" name="nota1" value="op4" id="nota1"/>utywoeiur

<input type="radio" name="nota1" value="op5" id="nota1"/>ttosiduuw

<input type="submit" value="Responder" /> 
</form> 
</body> 
</html> 

media.java(servlet)

public class media extends HttpServlet { 
int pontuacao; 

protected void processRequest(HttpServletRequest request, HttpServletResponse response) 
throws ServletException, IOException { 
response.setContentType("text/html;charset=UTF-8"); 
PrintWriter out = response.getWriter(); 

String nota1 = request.getParameter("nota1"); 
System.out.println(nota1); 
String nota2 = request.getParameter("nota2"); 
System.out.println(nota2); 
String nota3 = request.getParameter("nota3"); 
System.out.println(nota3); 
String nota4 = request.getParameter("nota4"); 
System.out.println(nota4); 
String nota5 = request.getParameter("nota5"); 
System.out.println(nota5); 

try { 
      if(nota1.equals("op1")) { 
         System.out.println(""); 
             pontuacao=pontuacao + 1; 
     }  
       else if(nota1.equals("op2")) { 

     } 
      else if(nota1.equals("op3")) { 
            System.out.println(""); 

    } 
         else if(nota1.equals("op4")) { 
            System.out.println(""); 

   }  
           else if(nota1.equals("op5")) { 
             System.out.println(""); 

} 
} finally { 
                RequestDispatcher rd = null; 
               rd = request.getRequestDispatcher("resultado.jsp?pontuacao=" + pontuacao); 
              rd.forward(request, response); 
              out.close(); 
             } 
} 

resultado.jsp

<% 
int pontuacao = Integer.parseInt(request.getParameter("pontuacao")); 
%> 

<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title>Resultado da média</title> 
</head> 
<body> 
<h1>Resultado:</h1> 
<h2>O resultado do aluno e:<%=pontuacao%></h2> 
</body> 
</html>