Subversion Repositories SmartDukaan

Rev

Rev 805 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 805 Rev 822
Line 604... Line 604...
604
		String templateFile = "templates/shippingheader.vm";
604
		String templateFile = "templates/shippingheader.vm";
605
		htmlString = getHtmlFromVelocity(templateFile, context);
605
		htmlString = getHtmlFromVelocity(templateFile, context);
606
		return htmlString;
606
		return htmlString;
607
	}
607
	}
608
 
608
 
609
	public String getShippingAddressDetailsHtml(long userId){
609
	public String getShippingAddressDetailsHtml(long userId, String errorMsg){
610
		String htmlString = "";
610
		String htmlString = "";
611
		VelocityContext context = new VelocityContext();
611
		VelocityContext context = new VelocityContext();
612
		String templateFile = "templates/shippingaddressdetails.vm";
612
		String templateFile = "templates/shippingaddressdetails.vm";
613
		long defaultAddressId = 0;
613
		long defaultAddressId = 0;
614
		List<Address> addresses = null;
614
		List<Address> addresses = null;
Line 624... Line 624...
624
		} catch (Exception e) {
624
		} catch (Exception e) {
625
			e.printStackTrace();
625
			e.printStackTrace();
626
		}
626
		}
627
		context.put("defaultAddressId", defaultAddressId+"");
627
		context.put("defaultAddressId", defaultAddressId+"");
628
		context.put("addresses", addresses);
628
		context.put("addresses", addresses);
-
 
629
		context.put("errorMsg", errorMsg);
629
		
630
		
630
		htmlString = getHtmlFromVelocity(templateFile, context);
631
		htmlString = getHtmlFromVelocity(templateFile, context);
631
		return htmlString;
632
		return htmlString;
632
	}
633
	}
633
 
634