Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

register.jsp: Movie Fan Membership Registration First Name Last Name Favorite Movie Favorite Actor confirm.jsp: //##################################################################################### //###### Your java code here to declare and instantiate FavoritesManager

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

register.jsp:

Movie Fan Membership Registration

First Name

Last Name

Favorite Movie

Favorite Actor

confirm.jsp:

//#####################################################################################

//###### Your java code here to declare and instantiate FavoritesManager object. ######

//###### You will be using this variable in the "if" statements lower down. ######

%>

back to Registration page

Welcome,

//###### Your java code here to combine first with last name.######

//###### Don't forget to put a space between first and last. ######

//###### I've given you the first part of the line... ######

//###### (in other words, replace the three periods) ######%>

Your favorite movie ()

//#####################################################

//###### Your java code here to call movie check ######

//###step 1: create a String variable and fill it with the

//request parameter called "movie" ...

//Reference the last lab for the syntax on accessing the request object

//or just look above at how we're grabbing the firstname param.

//###step 2: create an if statement.

//Inside the parentheses, not brackets, of the if statement, call

//the movie method on your external class you've created and instantiated

//up towards the top of this file.

//Your passing the string you've created above that has the movie value.

//Now, within the first set of curly brackets of the if statement, only put this line of code:

%>is my favorite movie!

//Then do an else statement, and within the brackets, only put this line:

%>is not my favorite movie.

//This space is just here for you to put the closing curly bracket of the else statement.

%>

Your favorite actor ()

//#####################################################

//###### Your java code here to call actor check ######

//### For this section, follow the steps up above again, only you're

//substituting actor now instead of movie.

%>

If you can, please make screenshot to me show the demon. Thank you!!! I will rate as soon as possbile if you answered

1. SUMMARY a. You il have two iso pages, one that submits user entries to the other. You will also have a regular Java class that provides methods for the second JSP page to access. b. This lab will involve the following new features: i. ii. Incorporating external Java classes into a web app Handling submitted Request values in a separate JSP page. 2. DETAILS Alrighty... More web app Development! This week, we're going to expand our HTML a bit, and we're going to expand our Java out to two pages. We're also going to make a class and use it in our web pages. You'll learn how to: 1. 2. 3. Import and use external classes in JSP pages and Tomcat. Submit form data from one JSP page to another Perform basic formatting of HTML pages using tables. So we're going to make a simple "Movie Fan" registration site. This is what we're going to make: 1. Ahome registration page. a. This page will have first/last name fields to fill out along with favorite movie and actor. b. This information will be in an HTML form, as you did last week; but this time the form will be submitting the information to our registration confirmation page. 2. A registration confirmation page. a. This page will instantiate a class you will create called FavoritesMr, nd call methods on that class that will compare the user's submitted favorites against yours (which you'll put into the class when you code it) 3. Anew java class a. This class will have two methods that will check the user's favorites against yours. i. checkFavorite Movie ii. checkFavoriteActor This class/object is being used by another object (in this case, our compiled JSP page that becomes a servlet, which is a standard java class/object), so for that reason, we don't have any beginning method such as "init" or "main." b. These are the three files you'll be turning in. So now I'm going to take you through the details... follow along carefully 1. SUMMARY a. You il have two iso pages, one that submits user entries to the other. You will also have a regular Java class that provides methods for the second JSP page to access. b. This lab will involve the following new features: i. ii. Incorporating external Java classes into a web app Handling submitted Request values in a separate JSP page. 2. DETAILS Alrighty... More web app Development! This week, we're going to expand our HTML a bit, and we're going to expand our Java out to two pages. We're also going to make a class and use it in our web pages. You'll learn how to: 1. 2. 3. Import and use external classes in JSP pages and Tomcat. Submit form data from one JSP page to another Perform basic formatting of HTML pages using tables. So we're going to make a simple "Movie Fan" registration site. This is what we're going to make: 1. Ahome registration page. a. This page will have first/last name fields to fill out along with favorite movie and actor. b. This information will be in an HTML form, as you did last week; but this time the form will be submitting the information to our registration confirmation page. 2. A registration confirmation page. a. This page will instantiate a class you will create called FavoritesMr, nd call methods on that class that will compare the user's submitted favorites against yours (which you'll put into the class when you code it) 3. Anew java class a. This class will have two methods that will check the user's favorites against yours. i. checkFavorite Movie ii. checkFavoriteActor This class/object is being used by another object (in this case, our compiled JSP page that becomes a servlet, which is a standard java class/object), so for that reason, we don't have any beginning method such as "init" or "main." b. These are the three files you'll be turning in. So now I'm going to take you through the details... follow along carefully

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analytics Systems Engineering Cybersecurity Project Management

Authors: Christopher Greco

1st Edition

168392648X, 978-1683926481

More Books

Students also viewed these Databases questions