Subversion Repositories SmartDukaan

Rev

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

Rev 3224 Rev 4325
Line 21... Line 21...
21
    @InterceptorRef("login")
21
    @InterceptorRef("login")
22
})
22
})
23
 
23
 
24
@Results({
24
@Results({
25
    @Result(name="redirect", type="redirectAction", 
25
    @Result(name="redirect", type="redirectAction", 
26
    		params = {"actionName" , "address"})
26
    		params = {"actionName" , "${url}"})
27
})
27
})
28
public class AddressController extends BaseController{
28
public class AddressController extends BaseController{
29
	
29
	
30
	private static final long serialVersionUID = 1L;
30
	private static final long serialVersionUID = 1L;
31
	private static Logger log = Logger.getLogger(Class.class);
31
	private static Logger log = Logger.getLogger(Class.class);
Line 42... Line 42...
42
	private String country;
42
	private String country;
43
	
43
	
44
	private String action;
44
	private String action;
45
	private String isDefault;
45
	private String isDefault;
46
	
46
	
-
 
47
	private String url = "address";
-
 
48
 
47
	public AddressController(){
49
	public AddressController(){
48
		super();
50
		super();
49
	}
51
	}
50
	
52
	
51
	 // GET /address
53
	 // GET /address
Line 62... Line 64...
62
		htmlSnippets.put("SHIPPING_ADDRESS_DETAILS",pageLoader.getShippingAddressDetailsHtml(userinfo.getUserId(), this.errorMsg));
64
		htmlSnippets.put("SHIPPING_ADDRESS_DETAILS",pageLoader.getShippingAddressDetailsHtml(userinfo.getUserId(), this.errorMsg));
63
		return "index";
65
		return "index";
64
	 }
66
	 }
65
 
67
 
66
	// POST /address
68
	// POST /address
67
	public String create(){
69
	public String create() {
68
 
70
 
69
		if(userinfo.isLoggedIn()){
71
		if(userinfo.isLoggedIn()){
70
			UserClient userContextServiceClient;
72
			UserClient userContextServiceClient;
71
			try {
73
			try {
72
				userContextServiceClient = new UserClient();
74
				userContextServiceClient = new UserClient();
Line 239... Line 241...
239
	}
241
	}
240
 
242
 
241
	public void setDefault(String isDefault) {
243
	public void setDefault(String isDefault) {
242
		this.isDefault = isDefault;
244
		this.isDefault = isDefault;
243
	}
245
	}
-
 
246
 
-
 
247
    public String getUrl() {
-
 
248
        return url;
-
 
249
    }
-
 
250
 
-
 
251
    public void setUrl(String url) {
-
 
252
        this.url = url;
-
 
253
    }
244
}
254
}