There has always been a strong requirement to iterate through collections. In fact, this is probably one of the most common tasks that we need to perform. One can only venture a guess at how many JSP page authors have implemented their own versions of iterating through something. Iterating can certainly be accomplished using scriptlet code in a JSP...

Read More

We have seen throughout some of our previous examples that using the iteration actions makes life a lot simpler for us in JSP-land. The action uses the items attribute to specify a collection of objects. The action then repeats its nested body content over the items. If items is null, then no iteration is performed since it is treated a...

Read More

In this post we have seen how to loop through collection in JSTL. Here we will see how to use conditions while looping through JSTL. Consider we are printing a collection of book in JSP. Now let’s say that when we print the first ten books, we want to highlight the first five. This is done by adding in a collaboration with the conditional action. Read More

While the  action is powerful for iterating, sometimes data is presented to us in the form of strings. A common reason for getting string data (no matter how much we dislike it) is because we are integrating or interfacing with a legacy system. Many times, the data will come in a form where there is some delimiter (or delimiters) being u...

Read More

FOLLOW US ON LinkedIn



Explore Tutu'rself