Skip to Main Content
Developing Middleware in Java EE 8
book

Developing Middleware in Java EE 8

by Abdalla Mahmoud
June 2018
Intermediate to advanced content levelIntermediate to advanced
252 pages
6h 45m
English
Packt Publishing
Content preview from Developing Middleware in Java EE 8

Designing and implementing the frontend

Let's go further by implementing the frontend of our application. Create an index.html file with the following content:

<!DOCTYPE html> 
<html> 
    <head> 
        <style> 
            button:disabled { color: red; } 
            .my-booking:disabled { font-weight: bold; color: green; } 
        </style> 
    </head> 
    <body> 
       <h1>Book a Seat</h1> 
       <h2 id="movie-label">Seats</h2> <!-- wraps movie id --> 
       <div id="seats_container"/>  <!-- wraps seats buttons matrix --> 
 
        <script> 
             // script goes here 
        </script> 
    </body> 
</html> 

In our HTML, we have included two key UI elements:

  • movie-label: A label that displays the current movie ID
  • seats_container: A div that will contain the buttons matrix for the current movie seats

Now, let's write the required script. We request ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Java EE Development with WildFly

Mastering Java EE Development with WildFly

Luca Stancapiano

Publisher Resources

ISBN: 9781788391078Supplemental Content