Write a java servlet to validate the data

Assignment Help JAVA Programming
Reference no: EM13336635

Task

Complete the following tasks for an online hotel reservation system:

Task 1:

Write relevant JSP code to generate a registration page for an online hotel reservation system. Your registration page may include different interface components (text fields, text areas, list boxes, radio buttons, buttons, etc.). You may take all typical information needed for a hotel registration as an input from the customer, e.g. customer no (if any), first name, family name, address (may use multiple lines to take details), telephone, sex, date/duration of stay etc.

Task 2:

Write a Java Servlet to validate the data submitted through the above registration page. If the required fields are empty relevant error messages should be displayed on the same registration page.

Task 3:

If the form is complete the Java Servlet should send a redirect to a JSP page that confirms the registration of the customer.

Rationale
This assignment is designed to ensure that students have setup the software correctly on their own computer. This assignment would ensure students' completion of topics Introduction to serverside applications, Web forms and CGI, Java Servlets, Session management etc. Moreover this assessment would achieve following learning objectives:

be able to define a web based information system (WBIS) and differentiate between such systems and conventional web sites;
be able to design a small WBIS using elements from the disciplines of web design, database design, software engineering and object modelling;
be able to develop a small WBIS using HTML forms, Java Servlets and cookies;

Reference no: EM13336635

Questions Cloud

What is the relative solubility of benzoic acid : What is the relative solubility of benzoic acid in water and methylene chloride?
What is the horizontal force acting on the puck : An air puck of mass m1 = 0.24 kg is tied to a string and allowed to revolve in a circle of radius R = 1.0 m on a frictionless horizontal table. What is the horizontal force acting on the puck
How did the morphology of horse limbs change in size : 1.what morphologic characteristics of Hyacotherium suggest that it lived in thick, closed canopy forest 2. How did the increase in grasslands beginning in the miocene influence the morphology of horse teeth and jaw
Explain pure water at room at room temperature : Which of the following is the [OH-] in pure water at room at room temperature? A) 1.0 x 10^-14 M B) 1.0 x 10^-7 M C) 1.0 x 10^7 M D) 1.0 x 10^14 M
Write a java servlet to validate the data : Write a Java Servlet to validate the data submitted through the above registration page. If the required fields are empty relevant error messages should be displayed on the same registration page.
How fast was the car moving when it hit the van : You are investigating an accident where a 1500 kg car that was parked without its emergency brake on rolled down a hill with a slope of 8 degrees a distance of 150 m, How fast was the car moving when it hit the van
What must be angle of the prism such that the light suffers : monochromatic light is normally incident on one face of a prism with a right triangle for a base. the light travels through the prism such that it strikes the hypotenuse of the triangle from inside.
Explain acceleration are present in an ultracentrifuge : How many times g of acceleration are present in an ultracentrifuge with a rotation frequency of 45000 rpm and a distance of 6 cm from the center of rotation. Note: the quantity omega is the angular frequency
Arrange the spectrochemical series of vo2+ : Arrange the spectrochemical series of VO2+

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  The game of pig

Write a program that allows a single player to practice the game (that is, there will be no opponent, just a single player). Play 5 turns in the game to get a total score for the player. Refer to the sample output below for a detailed example.

  Hypothetical situation

Hypothetical Situation - A company lowers its price of an economy car a small amount   ($15,000 to $14,000) Sales go from 10,000 units to 50,000 units. Another company lowers its price on a luxury car a large amount ($80,000 to $40,000). Its sales go..

  Write a complete java program assuming that the variables gp

Write a complete java program Assuming that the variables gpa, deanList and studentName have been declared, you should read in the studentName and gpa from keyboard. Write an if statement that adds 1 to deansList and prints studentName to the standar..

  Write a method heading for each method

Write a method heading for each method, write preconditions and postconditions for each method.

  Create a java class called samearraysexception

Create a Java class called SameArraysException that extends the Exception class.

  Java program to find a value at in index

Construct a main class named Array Program that generates an array of 50-integers, all ranging from one to one hundred.

  Program that allows a user to input coordinates

In Java make a program that allows a user to input coordinates as to make a Hexagon via an array, and my professor has set the standards of: Write a class Polygon which draws a hexagon for a set of numbers given by the user.

  String that contains at least five letters

Write an application that prompts the user for a String that contains at least five letters and at least five digits. Continuously reprompt the user until a valid String is entered. Display a message indicating whether the user was successful or did ..

  Primary care-secondary care and tertitary care

Discuss the differences among primary care, secondary care, and tertitary care and the 6 C's of primary care

  Write a class to represent a credit card.

write a class to represent a credit card.

  Explain where the following method invocations

Explain where the following method invocations are most likely to be found in a program for dealing with census data organized using the Model, View, Controller (MVC) design pattern. Choices are zero or more of Model, View, and Controller. Be sure to..

  Write java program which will permit user to make selection

Write the Java Program which will permit the user to make selection. You will present user with two options to perform, then you will perform action selected by user.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd