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

JSP elements: Scriptlet, declaration, and expression

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

Start my 1-month free trial

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…

Contents