anchor.diff:             periodo = request.getParameter("periodo");
              }
           %>
  +         <%
  +             //declarando do valor principal, juros e periodo como double
  +          double vp = 0, j = 0, p = 0;
  +          try{
  +              vp = Integer.parseInt(request.getParameter("vp"));
  +              j = Integer.parseInt(request.getParameter("j"));
  +              p = Integer.parseInt(request.getParameter("p"));
  +          }catch(Exception ex){}
  +        %>
           <form>
               Valor Principal:<br/>
               <input type="text" name="nome" value="<%=vprinc%>"><br/>
  
positive.code:             Período:<br/>
              <input type="text" name="idade" value="<%=periodo%>"><br/><br/>
              <input type="submit" name="sendForm" value="Enviar"><br/>
          </form>  
             
      </body>
  </html>
  
negative.code:         <title>Tabela Price</title>
      </head>
      <body
         <%--<%@include file="WEB-INF/jspf/cabecalho.jspf" %>--%> 
         <%--<%@include file="WEB-INF/jspf/menu.jspf" %>--%>
         <h1><b>Tabela Price</h1></b><br/><br/>
  
  