Top "Jstl" questions

JSTL (JSP Standard Tag Library) is a JSP based standard tag library which offers tags to control the flow in the JSP page, date/number formatting and internationalization facilities and several utility EL functions.

How to iterate an ArrayList inside a HashMap using JSTL?

I have a map like this, Map<Integer,ArrayList<Object>> myMap = new LinkedHashMap<Integer,ArrayList&…

java jsp map arraylist jstl
How to use <spring:url /> with an <a> tag?

Can I use <spring:url value="/something" /> inside of an <a> tag?

spring spring-mvc jstl
How do I round a number in JSTL?

I'm doing a division in a JSP and I'd like to round the result - how should I do this? …

math jsp jstl el rounding
spring message tag with multiple arguments

I am trying to get i18n message like below: messageCode=Test message for {0} and {1} and {2}. In jsp, I have …

java spring jsp jstl
Calculate total sum of all numbers in c:forEach loop

I have a Java bean like this: class Person { int age; String name; } I'd like to iterate over a collection …

jsp foreach sum jstl totals
Character encoding issue with Tomcat

There is strange character encoding going on. I am using JSP (JSTL) and Struts with Tomat 6. I have my JSP …

java jsp tomcat jstl tomcat6
Format Date with fmt:formatDate JSP

I am trying to format a date with: <fmt:formatDate value="${newsletter.createdOn}" pattern="MM/dd/yyyy"/> newsletter …

jsp jstl
JSTL if-statement inside HTML-attribute

is it possible to do something like this in JSTL: <div class="firstclass<c:if test='true'> …

css jsp jstl jsp-tags
Include JSTL dependency with Maven

I am using maven2, how do I add a dependency to JSTL (The JSP Standard Tag Library) ?

java jsp servlets jstl maven
JSTL Sets and Lists - checking if item exists in a Set

I have a Java Set in my session and a variable also in the session. I need to be able …

list jstl set