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
From the course: Java EE: Servlets and JavaServer Pages (JSP)
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Understanding the advent of standard actions6m 16s
-
(Locked)
JSP standard actions: Querying database6m 23s
-
(Locked)
JSP standard actions: Displaying data7m 2s
-
(Locked)
Expression language7m 20s
-
(Locked)
Using expression language in JSP9m 52s
-
(Locked)
Using implicit objects of expression language7m 53s
-
(Locked)
-
-