Question: A web based application for a major online movie rental retailer stores a List<Movie> as a session attribute to contain movies the user has requested. A random, embedded movie trailer from this list must display on the users’ main page every time the users’ main page is viewed.
Management thinks a similar feature will be needed in the near future on other pages that display lists of movies. Streaming video is accomplished with regular HTML, just like adding images to a page but with more complex tags.
The development team needs a solution that is both flexible and maintainable. One possible solution is to create an EL function. The following statements are from a team meeting concerning EL functions as a solution to this problem. Which statements are true? (Choose all that apply.)
One of the correct Answer: You might have to write HTML tags in the middle of Java code using an EL function, which is more difficult to maintain.
Explanation: the biggest reason not to choose an EL function as the total solution. The team chose to use a tag file as the solution but then also created an EL function that accepts a Collection and returns a random number based on the size of the collection