SPRING CORE / NOTES</>↗Spring Core24 Feb 2014
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, and it returns […]
SPRING CORE / NOTES</>↗Spring Core23 Feb 2014
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. […]
SPRING CORE / NOTES</>↗Spring Core23 Feb 2014
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 several operators […]
SPRING CORE / NOTES</>↗Spring Core22 Feb 2014
In Spring EL you can compare two values to know if they are equals, is greater or smaller than the other value. For these kinds of comparison, below are the list of operators supported by Spring EL, as expected it supports the same operators as in the Java programming language. The Spring Expression Language comparison […]
SPRING CORE / NOTES</>↗Spring Core20 Feb 2014
In this example you will learn how to access class-scoped methods or constants using Spring Expression Language. To access a class-scoped methods or constants you will need to use the T() operator of the Spring EL, for example T(java.lang.Math). This operator will give us the access to static methods and constants on a given class. […]
MAIL / NOTES</>↗Mail02 Feb 2014
In this example you will learn how to receive email using POP3. We are going to connect to Gmail server and read the messages in the INBOX folder. There are some steps that you need to do to download this email. Here are the steps: Setup properties for the mail session. Creates a javax.mail.Authenticator object. […]