Subversion Repositories SmartDukaan

Rev

Rev 9577 | Rev 9602 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9577 Rev 9594
Line 62... Line 62...
62
    
62
    
63
    public CartController(){
63
    public CartController(){
64
        super();
64
        super();
65
    }
65
    }
66
    
66
    
67
     // GET /cart
-
 
68
    @Actions({
-
 
69
        @Action(value="cart", interceptorRefs={@InterceptorRef("myDefault")}),
-
 
70
        @Action(value="cart1", interceptorRefs={@InterceptorRef("myDefault")})
-
 
71
    })
67
 
72
    public String index()  {
68
    public String index()  {
73
        this.setVariationId(request.getRequestURI());
69
        this.setVariationId(request.getRequestURI());
74
        log.info(this.getVariationId());
70
        log.info(this.getVariationId());
75
        
71
        
76
        if(cartId != -1){
72
        if(cartId != -1){
Line 94... Line 90...
94
        return "index";
90
        return "index";
95
    }
91
    }
96
 
92
 
97
    // POST /entity
93
    // POST /entity
98
 
94
 
99
    @Action(value="addtocart",interceptorRefs={@InterceptorRef("createuser"),@InterceptorRef("myDefault")})
-
 
-
 
95
 
100
    public String create() {
96
    public String create() {
101
        log.info("CartController.create");
97
        log.info("CartController.create");
102
 
98
 
103
        printParams();
99
        printParams();
104
 
100