Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
JSP - Java Full Stack
Rating: 4.1 out of 5(46 ratings)
4,440 students

JSP - Java Full Stack

Full stack developer, Learn JavaServer Page the easy way!
Last updated 9/2021
English
English [Auto],

What you'll learn

  • Introduction to JSP
  • JSP Environment Setup
  • Getting familiar with JSP
  • First JSP
  • Implicit objects, scripting and standard actions!
  • Directives and sessions
  • Database connectivity
  • Forms Processing

Course content

1 section18 lectures1h 27m total length
  • Introduction to JSP2:39

    Learn how Java server pages operate as a server-side technology to render dynamic web pages by embedding Java code, processing requests, and returning results.

  • JSP Environment Setup - 15:46

    Download and install the Java SDK, then configure environment variables and PATH on Windows to locate Java and run JSP programs in a development environment.

  • JSP Environment Setup - 27:14

    Set up a JSP environment by installing a Tomcat server, configuring JAVA_HOME, starting with startup.bat, stopping with shutdown, and placing JSP files in the directory to run in the browser.

  • Getting familiar with JSP4:24

    Explore the JSP-driven GSP lifecycle, including server-side categories and the four stages: compilation, initialization, execution, and cleanup, that manage dynamic, secure web content from request to response.

  • Your First JSP6:24

    Learn to create a jsp web application in NetBeans, use GlassFish as the server, and run to see hello world in the browser; compare gsp and jsp basics.

  • Implicit objects4:02

    Explore JSP implicit objects such as request, response, session, application, and config, and learn how each predefined variable facilitates accessing data, writing output, and configuring the running web application.

  • Scripting5:01

    Explore scripting in GSP, inserting Java code and logic to generate dynamic client output, using script letters, comments, expressions, declarations and escape sequences, with examples of rendering and source view.

  • Standard Actions - 14:15

    Explore standard actions in JSP to include dynamic content from other resources at request time, using the page and flush attributes, and see how including a file updates the page.

  • Standard Actions - 23:40

    Learn how standard actions work in jsp, focusing on the forward action that uses the page attribute to transfer request processing to another resource and terminates the original dsp.

  • Standard Actions - 33:47

    Explore standard actions in dsp to manipulate a java object, including creating or locating a dao object and using get and set property in a sample.

  • Directives - 14:47

    Explore JSP page directives in the GSP container, including language, import, session, buffering, and content type, and understand how these attributes affect translation time, output, and mime type.

  • Directives - 23:28

    Explore JSP directives and tag libraries, learning how the include directive injects file content, set a library prefix for custom tags, and fetch values from URL using a tag library.

  • Sessions - 15:51

    Learn how stateless requests hinder user-specific operations and how session management uses cookies and tokens to identify clients, store user data on the browser, and enable secure redirects.

  • Sessions - 26:47

    Learn how to manage user sessions in jsp using the implicit session object, and persist data with set and get attributes, hidden fields, and post and get requests across pages.

  • Databae Connectivity - 14:49

    Learn to establish Java full stack database connectivity by installing a MyEskil server, downloading the MySchool connector jar, and creating a JDBC connection using DriverManager with URL, user, and password.

  • Databae Connectivity - 24:44

    Establish a database connection by loading the driver, using the driver manager, and configuring localhost:3306 with root credentials. Add the MySchool connector jar, rebuild, and verify a successful connection.

  • Forms Processing - 14:30

    Learn to process user login in a Java full stack app by validating credentials, querying the database, authenticating, and creating a session before redirecting to the profile.

  • Forms Processing - 25:45

    Register a new user with GSB by submitting the form fields name, username, password, gender, and city, validate blanks, insert the user, start a session, and link to profile page.

Requirements

  • We assume you have little knowledge of how web applications work over HTTP, what is web server and what is web browsers.

Description

Jakarta Server Pages (JSP; formerly JavaServer Pages) is a collection of technologies that helps software developers create dynamically generated web pages based on HTML, XML, SOAP, or other document types. Released in 1999 by Sun Microsystems,[1] JSP is similar to PHP and ASP, but uses the Java programming language.

To deploy and run Jakarta Server Pages, a compatible web server with a servlet container, such as Apache Tomcat or Jetty, is required.

Architecturally, JSP may be viewed as a high-level abstraction of Java servlets. JSPs are translated into servlets at runtime, therefore JSP is a Servlet; each JSP servlet is cached and re-used until the original JSP is modified.

Jakarta Server Pages can be used independently or as the view component of a server-side model–view–controller design, normally with JavaBeans as the model and Java servlets (or a framework such as Apache Struts) as the controller. This is a type of Model 2 architecture.

JSP allows Java code and certain predefined actions to be interleaved with static web markup content, such as HTML. The resulting page is compiled and executed on the server to deliver a document. The compiled pages, as well as any dependent Java libraries, contain Java bytecode rather than machine code. Like any other .jar or Java program, code must be executed within a Java virtual machine (JVM) that interacts with the server's host operating system to provide an abstract, platform-neutral environment.

JSPs are usually used to deliver HTML and XML documents, but through the use of OutputStream, they can deliver other types of data as well.

The Web container creates JSP implicit objects like request, response, session, application, config, page, pageContext, out and exception. JSP Engine creates these objects during translation phase.

Who this course is for:

  • For web developers and programmers to increase their performance.