MY mENU


Friday, 25 May 2012

Secrets Behind The Run Registry key


You can start or stop programs from executing at bootup by adding or deleting them to/from the run Keys in the Registry. Windows loads programs to start in the following order; Program listed in the Local Machine hive, then the Current User hive, then theWin.ini Run= and Load = lines and then finally programs in your Start Up folder.
To add or remove programs in the Registry.Open RegEdit. .Go to the desired Key:


HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_LOCAL_MACHINE\SOFTWARE\Micrsoft\Windows\CurrentVersion\RunServices
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices


Add a new String Value and name it anything you like. For the value data, enter the path and executable for the program you want to run. By adding the value to the KEY_CURRENT_USER hive instead allows the program to start only when that user is logged on. If you add the value to the RunOnce key the program will run once and be removed from the key by Windows.

Thursday, 24 May 2012

Kill the “Most Frequently Used”(MFU) list instead of Banning


Kill the “Most Frequently Used”(MFU) list instead of Banning
Go to HKEY_CURRENT_USER\ Software\ Microsoft \Windows \CurrentVersion \Policies\
Explorer. Create a new DWORD called NoStartMenuMFUprogramsList and give it a value
of 1. You'll have to reboot or log off and back on for the setting to take effect. You have now
managed to get kick the MFU list out of you menu.

Wednesday, 23 May 2012

JSP Standard Actions


JSP Standard Actions

JSP actions are special XML tags which control the behavior of servlet engine. JSP actions allow you to insert a file dynamically, reuse external JavaBean components, forward the request to the other page and generate HTML for JavaApplet plugin.

jsp:include action

JSP include action allows you to include a file at runtime. The syntax of jsp include action is as follows:
In the page attribute you insert a relative URL of a file which could be an HTML file or another JSP page. Unlike the include directive, the jsp include action insert a file at the time page is being requested.

jsp:useBean action

jsp useBean action lets you load a JavaBean component into the page and use it later. jsp useBean action allows you to reuse other Java classes. The syntax of jsp useBean action is as follows:
By using the jsp:useBean action, you create an new object with the object nameobjectName of the class package.class. Later on you can access the properties of this object by using either jsp:setProperty or jsp:getProperty. Let's take a look at an example. First we have a JavaBeans call Message:
public class Message {

    private String text;

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }
}
Then we create a JSP page which uses the jsp:useBean action to access JavaBean Message inside that page.

We use jsp:setProperty to set the text property of the JavaBean Message and then we call jsp:getProperty to get that message and print it out. Here is the output screenshot:

jsp:forward Action

jsp:forward action allows you to forward a request to the other page. The syntax of the jsp:forward action is listed as below. There is one attribute called page which value is a page you want to forward the request to. You can specify the page statically or dynamically by using expression.
jsp:plugin Action 
jsp:plugin action allows you to embeded Java Applet into a page. Suppose you have an applet which demonstrates the JSP page lifecycle called com.jsp.jspapplet. Here is the way we use jsp:plugin action to embeded that applet into a page: