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.
JSP elements: Scriptlet, declaration, and expression
From the course: Java EE: Servlets and JavaServer Pages (JSP)
JSP elements: Scriptlet, declaration, and expression
- [Woman] Now, let's take a look at the basic J-S-P elements that we need to know in order to work with the J-S-P page. J-S-P elements are basically to support Java or any other scripting code on the J-S-P page. Now, whenever you write code inside a J-S-P element, all that Java code goes into the translated servlet file of J-S-P. What does this mean? Let's say this is your J-S-P file, Login dot J-S-P. Whatever code that you embed as a part of the J-S-P elements on this page, once you do that the entire code is going to get translated into a Login Servlet Java file. This Login J-S-P of course will have both H-T-M-L and Java code but once it gets translated it'll be converted into a Login Servlet dot Java. It's servlet class, so it's definitely going to be similar to the way we have written servlet classes so far. But this translation process is something that is completely owned up by the container software. As developers, we wouldn't have to do anything for this. Once this is going to…
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)
-
-
-
-
-