From the course: Java EE: Servlets and JavaServer Pages (JSP)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Expression language

Expression language

From the course: Java EE: Servlets and JavaServer Pages (JSP)

Start my 1-month free trial

Expression language

- [Instructor] Now that we've seen JSP standard actions, let's take a look at expression language of JSP. So now we are constantly going towards the goal where we minimize the Java code statements, and do everything possible by means of a tag, an element or an expression. And expression language is one which will allow you to write simple expressions on JSP. Now what can those expressions do for you? Think about what you can do on a JSP. JSPs, as I said, used for the display purposes, the presentation purposes. So if you want to go ahead and dynamically read the data of JavaBean components, or maybe read the data out of any implicit objects that you have been storing it into, that can be quickly read and displayed on a JSP with simple expressions. You can also invoke public methods and go ahead and basically evaluate and print the output of those expressions on the JSP page. Not only this, expression language also allows you to perform arithmetic, addition, subtraction…

Contents