Professional Documents
Culture Documents
L T P C
0 0 3 2
Experiment-1:
Design the static web pages required for any online services web site.
1) HOME PAGE:
The static home page must contain three frames.
Top frame: Logo and the college name and links to Home page,
Login page, Registration page, Catalogue Page, Cart Page etc.
Left frame: At least four links for navigation, which will display
the catalogue of respective links.
Right frame: The pages to the links in the left frame must be loaded
here. Initially this page contains description of the web site.
2) LOGIN PAGE:
This page has to contain Login Form, Forgot Password, and Link
to new user Registration Form, back to Home page etc. If the user
is authenticated user, can access the web site. Otherwise he has to
register.
3) Registration page:
This page has to contain user registration form minimum of 10 Fields
(use all the form Widgets). If the user is authenticated user, can
access the web site.
4) Catalogue PAGE:
The catalogue page should contain the details of all the items
available in the web site in a table.
5) Cart page:
Selected list of items has to display in table format & compute cost
before submitting. (Use Event Handler functions)
115
Experiment -2:
Design a web page using CSS (Cascading Style Sheets) which includes
the following:
1. Use different font, styles: In the style definition you define how
each selector should work (font, color and style etc.). Then, in the
body of your pages, you refer to these selectors to activate the styles.
2. Set a background image for both the page and single elements on
the page. You can define the background image for the page like
this:
Experiment-3:
VALIDATION:
Write JavaScript to validate the following fields of the above registration
page.
1. Name (Name should contains alphabets and the length should not
be less than 6 characters).
3. E-mail id (should not contain any invalid and must follow the
standard pattern name@domain.com)
Experiment -4:
Write an XML file which will display the item (your wish) information
which includes the following (for example)
1) Title of the book
2) Author Name
116
3) ISBN number
4) Publisher name
5) Edition
6) Price
Write a Document Type Definition (DTD) to validate the above XML file.
Display the XML file as follows.
2) Use XML schemas XSL and CSS for the above purpose. Note: Give
at least for 4 books. It should be valid syntactically. Hint: You can
use some xml editors like XML-spy
Experiment -5:
1. Access the above developed static web pages for books web site,
using these servers by putting the web pages developed in week-
1 and week-2 in the document root.
117
Experiment -6:
User Authentication:
Assume four users user1, user2, user3 and user4 having the passwords pwd1,
pwd2, pwd3 and pwd4 respectively. Write a servlet for doing the following.
1) Create a cookie and add these four user id's and passwords to this
cookie.
2) Read the user id and passwords entered in the login form and
authenticate with the values (user id and passwords) available in
the cookies.
3) If he is a valid user(i.e., user-name and password match) you should
welcome him by name(user-name) else you should display " You
are not an authenticated user ".
4) Use init-parameters to do this. Store the user-names and passwords
in the webinf.xml and access them in the servlet by using the
getInitParameters () method.
Experiment -7:
Install a database (Oracle or MySql or MS-Access).
3) Insert the details of the users who register with the web site, whenever
a new user clicks the submit button in the registration page
Experiment -8:
Write a JSP which does the following job:
Insert the details of the 3 or 4 users who register with the web site by
using registration form. Authenticate the user when he submits the login
form using the user name and password from the database (Oracle or MySql
or MS-Access).
118
Experiment -9:
Install a database (MySql).
2) Write a JSP to connect to that database and extract data from the
tables and display them. Experiment with various Oracle/MySql/
MS-Access queries.
3) Insert the details of the users who register with the web site, whenever
a new user clicks the submit button in the registration page.
Experiment -10:
Airline Ticket Booking System, develop using HTML5, CSS3, XML and
Servlets or JSP with any Database (Oracle 10g/MySql/Ms-Access) mainly
it has the below functions:
• Flight Status function
• Finding Deals function
Simulate: Flight Status
Click "Flight Status":
Description: The customer can use this function to check the status of
a flight.
Inputs: Confirmation number, date, origin and destination.
Source: The input is provided by the user.
Outputs: Date, departure time, arrival time, origin and destination.
Destination: The outputs are displayed on the screen by retrieving
information from the database.
Requires: User needs to have a confirmation number while inside secure
website.
Pre-condition: The user is inside the website.
Post-condition: The user has viewed the information about flight status
and schedule.
Stimulus: Finding Deals
Click: "Finding Deals"
119
Description: This function allows user to search for deals. The user enters
the source, destination, time period that the user wants to go on a vacation,
and the price range.
Input: Scheduled flights on the selected date with origin and destination,
class (single/double), check-in and check-out date and time.
Outputs: A list of deals satisfying the criteria will be displayed by prices
from the lowest to the highest.
Source: All the inputs are provided by the user.
Pre-Condition: The user should be logged in.
Post-Condition: The user has viewed the information about stay schedules
and flight schedule
120