Question
Explain jstl foreach tag with an example?

Answers

JSTL forEach tag: This tag provides a mechanism for iteration within a JSP page. JSTL forEach tag works similarly to enhanced for loop of Java Technology. You can use this tag to iterate over an existing collection of items. For Example :
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
      Tag Example                 
  • ${message}
  •      
     
    Here the attribute items has its value as an EL expression which is a collection of error messages. Each item in the iteration will be stored in a variable called message which will be available in the body of the forEach tag.   Your Comment




    More Software,tag Questions..
    What is the inputsplit in map reduce software?

    What is software configuration management?

    What Is Java Api For Xml-based Rpc (jax-rpc)?

    How can you implement fine-grained auditing?

    What is IBM’s simple explanation for Big Data’s four critical features?

    What is static synchronized method in JDBC API? Give an example?

    What does the NULLIF function do?

    What happens if a start method is not invoked and the run method is directly invoked?

    Should we override finalize method

    what is the difference between mysql_fetch_array and mysql_fetch_object?

    How will XML affect my document links?

    Why to use Style Sheets?

    What are Filters in MVC?

    Can you explain Application layer in OSI model?

    How to define new testplan attributes?

    What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

    Which oracle package is used to manage the oracle lock management services?

    What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

    What is marker interface?

    What types of partitioning are there for BW?



    Search
    Can you Answer!!
    • Q What makes you angry? TRAPS: You don’t want to come across either as a hothead or a wimp.
    • Q Due to bite of mad dog the disease hydrophobia is caused by which virus?
    • Q Tell us about any one creative project that you undertook in your job.
    • Q Explain the difference between noc & nms?
    • Q What is the quickest way to achieve this?multiple layers? layer masks?
    • Q What US president spent between 11 and 15 hours asleep daily
    • Q Explain Relational Operators with example?
    • Q Mention any four employment opportunities in the field of designing, manufacturing & designing?
    • Q Who was the first Turkish conqueror of North India?
    • Q On a printed circuit board, what is a flux capacitor?
    • Q Which country has the internet domain .pl?