What's New Here?

spring-framework-logo

How do I combine filter and projection operation in Spring EL?

Using Spring Expression Language (SpEL) we can filter a collection based on some criteria. We can also create a projection of a collection by collecting only a particular property from the collection objects. Now you know that you have two good features of SpEL that are really powerful to use when working ...
spring-framework-logo

How do I create a projection of a collection using Spring EL?

In this example you will learn how to create a projection of a collection object. Using projection we can create a new collection with only a specific property from the original collection. As an example, instead of returning a collection of Book objects we would like only to have the titles of the books. ...
spring-framework-logo

How do I filter collection members based on some criteria using Spring EL?

In some of the previous example you have seen that we use the square-braces [] operator to select items from collection. In this blog post you will learn how to filter some members of a collection with a certain criteria while using the Spring EL. To do this Spring EL give you another special operator, ...
spring-framework-logo

How do I read system environment variables in Spring EL?

Previously you have seen that we can load properties file and read a value from it in this example: How do I read a value from properties file using Spring EL?. In this example you will learn how to read a special properties available to Spring EL. These properties includes the systemEnvironment and ...
spring-framework-logo

How do I read a value from properties file using Spring EL?

In the previous two examples you have seen how to access member of a collection and access a map element using the square-braces [] operator in Spring EL. In this example you will see how to use the [] operator to read a value from a properties file or java.util.Properties. Let’s say we have a database ...
spring-framework-logo

How do I access Map element using Spring EL?

In the previous example, How do I access collections members using Spring EL?, you have seen how to access a member of a collection using Spring EL square-braces [] operator. In this post you will learn how to use the same operator to access an element of a Map object. For demonstration we will use the ...
spring-framework-logo

How do I access collections members using Spring EL?

In another posts about Spring EL examples you have learn the basic of Spring EL. In this post you will see another powerful examples of Spring EL. We are going to demonstrate how to use Spring EL to access collection members. By using Spring EL you can select a single reference member of a collection. ...
spring-framework-logo

How do I do pattern matching using regular expression in Spring EL?

In this Spring Expression Language example we are going to learn how to use regular expression or regex to check if a text matches a certain pattern. Spring EL support regular expression using the matches operator. The matches operator will check if the value has a pattern defined by the regex string ...
spring-framework-logo

How do I use ternary operator in Spring EL?

In this example you will learn how to use ternary operator in Spring Expression Language. The ternary operator will evaluate a Spring EL to one value if a condition is true and to another value if the condition is false. Ternary operator is written using the ?: symbols, just as what you do in Java. The ...
spring-framework-logo

How do I use logical expression in Spring EL?

In the previous example you have learnt How do I compare values in Spring EL?. Where you saw how to compare two simple values for equality, less-than or greater-than, etc. In practice you might need to combine one or more of this comparison into a more complex logical expressions. Spring EL also provides ...
Page 1 of 1031234...1020...Last »
© 2014 Java Examples - Built with love by Wayan Saryada.