Advance Java
INTRODUCTION
Ø A web application is nothing but a
project.
Ø A solution for a problem is known as Project.
Ø In a project there can be any no of
modules.
Ø According to the project the number of
modules may change.
Ø Generally there can be 5 types of
modules initially in the project. They are:
1.New user
registration
2.User
Authentication or Sign In
3.Change password
4.Forgot password
5.Signout
1)New User registration:-
Ø In New User Registration module, a new user will register in the
website.
Ø As a programmer, we have to store data
permenantly in the database table.
2) User Authentication:-
Ø In User Authentication module, a new user will login into the website.
Ø As a programmer, first we have to
check whether the user is registered user or not.
Ø For this we have to get data given by
the user in the form and get data from the table and we have to compare both data.
Ø If the data is same, then we will “welcome the user” and if the data is
not samethen we will display some error message to the user like “invalid user name or password”.
3) Change Password:-
Ø In Change Password module, the user can change the password whenever
the user wants.
Ø As a programmer, we have to update the
old password by the new password present in the registration table.
4) Forgot password:-
Ø By using Forgot Password module, the user can get the password by giving
username in the form.
Ø As a programmer, first we have to check
whether the user is registered user or not.
Ø If the user is registered user then
the password is given to the user.
Ø If the user is not registered user
then we will display some error message like “Invalid Username”.
5) Sign Out:-
Ø In Sign Out module, the user will come out of his/her account successfully.
HTML (Hyper Text Markup Language):-
Ø Markup means it consists of tags.
Ø Tags present in html are built in or
predefined tags.
Ø The tags are optional.
Syntax:-
PROGRAM:-
File Name: one.html
Welcome to Html
PROGRAM:-
File Name: two.html
welcome to html
HEADING TAGS:-
Ø There are six heading tags in Html
from
to
to
PROGRAM:-
File Name:- heading.html
This is heading
This is heading
This is heading
This is heading
This is heading
This is heading
ANCHOR TAG:-
Ø It is used to create hyperlink.
PROGRAM:-
File Name:- anchor.html
NOTE:-
Ø Here href means Hyperlink Reference.
IMAGE TAG:-
PROGRAM:-
File Name:- image.html
NOTE:-
Ø Here src means Source, alt means Alternative
Text.
LABEL:-
Ø The label will give some information
to the user about another component.
TEXT FIELD:-
Ø It allows user to enter single line of
text.
Syntax:-
PROGRAM:-
File Name: text.html
User
Name:
Password:
NOTE:-
Ø The default label for the button is Submit Query.
TEXTAREA:-
Ø It allows user to enter multiple line
of text
PROGRAM:-
File Name:- text1.html
Address:
NOTE:-
Ø We must compulsorily close the
textarea tag.
CHECK BOX:-
Ø It allows user to select multiple
options at a time.
PROGRAM:-
File Name:- checkbox.html
Courses:C
C++
Java
RADIO BUTTON:-
Ø It allows user to select only one
option at a time in a group.
PROGRAM:-
File Name:- radio.html
Gender:MaleFemale
NOTE:-
Ø For all radio button tags we must give
the same name.
CHOICE:-
Ø It allows user to select only one item
at a time.
PROGRAM:-
File Name:- choice.html
Department:
LIST:-
Ø It allows user to select multiple
items at a time.
PROGRAM:-
File Name:- list.html
Department:
ORDER LIST:-
Ø In order list, the list is displayed
in numbering.
PROGRAM:-
File Name:- orderlist.html
NOTE:-
Ø Here
- means order list.
Ø Here
means list item
UN ORDERLIST:-
Ø In unorder list, the list is displayed
in bullets.
PROGRAM:-
File Name:- unoderlist.html
NOTE:-
Ø Here
- meansun order list.
Ø Here
means list item
NESTED ORDER LIST:-
Ø The list is displayed in nested form.
PROGRAM:-
File Name:- nestedorder.html
NESTED UNORDERLIST:-
Ø The list is displayed in nested un
order form.
PROGRAM:-
File Name:-
nestedunorder.html
NESTED ORDERED AND UNORDERED LIST:-
Ø The list is first displayed in nested
order and then is nested unorder form.
PROGRAM:-
FileName: nested.html
TO UPLOAD A FILE:-
Ø This is used to upload a file in the
form.
PROGRAM:-
File Name:- upload.html
Upload a
file:
FONT TAG:-
Ø This tag is used to display the text
in different fonts, color and size.
PROGRAM:-
File Name:- font.html
welcome to html
TABLE TAG:-
Ø This tag is used to create a tabular
form
PROGRAM:-
File Name:- table.html