<% int price = resultSet.getInt("price");
int qty = resultSet.getInt("quqntity");
int value = price * qty;
%>
Result Value (price * quantity) = <% = value %>
Please let me know if you have any further queries
1
vikas balyan
On
I hope it will help...!
<%
int grandtotal=0;
while(resultSet.next()){
int price = resultSet.getInt("price");
int quantity = resultSet.getInt("quqntity");
grandtotal =grandtotal+(price * quantity);
}
Try below....
Please let me know if you have any further queries