ayuden con este codigo

koala
30 de Mayo del 2008
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="java.text.*"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>Eje1</title>
</head>
<body><form action="Eje1.jsp" method="post">
<table cellspacing="2" cellpadding="3" border="1" width="100%">
<tr>
<td colspan="2">
<div align="center">
FORMULARIO I
</div></td>
</tr>
<tr>
<td width="46%">VALOR INICIAL</td>
<td width="54%">
<input type="text" name="T1"/>
</td>
</tr>
<tr>
<td width="46%">INCREMENTO</td>
<td width="54%">
<input type="text" name="T2"/>
</td>
</tr>
<tr>
<td width="46%">MONEDA</td>
<td width="54%">
<select size="1" name="moneda">
<option value="D">
DOLAR
</option>
<option value="E">
EUROS
</option>
</select>
</td>
</tr>
<tr>
<td width="40%" colspan="2">
<CENTER><input type="submit" name="B1" value="ACEPTAR"/></CENTER>
</td>
</tr>
</table>
</form>

<%
NumberFormat f=new DecimalFormat("#0.00");
String q1=request.getParameter("T1");
String q2=request.getParameter("T2");
String q3=request.getParameter("moneda");
String q4=request.getParameter("B1");
if (q1==null) {q1="";}
if (q2==null) {q2="";}
if (q3==null) {q3="";}
if (q4==null) {q4="";}
double m=0, n=0;
if(q4.equals("ACEPTAR")){
int a=Integer.parseInt(q1);
int b=Integer.parseInt(q2);
%>
<table border=1>
<tr><td>Valor</td><td><%=q3%></td></tr>
<%
double p=0;
for (int i=1; i<=12; i++){

if(q3.equals("DOLAR")){n=m/2.70;}
if(q3.equals("EUROS")){n=m/4.366;}
p=p+b;
m=a+p;
%>
<tr><td><%=m%></td><td><%=f.format(n)%></td></tr>

<%
}
%>
</table>
<%}%>



</body>
</html>