Subversion Repositories SmartDukaan

Rev

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

Rev 786 Rev 801
Line 373... Line 373...
373
		VelocityContext context = new VelocityContext();
373
		VelocityContext context = new VelocityContext();
374
		if (isLoggedIn) {
374
		if (isLoggedIn) {
375
			context.put("LOGGED_IN", "TRUE");
375
			context.put("LOGGED_IN", "TRUE");
376
			context.put("WELCOME_MESSAGE", "Hi, " + userName);
376
			context.put("WELCOME_MESSAGE", "Hi, " + userName);
377
		} else {
377
		} else {
378
			context.put("WELCOME_MESSAGE", "Hi, Welcome to Shop2020");
378
			context.put("WELCOME_MESSAGE", "Hi, Welcome to Saholic");
379
		}		
379
		}		
380
		
380
		
381
		String templateFile = "templates/header.vm";
381
		String templateFile = "templates/header.vm";
382
		
382
		
383
		return getHtmlFromVelocity(templateFile, context);
383
		return getHtmlFromVelocity(templateFile, context);