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

Understanding implicit objects in JSP

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

Start my 1-month free trial

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…

Contents