Skip to main content

Posts

Showing posts from January, 2012

Print Web Page with Constant Header and Footer

Design HTML Page Header and Footer for your web print out like you do with Office programs. Most people use the header for the brand information and footer for copyright or address information. When you are developing a web application then you may need to print the report based on the end user input but dynamic content will not help you to place the header and footer at exact position . Solution - Custom header and footer for html web print outs using CSS. Here i have designed a html page for your reference with inbuilt css . <?xml version='1.0' encoding='utf-8'505'?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd'> <html lang='en-GB' xml:lang='en-GB' xmlns='http://www.w3.org/1999/xhtml'>  <head> <title>Technology Innovation</title><meta http-equiv='Content-Type' cont

EJB Timer or Scheduler or Batch - Cron Quartz

Quartz Scheduler is an open source job scheduling service for your Java EE or Java SE. Every task cannot be done manually but some task like notification or important alerts have to perform based on time and date. In this article you will learn how to write EJB Timer for your Enterprise applications. CronJob.java - CronJob is used to execute the method for the given interval period package com.demo; import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; //CronJob implements the Job interface - Add Quartz jar into your project build path public class CronJob implements Job { public void execute(JobExecutionContext arg0) throws JobExecutionException {  // Your Code Here System.out.println("Technology Innovation "); } } CronEJB.java - is used to set the scheduler time, date and time based region package  com.demo; import java.util.TimeZone; import javax.annotation.PostConstruct; import jav

How To Block Windows 7 Notification

When system starts you are getting too many notification from your system tray and also its annoying  continuously. How to block all this notification from your system. Go to System Tray and click the up arrow in Windows 7 as shown in image and click the customize link Now choose from the list of application and change the behaviours of to avoid unneccessary notification. System Tray Icon On or Off On the Same Notification Area Icon Window you will see at the bottom with a link  Turn system icon on or off and change the behavior of each system icons whether to display it on task bar or not.