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 the advent of standard actions

Understanding the advent of standard actions

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

Start my 1-month free trial

Understanding the advent of standard actions

- [Female Speaker] Now let us understand the advent of JSP Standard Actions. So far, we have known the basic elements on a JSP: scriptlet, expression, and declaration. Scriptlets allow you to write Java code statements. Expression allows you to evaluate expressions and print then on your JSP whereas declaration allows you to introduce new instances, variables, and methods in the translated servlet for your JSP. When we talk about a JSP, it is used only for navigating and displaying object data. In a typical MVC architecture, JSP is always the view layer of your application, which is basically the presentation, other than presentation, it should be really doing anything more. It should not be involved in any kind of business logic nor should it be involved in any kind of database interaction because it is merely there for the presentation purposes. Let's take a look at some of the code pieces that we have written with the basic elements. Look at the searchResults.jsp, we have this set…

Contents