QuestionQuestion

Introduction to JSP

• Code and test JavaServer Pages using scriptlets, expressions, page directives, JSP comments, JSP declarations, and custom error pages.
• Describe the directory structure that should be used for JSPs, business, and data classes.
• List two differences between the Get and Post methods that can be used to pass parameters to a JSP.
• Describe the difference between JSP comments and HTML comments.
• Explain what is meant by a thread-safe JSP and describe what you have to do to develop one.
• Describe the process of running a JSP and its effect on local and instance variables.
• Use EL to display properties of JavaBeans.
• Use “include” files in your JSPs at compile-time or runtime.
• List and describe one type of JSTL tag.Create business classes that are JavaBeans.
• List the three rules for defining a JavaBean.
• List the four scopes that EL searches in the sequence used by EL
• List the five types of old JSP tags and describe why they aren’t typically used fornew development.
• Distinguish between EL and standard JSP tags.
• Describe the use of include files.

Murach, J. &l Urban, M. (2014). Murach’s Java Servlet and JSP (3rd edition).
o Chapter 6
1. Module 3 – Introduction
2. Introduction to JSP (3A)
3. JSP Request (3B)
4. SP and Java Beans (3C)
5. JSTL and EL (3D)
6. Error Handling (3E)

You will process the user's request and display the results in another JSP. It has several types of inputs, including checkboxes, radio buttons, and lists. Note that the user can choose multiple courses from the list. You will need to examine the source code of the page to determine the name (and the associated value for the radio buttons and the list options), since you will need to use them in your server to acquire the corresponding values entered by the user.
JSP "Business" Logic
• The cost break up for each course is as follows:
o Employee - $850.00
o Student - $1000.00
o Speaker - FREE
o Others - $1350.00
• Hotel Fee is $185.00 (Assume – one night stay only)
• Parking - $10.00 (included with hotel, but add this fee if attending the conference only)

Note: Email confirmation is just a message for now.
• Export the project as a war (without sources) and deploy the war
• Export the project as a war (with sources) and upload it
• Also, the landing page of your assignment should be index.html or index.jsp.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

• Describe the directory structure that should be used for JSPs,business, and data classes.
here is the structure
• Root
• Web
• JSP files
• Src
• Java
• Business
• Business classes
• Data
• Data classes
• List two differences between the Get and Post methods that can be used to pass parameters to a JSP.
• Get:
• parameters that are passed to JSP are displayed in the browser’s URL address
• It lets the user to bookmark the page along with the parameter that are sent to the page, it runs faster than Post method does
• Post:
• parameters that are passed to JSP aren’t displayed in the browser’s URL address
• It works well with sensitive data. It could pass more than 4KB data to JSP
• Describe the difference between JSP comments and HTML comments.
• HTML comment: <!-- -->
• JSP comment: <%-- --%>
• Explain what is meant by a thread-safe JSP and describe what you have to do to develop one.
• A thread-safe JSP is one that works correctly when more than one thread is running at the same time
• Developing description
• Implement the SingleThreadModel interface that prevents two threads from accessing the service method at the same time
• Add “<%@ page isThreadSafe="false" %>” to JSP page description to make it thread-safe
• Use EL to display properties of JavaBeans.
• ${attribute}
• ${attribute.property}...

By purchasing this solution you'll be able to access the following files:
Solution.zip.

50% discount

Hours
Minutes
Seconds
$73.00 $36.50
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats