Monday, February 18, 2008

Usin the "Palette" for design in JSP


1.Choose File > New Project (Ctrl-Shift-N) from the main menu.
Under Categories, select Web. Under Projects,
select Web Application then click Next.

2.Specify the Project Location to any directory on your computer.

3.focus the index.jsp file

4.Window>Palette(Ctrl+Shift+8)

5.drag a Form item to a point after the 'h2'tags into the Source Editor

6.see the image
Specify the following values:

* Action: targetjsp.jsp
* Method: GET
* Name: anyname

7.Drag a Text Input item to a point just before the < /form> tag

8.Use other palette items for your needs...

Sunday, February 17, 2008

How to add a code templates in "Netbeans"..

this is simply means using 'abbreviations' for
commonly code segments.

1.first try default abbrevation
in a java application 'psvm' and press 'tab' key
it will turn in to...

public static void main (String[] args) {

}

2.Go to,
Tools>Options>Editor>Code Templates

3.Select your language

4.New>(type your abbrv-eg'sop')>OK

5.Type the code

6.OK

further..

7.to set the cursor point
type code like this

System.out.println("${cursor}");

notice the pharse--${cursor}