Our bookshelf-webapp

We'll implement a simple JSP application to investigate the way the web application integrates with the the framework services. The examples will cover some of the bookshelf service operations. Let's say:

  • Listing the categories, which will also be the main page (the index), it displays a list of the categories in the bookshelf, each entry linking to the 'list books in a category' page.
  • Listing the books in a category, given a category name as parameter.
  • Searching for books by filtering on author takes an author as search criterion and displays a list of results. This page will link to itself displaying the search bar on top of the results.
  • Adding a book to the bookshelf, which is made of a submit form page which takes in the user input and a confirmation page.

We'll also need a few pages dealing with authentication and session management.

Those pages will embed commonly used JSP chunks. For example, the initialization code or the code that checks if the session is valid, as well as the common menu at the top of most pages. The result display code is also broken down to chunks that can be included into pages.

The JSP application we'll implement is simple. It doesn't make use of many of JSP's cool extensions; it focuses on the OSGi bits. It's up to you to turn it into the JSP app of your dreams.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset