Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

My homework is due tomorrow and I have no time to spend 2 days on doing this con

ID: 2247288 • Letter: M

Question

My homework is due tomorrow and I have no time to spend 2 days on doing this considering my skill set so if someone could please write following full project in detail will be forever thankfull :   (Thank you in advance)

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Create a Java Web Project called TOBA and in it create the following HTML pages for our application. 10 pts

index.html : This will be the homepage of the application. If you’re aesthetically inclined, by all means make it pretty. At the very least, the homepage should have the name of the banking application and a navigation.

Login.html: This page should contain a form with the following input elements and a Login Button. This page should also have a link to a “New Customer Sign Up page”, see item c.

Username

Password

New_customer.jsp: This page will allow the user to register for online banking services. It should have a form with a submit button that collects the following information.

FirstName

LastName

Phone

Address

City

State

Zipcode

Email

Success.html: This page should just display a message that the account has been successfully created.

Account_activity.html: This page will be used to display the customer account information. Just add a header for now.

Transaction.html: This page will allow a user to post a transaction. Just add a header for now.

Login_failure.html: Displays a message that the login was incorrect.

Error_404.jsp: Displays 404 error code.

Error_java.jsp: Displays a message that java has thrown an exception.

SERVLETS:

Create the following Servlets: 10 pts

LoginServlet – Code the servlet to retrieve the username and password from the form we added to login.html. Have the servlet check that the username is equal to HYPERLINK "mailto:jsmith@toba.com" jsmith@toba.com and the password is equal to “letmein”. Make sure you use these values or I can’t test your work. If the username and password match, the servlet to forward the request to the account_activity.html page. If it is incorrect, it should forward the request to the login_failure.html page.

NewCustomerServlet – Code the servlet to retrieve the new customer form data and just redirect to the success.html page.

TransactionServlet – Just create an empty servlet for now.

Server Side Validation – Code the NewCustomerServlet to validate the user has entered in values for all the form fields. If not, assign a message variable such as “Please fill out all the form fields” and display the message on the new_customer.jsp page. 10 pts

Web XML - Configure the web.xml to map all your servlets. 10 pts

Error Handling – Add the following: 10 pts

XML tags that provide error-handling for an HTTP 404 status code

XML tags that provide error-handling for all Java exceptions

Explanation / Answer

hi..

!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">

<title>Hello</title>

</head>

<body>

<h2>Hi There!</h2>

<br>

<h3>Date=Wed Aug 07 12:57:55 PDT 2013

</h3>

</body>

</html>

package com.journaldev.first;

import java.io.IOException;

import java.io.PrintWriter;

import java.util.Date;

import javax.servlet.ServletException;

import javax.servlet.annotation.WebInitParam;

import javax.servlet.annotation.WebServlet;

import javax.servlet.http.HttpServlet;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

/**

* Servlet implementation class FirstServlet

*/

@WebServlet(description = "My First Servlet", urlPatterns = { "/FirstServlet" , "/FirstServlet.do"}, initParams = {@WebInitParam(name="id",value="1"),@WebInitParam(name="name",value="pankaj")})

public class FirstServlet extends HttpServlet {

private static final long serialVersionUID = 1L;

public static final String HTML_START="<html><body>";

public static final String HTML_END="</body></html>";

/**

* @see HttpServlet#HttpServlet()

*/

public FirstServlet() {

super();

// TODO Auto-generated constructor stub

}

thanks

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote