Subversion Repositories SmartDukaan

Rev

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

Rev 2367 Rev 2375
Line 21... Line 21...
21
import org.apache.velocity.Template;
21
import org.apache.velocity.Template;
22
import org.apache.velocity.VelocityContext;
22
import org.apache.velocity.VelocityContext;
23
import org.apache.velocity.app.Velocity;
23
import org.apache.velocity.app.Velocity;
24
import org.apache.velocity.exception.ParseErrorException;
24
import org.apache.velocity.exception.ParseErrorException;
25
import org.apache.velocity.exception.ResourceNotFoundException;
25
import org.apache.velocity.exception.ResourceNotFoundException;
26
import org.apache.velocity.tools.generic.NumberTool;
-
 
27
 
26
 
28
 
27
 
29
/**
28
/**
30
 * utility class to generated all html stuff from java objects
29
 * utility class to generated all html stuff from java objects
31
 * Driver class to merge Java data objects with VTL script. 
30
 * Driver class to merge Java data objects with VTL script. 
Line 84... Line 83...
84
		VelocityContext context = new VelocityContext();
83
		VelocityContext context = new VelocityContext();
85
		context.put("itemDetails", itemDetails);
84
		context.put("itemDetails", itemDetails);
86
		context.put("minPriceItem", minPriceItem);
85
		context.put("minPriceItem", minPriceItem);
87
		context.put("domain", domain);
86
		context.put("domain", domain);
88
		context.put("staticurl", staticurl);
87
		context.put("staticurl", staticurl);
89
		context.put("number", new NumberTool());
-
 
90
	
88
	
91
		List<String> filenames = new ArrayList<String>();
89
		List<String> filenames = new ArrayList<String>();
92
		filenames.add("ProductDetail");
90
		filenames.add("ProductDetail");
93
		filenames.add("WidgetSnippet");
91
		filenames.add("WidgetSnippet");
94
		filenames.add("HomeSnippet");
92
		filenames.add("HomeSnippet");
Line 169... Line 167...
169
		VelocityContext context = new VelocityContext();
167
		VelocityContext context = new VelocityContext();
170
		context.put("itemDetails", itemDetails);
168
		context.put("itemDetails", itemDetails);
171
		context.put("minPriceItem", minPriceItem);
169
		context.put("minPriceItem", minPriceItem);
172
		context.put("domain", "saholic.com");
170
		context.put("domain", "saholic.com");
173
		context.put("staticurl", staticurl);
171
		context.put("staticurl", staticurl);
174
		context.put("number", new NumberTool());
-
 
175
	
-
 
176
		
172
		
177
		List<String> filenames = new ArrayList<String>();
173
		List<String> filenames = new ArrayList<String>();
178
		filenames.add("ProductDetail");
174
		filenames.add("ProductDetail");
179
		filenames.add("WidgetSnippet");
175
		filenames.add("WidgetSnippet");
180
		filenames.add("HomeSnippet");
176
		filenames.add("HomeSnippet");