//进入下一步
function next(){
var url = "cart.do?method=checkOrder";
window.location = url;
}
</script>
<logic:messagesPresent property="addCartStatus">
<script language="javascript">
alert('<html:errors property="addCartStatus"/>');
</script>
</logic:messagesPresent>
<logic:messagesPresent property="delCartStatus">
<script language="javascript">
alert('<html:errors property="delCartStatus"/>');
</script>
</logic:messagesPresent>
www.youerw.com ">
alert('<html:errors property="clearCartStatus"/>');
</script>
</logic:messagesPresent>
</body>
</html>
Cart.java文件:
package com.ORM;
import java.util.*;
public class Cart implements java.io.Serializable {
private Integer id;
private Member member;
private Double money;
private Integer cartStatus;
private Set merchandises = new HashSet(); //商品集合
public Cart() {
}
public Cart(Member member) {
this.member = member;
}
public Cart(Member member, Double money, Integer cartStatus) {
this.member = member;
this.money = money;
this.cartStatus = cartStatus;
}
public void setMember(Member member) {
this.member = member;
}
public void setMerchandises(Set merchandises) {
this.merchandises = merchandises;