En principio, seria esta parte:
Using the HttpResponse’s PrintWriter, create a navigational
menu along the top that includes links to the following pages
(created in subsequent exercises):
● <a href=’CustomerDetails’>Customer Details</a>
● <a href=’CustomerController’>All Customers</a>
● <a href=’Stocks.jsp’>Stocks</a>
● Attempt to get a request attribute of type Customer from the
HttpServletRequest by looking up the attribute named
customer (case sensitive). A Customer object will be placed in
the request scope by the servlet created in the next exercise.
● Create a form for a customer’s details. The default values for
the form elements should be equal to the data in the Customer
object if it was found in the request scope. The form can be laid
out using any method you want, such as tables or CSS. The
form should have the following properties:
● The action should be CustomerController.
● The method should be GET.
Exercise 1: Implementing the Customer View in the CustomerDetails
Servlet
Lab 1-6
Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. Sun
Services, Revision A
● A text input field with a name of customerName.
● A text input field with a name of customerIdentity.
● A text input field with a name of customerAddress.
● Four submit buttons with the name submit and the values
Get Customer, Update Customer, Add Customer, and
Delete Customer.
● If the Customer object was found in the request scope, then
print a URL to that customer’s portfolio. Use the getId method
of the Customer to retrieve an ID that is passed as an HTTP
GET form parameter to the PortfolioController
development in the next exercise. Use the following example:
“<a href=’PortfolioController?customerIdentity=” +
id + “‘>View Portfolio</a>”
● Using an if statement, attempt to retrieve a String attribute
named message (case sensitive), from the
HttpServletRequest. This message is created by other classes
when errors occur. Display the message string in red below the
customer details form.
● Close the PrintWriter.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to