This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes EL functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "EL functions" Watch "EL functions" New topic
Author

EL functions

Sony Agrawal
Ranch Hand

Joined: Oct 04, 2009
Posts: 143
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

Joined: May 29, 2008
Posts: 445

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.



Never try to be a hard-worker. Be a smart-worker.
My Blog
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

Without more context, this is impossible to answer.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sony Agrawal
Ranch Hand

Joined: Oct 04, 2009
Posts: 143
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
 
wood burning stoves
 
subject: EL functions
 
Similar Threads
howto pass parameter to struts tag ?
Struts value into a javascript function
Set the value in html:select tag
EL versus Tag Libraries
Help me EL