Hai,

I have the following table as HTML file...........





method="#default"> cellspacing="1">
















Description Item Number Price Wanted Price Quantity
Scanner 105 200.00 value="0" size="4"> name="105|Scanner|200.00" value="0" size="4">




This HTML is then linked to order_confirm.jsp which retrieves the
values "want" and "Quantity" which has the following structure:
















<%
float stotal = 0;
float gtotal = 0;
DecimalFormat df = new DecimalFormat("#.##");

for (Enumeration e = request.getParameterNames();e.hasMoreElements()
{
Object name = e.nextElement();
int wantpr = Integer.parseInt(request.getParameter("want"));
int qty = Integer.parseInt(request.getParameter((String)name ));
if(!(qty > 0)) { continue; }
StringTokenizer st = new StringTokenizer((String)name,"|");
String part_no = st.nextToken();
String desc = st.nextToken();
float price = Float.parseFloat(st.nextToken());

%>
%>" value="<%= qty %>">






<% stotal = qty*price;gtotal += stotal; %>




<%
}
%>


align="center" width="600" cellspacing="1" cellpadding="1">
Item Number Description Price Wanted Price Quantity ActualRatetotal
<%= part_no %> <%= desc %> <%= df.format(price) %> <%= wantpr %> <%= qty %> <%= df.format(stotal) %>
align="right">TOTAL align="right"> <%= df.format(gtotal)
%>




<%
if(gtotal > 0) {
%>



<% } else { %>
You haven't ordered
anything

<% } %>




But, the problem is when i give the values for the parameters
"Quantity" and "Wanted Price" , only the parameter "Quantity" is
mapped to this JSP file but not the "Wanted Price" parameter. Can any
one find the problem and give me a solution?









Waiting for your valuable reply.

Regards,
Jagdeesh