Likes

WCD-LAB @HOME 7-Ans 1

Investigate using EL to access complex data structures.


Preparation
No preparation is needed for this exercise.

Task
1. Open the project named SL314m061ab2 in the d:\labs\student\exercises directory and look at the classes domain.Customer and domain.Address.
2. Examine the launch page index, jsp. and the servet class web.Controller, to determine the basic structure of the application. Note that the application is missing the view CustomerView. jsp to which the controller servlet forwards.
3. Create the view class Customerinfo. jsp. Arrange that it displays the name and three addresses of the customer.
4. Test your application for the customer with the ID 1 (only one exists).
5. There are two distinct ways (syntactically) that you can access the three customer addresses-using arrays or using the three distinct fields. Whichever you used in step 3. modify your view to use the other approach, and retest your application.

1 comment:

Unknown said...

Request you to post the files that are there in d:\labs\student\exercises directory