WT Lab Manual
WT Lab Manual
Course Objectives:
To design and develop web applications using front end technologies and backend databases
Course Outcomes:
On completion of the course, learners will be able to
CO1: Understand the importance of website planning and website design issues
CO2: Apply the client side and server side technologies for web application development
CO3: Analyze the web technology languages, frameworks and services
CO4: Create three tier web based applications
K J’s Educational Institute
K J College of Engineering & Management Research
(Accredited by NAAC)
Sr. No. 25 & 27, Kondhwa - Saswad Road, Near Bopdev Ghat, Pune 411048.
Department of Computer Engineering
List of Experiments
Contents
Experiment No. 1.......................................................................................................................................................... 6
Experiment No. 2.......................................................................................................................................................... 8
Experiment No. 3........................................................................................................................................................ 12
Experiment No. 4........................................................................................................................................................ 17
Experiment No. 5........................................................................................................................................................ 21
Experiment No. – 6..................................................................................................................................................... 25
Experiment No. – 7..................................................................................................................................................... 30
Experiment No: 8........................................................................................................................................................ 34
Experiment No. - 9...................................................................................................................................................... 37
Experiment No.: 10..................................................................................................................................................... 43
Exp. Page
Name
No. No.
1 Case study: 5
Before coding of the website, planning is important, students should visit different
websites (Min. 5) for the different client projects and note down the evaluation
results for these websites,either good website or bad website in following format:
From the evaluation, students should learn and conclude different website design
issues, which should be considered while developing a website.
Create HTML document that has two frames. Left frame displays the
contents.html and the right frame displays the descriptin.html. where second
frame is the target of link from the first frame. (only printouts)
2 Implement a web page index.htm for any client website (e.g., a restaurant 7
website project)using following:
a. HTML syntax: heading tags, basic tags and attributes, frames, tables,
images, lists, linksfor text and images, forms etc.
b. Use of Internal CSS, Inline CSS, External CSS
3 Design the XML document to store the information of the employees of any 11
businessorganization and demonstrate the use of:
a) DTD
b) XML Schema
And display the content in (e.g., tabular format) by using CSS/XSL.
4 Implement an application in Java Script using following: 16
a) Design UI of application using HTML, CSS etc.
b) Include Java script validation
c) Use of prompt and alert window using Java Script
e.g., Design and implement a simple calculator using Java Script for operations
like addition,multiplication, subtraction, division, square of number etc.
a) Design calculator interface like text field for input and output, buttons
for numbers andoperators etc.
b) Validate input values ,Prompt/alerts for invalid values etc.
5 Implement the sample program demonstrating the use of Servlet. 20
e.g., Create a database table ebookshop (book_id, book_title, book_author,
book_price, quantity) using database like Oracle/MySQL etc. and display (use
SQL select query) the table content using servlet.
6 Implement the program demonstrating the use of JSP. 24
e.g., Design registration (first name, last name, username, password) and login
page using Angular JS.
10 Design and implement a business interface with necessary business logic for any 43
web application using EJB.
e.g., Design and implement the web application logic for deposit and withdraw
amount transactions using EJB.
11 Mini Project: Design and implement a dynamic web application for any business
functionality by using web development technologies that you have learnt in the
above given assignments.
Experiment No. 1
TITLE: Case Study
OBJECTIVES:
PROBLEM STATEMENT
Case Study: Before coding of the website, planning is important, students should visit different
websites (Min. 5) for the different client projects and note down the evaluation results for these
websites, either good website or bad website in following format:
From the evaluation, students should learn and conclude different website design issues, which should be
considered while developing a website
OUTCOME
THEORY-CONCEPT
1. Site Purpose
2. Target Audience
3. Responsive/ Mobile Friendly
4. Fresh Content or Outdated Content
5. Using understandable language on the web pages
6. Visual Design/ Quality of Images
7. Look and feel (Using a uniform look and feel)
8. Engaging Content (Making the site interesting)
9. Navigation (Making the site easy to use)
10. Slow upload speed
11. Contents Representation (Font Size/Style)
DESIGN / EXECUTION STEPS
Before coding of the website, planning is important, visit different websites (Min. 5) for the different client
projects and note down the evaluation results for these websites, either good website or bad website in
following format by considering above parameters.
From the evaluation, conclude different website design issues, which should be considered while
developing a website
CONCLUSION/ANALYSIS
Hence, Students has learned what are different design issues and how to design good website.
ORAL QUESTIONS
OBJECTIVES
PROBLEM STATEMENT
Implement a web page index.htm for any client website (e.g., a restaurant website
project) using following: a. HTML syntax: heading tags, basic tags and attributes,
frames, tables, images, lists, links for text and images, forms etc. b. Use of Internal CSS,
Inline CSS, External CSS
OUTCOME
Software Requirements:
1. Operating System: Windows 7/8/10/Ubuntu
2. Browser: Firefox/Google Chrome/ Microsoft Edge etc.
3. Software: Sublime Text Editor/Notepad/ Notepad ++
Hardware Requirements:
1. Processor: Minimum 1 GHz.
2. Ethernet connection (LAN) OR a wireless adapter (Wi-Fi)
3. Hard Drive: Minimum 32 GB.
4. Memory (RAM): Minimum 1 GB
5. Sound card-speakers/camera/microphone (Depending upon website selection)
THEORY-CONCEPT
HTML: HTML is the standard markup language for creating Web pages.
HTML stands for Hyper Text Markup Language
HTML describes the structure of Web pages using markup
HTML elements are the building blocks of HTML pages
HTML elements are represented by tags
HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
Browsers do not display the HTML tags, but use them to render the content of the page
HTML Versions:
Table.1: HTML Versions
HTML 1991
XHTML 2000
HTML 5 2014
CSS:
CSS stands for Cascading Style Sheet. It is nothing, but design language intended to
simplify the process of making web pages presentable.CSS handles the feel and look
part of a web page. By using CSS, one can control the color of text, style of fonts,
spacing between paragraphs, layout designs.
Advantages of CSS:
It saves the time, Pages load faster, Easy maintenance, Superior styles to HTML,
Multiple Device Compatibility, Global web standards, Offline Browsing, Platform
Independence.
CSS3 Modules:
CSS3 Modules are having old CSS specifications as well as extension features.
Box Model
Selectors
Background
Border
Image Values and Replaced Content
Text Effects
Animations
2D/3D Transformations
Multiple Column Layout
User Interface
TECHNOLOGY / TOOL
Inline - by using the style attribute in HTML elements. An inline CSS is used
to apply a unique style to a single HTML element.
<style>
h1 {color: blue;}
p {color: red;}
</style>
Use the HTML <head> element to store <style> and <link> elements
Use the CSS color property for text colors
Use the CSS font-family property for text fonts
Use the CSS font-size property for text sizes
Use the CSS border property for borders
Use the CSS padding property for space inside the border
Use the CSS margin property for space outside the border
1. Write the HTML code in notepad and save with .html extension.
2. Write the CSS code in notepad and save with .css extension.
3. Import CSS file in HTML page.
4. Open HTML page in the browser.
CONCLUSION/ANALYSIS
Hence, we have designed static web pages using HTML and CSS.
ORAL QUESTIONS
OBJECTIVES
PROBLEM STATEMENT
Design the XML document to store the information of the employees of any business organization
and demonstrate the use of:
a) DTD
b) XML Schema
OUTCOMES
Software Requirements:
1. Operating System: Windows 7/8/10/Ubuntu
2. Browser: Firefox/Google Chrome/ Microsoft Edge etc.
3. Software: Sublime Text editor/ Notepad/ Notepad++, Eclipse (for DTD)
Hardware Requirements:
THEORY-CONCEPT
XML stands for Extensible Markup Language. It is nothing but the text-based markup
language which is derived from Standard Generalized Markup Language (SGML). XML tags
identify the data and are used to store and organize the data, rather than specifying how to
display it like HTML tags, which are used to display the data. XML is not going to replace
HTML in the near future, but it introduces new possibilities by adopting many successful
features of HTML.
There are three important characteristics of XML that make it useful in a variety of systems and
Solutions:
1. XML is extensible − XML allows you to create your own self-descriptive tags, or language, that suits your
application.
2. XML carries the data, does not present it − XML allows you to store the data irrespective of how it will
be presented.
3. XML is a public standard − XML was developed by an organization called the World Wide
Web Consortium (W3C) and is available as an open standard.
TECHNOLOGY/TOOL
The XML document have an XML declaration, but it is optional, and it is written as−
<element>………</element>
XML Attributes:
Using a name/value pair, an attribute specifies a single property for an element. An XML-
element can have one or more attributes. For example −
DTD
A DTD is a Document Type Definition. A DTD defines the structure and the legal elements and
attributes of an XML document. With a DTD, independent groups of people can agree on a
standard DTD for interchanging data. An application can use a DTD to verify that XML data is
valid.
If the DTD is declared inside the XML file, it must be wrapped inside the <!DOCTYPE>
definition:
XML document with an internal DTD
<?xml version="1.0"?>
<!DOCTYPE note [
<!ELEMENT to (#PCDATA)>
]>
<note>
<to>Neha</to>
<from>Amit</from>
<heading>Reminder</heading>
</note>
!DOCTYPE note defines that the root element of this document is note
!ELEMENT note defines that the note element must contain four elements: "to,from, heading"
If the DTD is declared in an external file, the <!DOCTYPE> definition must contain a reference
<?xml version="1.0"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
</note>
XSLT
Note: <xsl:stylesheet> and <xsl:transform> are completely synonymous and either can be used!
The correct way to declare an XSL style sheet according to the W3C XSLT Recommendation is:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
If you have an XSLT compliant browser it will nicely transform your XML into XHTML.
DESIGN/EXECUTION STEPS
1. Write the XML code in notepad and save with .xml extension.
2. Write the DTD in notepad and save with .dtd extension (For external DTD)
3. Write a XSLT code in notepad and save using .xsl extension.
4. Open XML page in the browser for running simple XML or XML using XSLT.
5. To run internal/external dtd open Eclipse and run the code using validate.
TEST CASES
Eclipse validates function used to check whether DTD gets applied or not.
CONCLUSION/ANALYSIS
Hence, we have designed static web pages using XML, XSLT/CSS and DTD
ORAL QUESTIONS
OBJECTIVES
PROBLEM STATEMENT
e.g., Design and implement a simple calculator using Javascript for operations like
addition, Multiplication, subtraction, division, square of number etc.
a) Design calculator interface like text field for input and output, buttons for numbers
and Operators etc.
OUTCOMES
Software Requirements:
THEORY-CONCEPT
Advantages:
Validation:
When a client enters all the necessary data and presses the submit button, form
validation is done at server side If data entered by a client is incorrect or missing, the
server needs to send all data back to the client and request for resubmission of form
with correct information. This is really a lengthy process which puts a lot of
load(burden) on the server.
So, JavaScript provides a way to validate form's data on the client's side itself before
sending it to the web server. Form validation performs two functions-
Data Format Validation − Secondly, the data that is entered must be checked for correct
Format and its value. The code must include appropriate logic to test correctness of
data.
TECHNOLOGY/TOOL
JavaScript can be implemented using JavaScript statements that are placed within
the <script>.
You can place the <script> tags, containing your JavaScript, anywhere within your
web page, but it is normally recommended that you should keep it within the
<head> tags.
The script tag takes two important attributes:
Language − This attribute specifies what scripting language you are using.
Typically, its value will be JavaScript. Although recent versions of HTML (and
XHTML, its successor) have phased out the use of this attribute.
Type − This attribute is what is now recommended to indicate the scripting language
in use and its value should be set to "text/JavaScript".
DESIGN/EXECUTION STEPS
5. Design calculator interface like text field for input and output, buttons for numbers
and
Operators etc.
TEST CASES
ORAL QUESTIONS
TITLE: Servlet
OBJECTIVE:
1. Understand about basic concepts of html, CSS
2. Understand the basic functionalities of Servlets
PROBLEM STATEMENT:
Implement the sample program demonstrating the use of Servlet. e.g., Create a database table
ebookshop (book_id, book_title, book_author, book_price, quantity) using databases like
Oracle/MySQL etc. and display (use SQL select query) the table content using servlet.
OUTCOME:
Students will be able to,
1. Develop a dynamic webpage using HTML and Servlet.
2. Write a server side java application called Servlet to catch the data sent from the client,
process it and show the output.
Software Requirements:
1. Operating System: Windows 7/8/10/Ubuntu
2. Browser: Firefox/Google Chrome/ Microsoft Edge etc.
3. Software/Editor : Eclipse
4. Any Operating System
5. JDK 7or later
6. Tomcat 7 or later
Hardware Requirements:
1. Processor: Minimum 1 GHz.
2. Ethernet connection (LAN) OR a wireless adapter (Wi-Fi)
3. Hard Drive: Minimum 32 GB.
4. Memory (RAM): Minimum 1 GB
THEORY-CONCEPTS :
Servlet:
A Servlet is a server side program written in Java. Servlet is a web component that is deployed
on the server for creating dynamic web pages. A Java servlet is a Java program that extends the
capabilities of a server. Although servlets can respond to any types of requests, they most
commonly execute applications hosted on Web servers.
Java Servlets are Java classes run by a web server that has an interpreter that supports the Java
Servlet specification.
Servlets can be created using the packages
• javax.servlet
• javax.servlet.http
• click on servers tab at the bottom side of the IDE -> right click on blank area -> New ->
Servers -> choose tomcat then its version -> next -> click on Browse button -> select the
apache tomcat root folder previous to bin -> next -> addAll -> Finish.
• create a servlet
• add servlet-api.jar file
Methods
• doGet-
A GET request results from a normal request for a URL or from an HTML form that has no
METHOD specified and it should be handled by the doGet() method.
• doPost-
A POST request results from an HTML form that specifically lists POST as the METHOD and
it should be handled by doPost() method
TEST CASES
.All records from the MySQL database should be displayed on the browser using JSP and
HTML.
CONCLUSION / ANALYSIS
Hence, we have performed the dynamic web application using Servlet and MySQL.
ORAL QUESTIONS
1. What is Servlet?
2. What is the life-cycle of a servlet?
3. What is the difference between the Get and Post method?
TITLE:
OBJECTIVES
PROBLEM STATEMENT
Implement the program demonstrating the use of JSP. e.g., Create a database table
students_info (stud_id, stud_name, class, division, city) using database like Oracle/MySQL
etc. and display (use SQL select query) the table content using JSP
OUTCOMES
Software Requirements:
THEORY-CONCEPT
Java Server Pages (JSP): It is a server side programming technology that is used to
create dynamic web-based applications. JSP have right to use the complete Java APIs,
including the JDBC API to access the databases.
It is a technology that helps software developers to create dynamic web pages based on
HTML, XML and other document types. It was released in 1999 by Sun Microsystems. It is
just like a PHP and ASP, but it uses the Java programming language.
A JSP element is a type of java servlet that is designed to accomplish the role of a user
interface for a java web application. Web developers write JSPs as text files that combine
HTML or XHTML code, XML elements, and rooted JSP actions and commands.
Using JSP, you can collect input from users through webpage forms, current records from
a database or another source and create web pages dynamically.
JSP tags can be used for different purposes, such as retrieving information from a database
or registering user preferences, accessing JavaBeans components, passing control between
pages, and sharing information between requests, pages etc.
1) Extension to Servlet
2) Easy to maintain
Syntax of JSP:
//Hello.jsp
<html>
<body>
</html>
Output:
Welcome to JSP Class
Elements of JSP
JDBC
Java JDBC is a java API to connect and execute query with the database. JDBC API
uses jdbc drivers to connect with the database.
JDBC Driver is a software component that enables java application to interact with the
database.
TECHNOLOGY/TOOL
1. JSP
2. IDE: Eclipse
3. Databases: MySQL
MySQL: MySQL is a freely available open source Relational Database Management
System (RDBMS). It uses the Structured Query Language (SQL). SQL is the most popular
language for adding, accessing and managing data in a database. It is most noted for its
quick processing, proven reliability, ease and flexibility of use.
DESIGN/EXECUTION STEPS
Important Note:
Copy MySQL Connector (Jar file) into Tomcat’s Bin and Lib folder
• Before running program right click on project name -> Build path -> Configure
build path -> Libraries -> Add External Jar file -> Mysql .jar file -> ok
TEST CASES
All records from the MySQL database should be displayed on the browser using JSP
and HTML.
CONCLUSION/ANALYSIS
Hence, we have performed the dynamic web application using JSP and MySQL.
ORAL QUESTIONS
1. What is JSP?
2. What are the life-cycle methods for a JSP?
3. What are elements of JSP?
4. Difference between Servlet and JSP?
5. What is JDBC?
Experiment No. – 7
TITLE
Add dynamic web application essence using PHP, HTML and MySQL.
OBJECTIVES
PROBLEM STATEMENT
b. Create the add, update, delete and retrieve functions in the PHP web app interacting
with MySQL database.
OUTCOMES
Develop web based applications using suitable client side and server side web
technologies.
Develop solutions to Database Related operations.
Software Requirements:
THEORY-CONCEPT
1. PHP:
The PHP Hypertext Preprocessor (PHP) began as a little open source venture that
advanced as an ever increasing number of individuals discovered how valuable it
was. Rasmus Lerdorf released the principal form of PHP route in 1994. PHP is a
recursive acronym for "PHP: Hypertext Preprocessor".
PHP bolsters a substantial number of real conventions, for example, POP3, IMAP,
and LDAP. PHP4 included help for Java and conveyed question designs (COM and
CORBA), making n- level improvement a plausibility out of the blue. PHP is
excusing: PHP dialect tries to be as pardoning as would be prudent. PHP Syntax is
C-Like.
You include, erase, and adjust components inside your database through PHP.
Access treats factors and set treats. Utilizing PHP, you can confine clients to get to
a few pages of your site. It can encode information.
Example:
"Hello World" Script in PHP
To get a feel for PHP, first start with simple PHP scripts. Since "Hello, World!" is an
essential example, first we will create a friendly little "Hello, World!" script. As
mentioned earlier, PHP is embedded in HTML. That means that in amongst your
normal HTML (or XHTML if you're cutting-edge) you'll have PHP statements like
this –
<html>
<body>
<?php
echo (“Hello Php”) ;
?>
</body></html>
To create and run PHP Web pages three fundamental parts should be introduced on
your PC framework.
Web Server – PHP is server side scripting language so it requires Web server to
execute(eg. Apache Tomcat)
Database − PHP will work with for all intents and purposes all database programming,
including Oracle and Sybase yet most regularly utilized is uninhibitedly accessible MySQL
database.
PHP Parser − keeping in mind the end goal to process PHP content directions a parser must
be introduced to create HTML yield that can be sent to the Web Browser. This instructional
exercise will manage you how to introduce PHP parser on your PC.
2. MySQL:
MySQL is the most famous Open Source Relational SQL Database Management
System. MySQL is outstanding amongst other RDBMS being utilized for creating
different online programming applications. MySQL is created, advertised and upheld
by MySQL AB, which is a Swedish organization. This instructional exercise will give
you a fast begin to MySQL and make you OK with MySQL programming.
TECHNOLOGY/TOOL
DESIGN/EXECUTION STEPS
Steps to install XAMPP and configure the PHP, MYSQL server.
1. Download the XAMPP using following link (download latest version as per your
Operating system Windows/ Linux). https://www.apachefriends.org/download.html
2. Install XAMPP by running .exe file
3. Go to start->Xampp-> Xampp control panel. Start Apache and Mysql.
4. Goto Web browser(eg. Firefox) and write localhost and see Xampp has been started or not..
5. By Clicking on PhpMyAdmin you can create database, table and insert values in MySQL.
6. Open a note pad write a PHP code and save this file in Xampp->htdoc->create a folder
here(eg.PHP1 ) and save file in this folder with name index.php
7. To run the code goto Firefox or any web browser and type in address bar - localhost/PHP1
your code will get run.
8. If file name is other that index.php then to run type in address bar –
localhost/PHP1/hello.php (file name)
TEST CASES
All records from MySQL database should be displayed on browser using PHP and
MYSQL.
CONCLUSION/ANALYSIS
In this assignment, we have studied how to design and develop small web application
using PHP script, XAMPP server with apache server and MySQL as backend.
ORAL QUESTIONS
TITLE
Title: Struts
OBJECTIVES
PROBLEM STATEMENT
Design a login page with entries for name, mobile number, email id and login button.
1. Create a login page with fields as name, mobile number and email id.
2. Validation of entered data and if wrong data entered proper error messages will be
displayed using struts.
Software Requirements:
Struts is an open source framework that extends the Java Servlet API and employs a Model,
View, Controller (MVC) architecture. It enables you to create maintainable, extensible, and
flexible web applications based on standard technologies, such as JSP pages,
JavaBeans, resource bundles, and XML. When you use Struts, the framework provides you
with a controller servlet, ActionServlet, which is defined in the Struts libraries that are
included in the IDE, and which is automatically registered in the web.xml deployment
descriptor as shown below. The controller servlet uses a struts-config.xml file to map
incoming requests to Struts Action objects, and instantiate any ActionForm objects
associated with the action to temporarily store form data. The Action object processes
requests using it’s execute method, while making use of any data stored in the form bean.
Once the Action object processes a request, it stores any new data (i.e., in the form bean, or
in a separate result bean), and forwards the results to the appropriate view.
TECHNOLOGY / TOOL
Files Required
Following files are required for this application.
● login.jsp
● success.jsp
● LoginForm.java
● LoginAction.java
● struts-config.xml
● web.xml
Tools used:
CONCLUSION/ANALYSIS
Hence, we have designed login web page validation using HTML, CSS, JSP, Java and struts.
ORAL QUESTIONS
1. What is Struts?
2. What are the advantages of using Struts?
3. Explain the working flow of Struts?
4. Explain MVC Model of Struts.
Experiment No. - 9
TITLE
OBJECTIVES
PROBLEM STATEMENT
Design an application using AngularJS. e.g., Design registration (first name, last name,
username, password) and login page using AngularJS
OUTCOMES
Students can able to,
Software Requirements:
THEORY-CONCEPT
AngularJS is an open-source web application framework. It was initially created in
2009 by Misko Hevery and Adam Abrons. It is presently kept up by Google. Its most
recent adaptation is "AngularJS is an auxiliary system for dynamic web applications. It
gives you a chance to utilize HTML as your layout dialect and gives you a chance to
stretch out HTML's linguistic structure to express your application parts plainly and
compactly. Its information official and reliance infusion take out a significant part of
the code you as of now need to compose. Also, everything occurs inside the program,
making it a perfect band together with any server innovation".
General Features
• AngularJS is a productive system that can make Rich Internet Applications (RIA).
• AngularJS gives designers choices to compose customer side applications
utilizing JavaScript in a spotless Model View Controller (MVC) way.
• Applications written in AngularJS are cross-program agreeable. AngularJS
consequently handles JavaScript code reasonably for every program.
• AngularJS is open source, totally free, and utilized by a great many engineers
the world over. It is authorized under the Apache permit version 2.0.
• By and large, AngularJS is a system to assemble expansive scale, elite, and simple to-
keep up web applications.
Core Features:
Advantages of AngularJS
It gives the ability to make Single Page Application in a spotless and viable way.
It gives information restricting ability to HTML. Along these lines, it gives
client a rich and responsive experience.
AngularJS code is unit testable.
AngularJS utilizations reliance infusion and make utilization of partition of
concerns.
AngularJS gives reusable segments.
With AngularJS, the engineers can accomplish greater usefulness with short code.
In AngularJS, sees are unadulterated html pages, and controllers written in
JavaScript do the business handling.
Model − It is the most minimal level of the example in charge of looking after
information.
View − It is in charge of showing all or a part of the information to the client.
Controller − It is a product Code that controls the connections between the Model and
View.
ng-model − This directive binds the values of AngularJS application data to HTML
input controls.
ng-bind − This directive binds the AngularJS Application data to HTML tags.
DESIGN/EXECUTION STEPS
Steps for AngularJS
1. Either download AngularJS
2. Or Use CDN Method.
Example:
We have included the AngularJS JavaScript file in the HTML page so we can use AngularJS −
<head>
<scriptsrc="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
</head>
2. View
The view is this part −
<div ng-controller="HelloController">
<h2>Welcome {{helloTo.title}} to the world of Tutorialspoint!</h2>
</div>
ng-controller tells AngularJS what controller to use with this view. helloTo.titletells
AngularJS
to write the "model" value named helloTo.title to the HTML at this location.
3. Controller
The controller part is −
<script>
angular.module("myapp",[])
.controller("HelloController",function($scope){
$scope.helloTo={};
$scope.helloTo.title="AngularJS";
});
This code registers a controller function named HelloController in the angular module
named myapp. The controller function is registered in angular via the
angular.module(...).controller(...) function call.
The $scope parameter passed to the controller function is the model. The controller
function adds a helloTo JavaScript object, and in that object it adds a title field.
4. Execution
Save the above code as myfirstexample.html and open it in
any browser.
AngularJS directives are used to extend HTML. These are special attributes starting with
ng- prefix. We're going to discuss following directives −
● ng-repeat − This directive repeats html elements for each item in a collection.
CONCLUSION/ANALYSIS
ORAL QUESTIONS
Title: EJB.
PROBLEM STATEMENT
Design and implement a business interface with necessary business logic for any web
application using EJB. e.g., Design and implement the web application logic for deposit and
withdraw amount transactions using EJB.
OBJECTIVES
1. To understand EJB.
2. To design and implement the web application logic for deposit and withdraw amount
transactions using EJB
OUTCOME
Software Requirements:
1. Operating System: Windows 7/8/10/Ubuntu
2. Browser: Microsoft Edge/Firefox/Google Chrome
3. Software: Java, Eclipse
Hardware Requirements:
1. Processor: Minimum 1 GHz.
2. Ethernet connection (LAN) OR a wireless adapter (Wi-Fi)
3. Hard Drive: Minimum 32 GB.
4. Memory (RAM): Minimum 1 GB
THEORY-CONCEPT
What is EJB?
EJB is an acronym for enterprise java bean. It is a specification provided by Sun
Microsystems to develop secured, robust and scalable distributed applications.
To get information about distributed applications, visit RMI Tutorial first.
To run EJB application, you need an application server (EJB Container) such as Jboss,
Glassfish, Web logic, Web sphere etc. It performs:
a. life cycle management,
b. security,
c. transaction management, and
d. Object pooling.
EJB application is deployed on the server, so it is called server side component also.
EJB is like COM (Component Object Model) provided by Microsoft. But, it is different
from Java Bean, RMI and Web Services.
Types
EJB is primarily divided into three categories; following table lists their names with brief
descriptions −
1
Session Bean
Session bean stores data of a particular user for a single session. It can
be stateful or stateless. It is less resource intensive as compared to entity bean.
Session bean gets destroyed as soon as user session terminates.
2
Entity Bean
Entity beans represent persistent data storage. User data can be saved to database via
entity beans and later on can be retrieved from the database in the entity bean.
3
Message Driven Bean
Message driven beans are used in context of JMS (Java Messaging Service). Message
Driven Beans can consumes JMS messages from external entities and act
accordingly.
Disadvantages of EJB
1. Requires application server
2. Requires only java client. For other language client, you need to go for webservice.
3. Complex to understand and develop ejb applications.
TECHNOLOGY / TOOL
Tools used:
Hence, designed and implemented the web application logic for deposit and withdraw
amount transactions using EJB.
ORAL QUESTIONS