• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EL functions

 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFSJ ,Page438,Option D wrote:You might have to write HTML tags in the middle of the Java code using an EL function , which is more difficult to maintain

I did not understand which html tags the author is talking about

Could you explain this for me ?
 
Rajkumar balakrishnan
Ranch Hand
Posts: 445
Android Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sony Agrawal wrote:
HFSJ ,Page438,Option D wrote:You might have to write HTML tags in the middle of the Java code using an EL function , which is more difficult to maintain

I did not understand which html tags the author is talking about

Could you explain this for me ?


He would probable give an example code snippet for that statement. Think so. If not, then i assume he mentions this.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without more context, this is impossible to answer.
 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic