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.
Understanding implicit objects in JSP
From the course: Java EE: Servlets and JavaServer Pages (JSP)
Understanding implicit objects in JSP
- Now let's take a look at what are the implicit objects on a JSP page. If you remember, in our search use case code, on the search results JSP, on line number 42, we had obtained the product's data from the request code, and at that point in time, I did mention that this is one of the implicit objects that is available, by default, on this JSP page. That's right. So now we're going to talk about the JSP implicit objects. There's a big list of the implicit objects that you have in a JSP, let's go through them one by one. First of all, what are implicit objects? They're the ones that are already created on the JSP, and they have pre-defined variable names. So when you access them, you have to access them with only that pre-defined name, and not any other name. Let's start looking at the implicit objects one by one. The first one is "out". This object is basically, of the JSPWriter class, and, this is the one which will help you to print or write an output to the JSP page. If you…
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 JSP and its features4m 57s
-
(Locked)
JSP elements: Scriptlet, declaration, and expression4m 34s
-
(Locked)
JSP elements: Scriptlet and expression9m 26s
-
(Locked)
JSP elements: Declaration4m 3s
-
(Locked)
Understanding the JSP life cycle5m 54s
-
(Locked)
JSP directives: Page8m 52s
-
(Locked)
JSP directives: Include and taglib5m 23s
-
(Locked)
Understanding implicit objects in JSP5m 12s
-
(Locked)
-
-
-
-
-