<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Netbeans%2FC2%2FDeveloping-a-Sample-Web-Application%2FEnglish</id>
		<title>Netbeans/C2/Developing-a-Sample-Web-Application/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Netbeans%2FC2%2FDeveloping-a-Sample-Web-Application%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Netbeans/C2/Developing-a-Sample-Web-Application/English&amp;action=history"/>
		<updated>2026-04-09T00:14:23Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Netbeans/C2/Developing-a-Sample-Web-Application/English&amp;diff=211&amp;oldid=prev</id>
		<title>Chandrika: Created page with '[http://spoken-tutorial.org/wiki/images/5/5f/Developing_Web_Applications-Resources.zip Resources for &quot;Developing Web Applications on Netbeans&quot;]   {| style=&quot;border-spacing:0;&quot; | s…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Netbeans/C2/Developing-a-Sample-Web-Application/English&amp;diff=211&amp;oldid=prev"/>
				<updated>2012-11-27T12:35:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;[http://spoken-tutorial.org/wiki/images/5/5f/Developing_Web_Applications-Resources.zip Resources for &amp;quot;Developing Web Applications on Netbeans&amp;quot;]   {| style=&amp;quot;border-spacing:0;&amp;quot; | s…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[http://spoken-tutorial.org/wiki/images/5/5f/Developing_Web_Applications-Resources.zip Resources for &amp;quot;Developing Web Applications on Netbeans&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;border-top:0.002cm solid #000000;border-bottom:0.002cm solid #000000;border-left:0.002cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| &amp;lt;center&amp;gt;'''Visual Cue'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| style=&amp;quot;border:0.002cm solid #000000;padding:0.097cm;&amp;quot;| &amp;lt;center&amp;gt;'''Narration'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Show Slide number 1&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Hi everybody.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Welcome to the spoken tutorial on Introduction to Developing Web Applications on the Netbeans IDE.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 2&lt;br /&gt;
&lt;br /&gt;
Introduction&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| If this is the first time you are using the Netbeans IDE, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
please view the tutorial 'Introduction to Netbeans' at [http://www.spoken-tutorial.org/ www.spoken-tutorial.org] .&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Having viewed the first tutorial you would already be familiar &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
with the installation and interface of Netbeans.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The previous tutorial also taught you how to create a new project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 3&lt;br /&gt;
&lt;br /&gt;
System Setup&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| For this demonstration I am using the Linux Operating System Ubuntu v11.04 and Netbeans IDE v7.0.1&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 4, Slide 5&lt;br /&gt;
&lt;br /&gt;
Lesson Outline&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| This tutorial will take you through the basics of using Netbeans IDE to develop web applications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will see&lt;br /&gt;
&lt;br /&gt;
* setting up a web application project&amp;lt;br/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* creating and editing web applications source files&amp;lt;br/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
** creating a java package and a java source file&amp;lt;br/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
** generating Getter and Setter methods&amp;lt;br/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
** editing the default JavaServer Pages file&amp;lt;br/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
** creating a JavaServer pages file&amp;lt;br/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* running a web application project&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 6&lt;br /&gt;
&lt;br /&gt;
Requirements&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| To follow this tutorial, you will need &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* the Netbeans IDE &amp;lt;br/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Java Development Kit (JDK) version 6&amp;lt;br/&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* GlassFish Server Open Source Edition&amp;lt;br/&amp;gt; &lt;br /&gt;
All the above can be downloaded in a single bundle from the following link&amp;lt;br/&amp;gt; &lt;br /&gt;
[http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 7, Slide 8&lt;br /&gt;
&lt;br /&gt;
Lesson&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| It demonstrates how to create a simple web application, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
deploy it to a server, &lt;br /&gt;
&lt;br /&gt;
and view its presentation in a browser. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The application employes JavaServer Pages (JSP) page &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
to ask you to input your name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It then uses JavaBeans component to persist the name during the HTTP session,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and then retrieves the name for output on a second JSP page.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Switch to Netbeans window&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Setting Up a Web Application Project&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to the main menu and Choose '''File &amp;gt; New Project '''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Under '''Categories, '''select '''Java Web'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Under '''Projects''', select '''Web Application ''', then click '''Next.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter '''HelloWeb '''in the '''Project Name '''text box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Specify the '''Project Location '''to any directory on your computer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click '''Next'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Server and Settings '''panel opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the version of Java EE you want to use with your application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the server to which you want to deploy your application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click '''Next'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Frameworks '''panel, &lt;br /&gt;
&lt;br /&gt;
click  on '''Finish '''to create the project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The IDE creates the HelloWeb project folder.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This folder contains all of your sources and project metadata.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The HelloWeb project opens in the IDE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Welcome page, '''index.jsp '''opens in the Source Editor in the main window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can view the project's file structure in the Files window,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and it's logical structure in the Projects Window.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Creating and Editing Web Application Source Files &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Creating and editing source files is the most important function that the IDE serves.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Projects '''window, expand the '''Source Packages '''node.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the Source Packages node only contains an empty default package node.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right-click on the '''Source Packages '''node and choose '''New &amp;gt; Java Class'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter '''NameHandler '''in the '''Class Name ''' text box &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and type '''org.mypackage.hello '''in the '''Package '''combo box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click '''Finish'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''NameHandler.java '''file opens in the Source Editor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Source Editor''', declare a '''String '''variable by typing &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''String name; '''directly below the class declaration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the constructor '''public NameHandler() { } '''to the class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add '''name = null; '''in the '''NameHandler() '''constructor.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Continuing in the Netbeans window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Slide 9, Slide 10&lt;br /&gt;
&lt;br /&gt;
Refactoring&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Switch back to Netbeans Window&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Generating Getter and Setter Methods&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right-click the '''name '''field in the '''Source Editor '''and choose '''Refactor &amp;gt; Encapsulate Fields'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Refactoring '''is a disciplined technique for improving the structure of existing code without changing the observable behaviour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In short, change the structure of the code without changing the behaviour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With Refactoring, you can easily move fields, methods or classes around, without breaking things.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Encapsulate Fields dialog opens, listing the '''name '''field.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that the '''Fields' '''visibility is by default set to private,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and '''Accessors' '''visibility to public, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
indicating that the access modifier for class variables declaration wil be specified as private, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
whereas '''getter '''and '''setter '''methods will be generated with '''public '''and '''private '''modifiers respectively.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click '''Refactor'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Getter '''and '''Setter '''methods are generated for the '''name '''field'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The modifier for the class variable is set to '''private '''while '''getter '''and '''setter '''methods are generated with '''public''' modifier.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your java class should now look like this finally ('''show NameHandler.java''').&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Editing the Default JavaServer Pages File&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Refocus the '''index.jsp '''by clicking its tab displayed at the top of the '''Source Editor'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''Palette '''located to the right of the Source Editor, expand '''HTML Forms'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and drag a '''Form '''item to a point after the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt; &amp;lt;/nowiki&amp;gt;'''tags in the Source Editor'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Insert Form '''dialog box displays.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Specify the values as shown:&lt;br /&gt;
&lt;br /&gt;
* '''Action: '''response.jsp&lt;br /&gt;
* '''Method: '''GET&lt;br /&gt;
* '''Name: '''Name Input Form&lt;br /&gt;
&lt;br /&gt;
Click '''OK'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An HTML form is added to the '''index.jsp '''file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag a '''Text Input '''item to a point just before the '''&amp;lt;nowiki&amp;gt;&amp;lt;/form&amp;gt; &amp;lt;/nowiki&amp;gt;'''tag, then specify the values as shown:&lt;br /&gt;
&lt;br /&gt;
* '''Name: '''name&lt;br /&gt;
* '''Type: '''text&lt;br /&gt;
&lt;br /&gt;
Click '''OK'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An HTML '''&amp;lt;nowiki&amp;gt;&amp;lt;input&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag is added between the '''&amp;lt;nowiki&amp;gt;&amp;lt;form&amp;gt; &amp;lt;/nowiki&amp;gt;'''tag.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Delete the '''value '''attribute from this tag.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag a '''Button '''item to a point just before the '''&amp;lt;nowiki&amp;gt;&amp;lt;/form&amp;gt; &amp;lt;/nowiki&amp;gt;'''tag, then specify the values as shown:&lt;br /&gt;
&lt;br /&gt;
* '''Label: '''OK&lt;br /&gt;
* '''Type: '''submit&lt;br /&gt;
&lt;br /&gt;
Click '''OK'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;An HTML button is added between the &amp;lt;form&amp;gt; tags.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''Enter your name:''' just before the first '''&amp;lt;nowiki&amp;gt;&amp;lt;input&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag, &lt;br /&gt;
&lt;br /&gt;
then change the default''' Hello World!''' text between the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt;&amp;lt;/nowiki&amp;gt;''' tags to '''Entry Form'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right-click within the Source Editor and choose '''Format''' (Alt-Shift-F) to tidy the format of your code. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your '''index.jsp''' file should now appear like this (show file).&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Continuing in Netbeans Window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Slide 11&lt;br /&gt;
&lt;br /&gt;
Java Beans&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Switch back to Netbeans Window&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Creating a JavaServer Pages File&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the Projects window, right-click the HelloWeb project node and choose '''New &amp;gt; JSP'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''New JSP File''' wizard opens. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Name the file '''response''', and click '''Finish'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that a '''response.jsp''' file node displays in the '''Projects''' window beneath '''index.jsp''', and the new file opens in the Source Editor. &lt;br /&gt;
&lt;br /&gt;
In the '''Palette''' to the right of the Source Editor, &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
expand JSP and drag a '''Use Bean''' item to a point just below the '''&amp;lt;nowiki&amp;gt;&amp;lt;body&amp;gt;&amp;lt;/nowiki&amp;gt;''' &lt;br /&gt;
&lt;br /&gt;
tag in the Source Editor. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Insert Use Bean''' dialog opens. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Specify the values shown in the following figure.&lt;br /&gt;
&lt;br /&gt;
* '''ID: '''mybean&lt;br /&gt;
* '''Class: '''org.mypackage.hello.NameHandler&lt;br /&gt;
* '''Scope: '''session &lt;br /&gt;
&lt;br /&gt;
Click '''OK'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that the '''&amp;lt;nowiki&amp;gt;&amp;lt;jsp:useBean&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag is added beneath the '''&amp;lt;nowiki&amp;gt;&amp;lt;body&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
JavaBeans are reusable software components for Java.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They are used to encapsulate many objects into a single object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
so that they can be passed around as a single bean object &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
instead of multiple individual objects.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag a '''Set Bean Property''' item from the '''Palette''' to a point just before the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag and click OK.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''&amp;lt;nowiki&amp;gt;&amp;lt;jsp:setProperty&amp;gt;&amp;lt;/nowiki&amp;gt;''' tag that appears, delete the empty '''value''' attribute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Otherwise, it overwrites the value for name that you pass in index.jsp (show index.jsp). &lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;jsp:setProperty name=&amp;quot;mybean&amp;quot; property=&amp;quot;name&amp;quot; /&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
Insert '''Hello '''in between the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt; &amp;lt;/nowiki&amp;gt;'''tags, ie &lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt;Hello, !&amp;lt;/h1&amp;gt;&amp;lt;/nowiki&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag a '''Get Bean Property '''item from the Palette and drop it after the comma between the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt; &amp;lt;/nowiki&amp;gt;'''tags.&lt;br /&gt;
&lt;br /&gt;
Specify the following values:&lt;br /&gt;
&lt;br /&gt;
*  '''Bean Name: '''mybean&lt;br /&gt;
*  '''Property Name: '''name &lt;br /&gt;
&lt;br /&gt;
 Click '''OK'''.&lt;br /&gt;
 Notice that '''&amp;lt;nowiki&amp;gt;&amp;lt;jsp:getProperty&amp;gt; &amp;lt;/nowiki&amp;gt;'''tag is now added between the '''&amp;lt;nowiki&amp;gt;&amp;lt;h1&amp;gt; &amp;lt;/nowiki&amp;gt;'''tags.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Right-click within the Source Editor and choose '''Format '''to tidy the format of your code.&lt;br /&gt;
 The '''&amp;lt;nowiki&amp;gt;&amp;lt;body&amp;gt; &amp;lt;/nowiki&amp;gt;'''tags of the '''response.jsp''' file should now look like this (show response.jsp).&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Running a Web Application Project&lt;br /&gt;
&lt;br /&gt;
In the '''Projects '''window, right-click the '''HelloWeb '''project node and choose '''Run'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When you run a web application, the IDE:&lt;br /&gt;
&lt;br /&gt;
* builds and compiles the application code&lt;br /&gt;
* launches the server&lt;br /&gt;
* deploys the application to the server&lt;br /&gt;
* displays the application in a browser window&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Switch to browser&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| The '''index.jsp '''page opens in your default browser.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that the browser window may open before the IDE displays the server output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter you name in the text box in the browser and click '''OK'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''response.jsp '''page displays, providing you with a simple greeting.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 12&lt;br /&gt;
&lt;br /&gt;
Assignment&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| As an extension to the web application project, insert two more text fields that is  totally three input text fields&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use JavaBeans Component to set the bean property&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
View its presentation in the browser&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Retrieve the output on the second JSP page&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 13, Slide 14&lt;br /&gt;
&lt;br /&gt;
About the Spoken Tutorial Project&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| The video available at [http://spoken-tutorial.org/What_is_a_Spoken_Tutorial http://spoken-tutorial.org/What_is_a_Spoken_Tutorial] summarizes the spoken tutorial project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you do not have a good bandwidth, you can download and watch it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We conduct workshops using spoken tutorials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We also give certificates to those who pass an online test.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please contact us for more details.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 15, Slide 16&lt;br /&gt;
&lt;br /&gt;
Acknowledgement&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Spoken Tutorial project is a part of the Talk to a Teacher Project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Supported by the National Mission on Education through ICT, MHRD, Govt of India.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This project is co-ordinated by [http://spoken-tutorial.org/ http://spoken-tutorial.org].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More information on the same is available at gttp://spoken-tutorial.org/NMEICT-Intro&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 17&lt;br /&gt;
&lt;br /&gt;
Thank You&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| This is Sindhu Ghanti, from IT for Change signing off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank You.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>