```java
<%@ page contentType="text/html" %>
<%@ page pageEncoding="utf-8" %>
<HTML><body bgcolor=#ccccff>
</style>
<%
String user=(String)session.getAttribute("name");
if(user==null){
response.sendRedirect("error.jsp");
}
else{
String number2=request.getParameter("number2");
if(number2==null){
int n1=0;int n2=0;
String name1="null";String name2="null";
double price1=0;double price2=0;
}
else{
int n2=Integer.parseInt(number2);
int n1=(Integer)session.getAttribute("number1");
String name1=(String)session.getAttribute("s1");
String name2=(String)session.getAttribute("s2");
double price1=(double)session.getAttribute("p1");
double price2=(double)session.getAttribute("p2");
}
}
%>
<p style="font-family:黑体;font-size:36">
欢迎来到商品结算页面!<br>
<br>顾客:<%= user %> 共购买:<br>
<br><%= name1 %>   数量:<%= n1 %>   单价:<%= price1 %>/盒
<br><%= name2 %>       数量:<%= n2 %>   单价:<%= price2 %>/罐<br>
<p style="font-family:黑体;font-size:36;color:red">
消费总额:
<%
double sum=n1*price1+n2*price2 ;
out.print(sum+"元");
%>
<p style="font-family:黑体;font-size:24;color:white">
如果您对购买的商品和我们的服务有什么意见或建议的话请点击下方进行留言。
<br>非常感谢您对我们的关心和支持,我们会一直不断地去努力,为您提供更加优质完善的服务!
<br><a href="leave.jsp">留言</a>
</body></HTML>
```