Chapter 8
Creating a tab
You can create a custom tabbed page to display along with the standard tabbed pages―Home, Student Catalog, Users, and so on. What you have to do to accomplish this depends on the sort of content you want the page to have.
At a minimum, you need to do the following:
1.Create a JavaServer Page with the content you want to display when the user selects the tab.
2.Add a permission to the PERMISSION database table to control access to the page. (See “Adding custom Permissions.”)
3.Add the permission description to ApplicationResources.properties and appropriate language versions if you plan to localize the application.
4.Edit the definition of those roles to which you want to assign permission to access the page.
5.Edit navigation.xml to include a definition of the page (and any JSPs to which the page provides links).
The following additional steps (which are beyond the scope of this document) are involved if the JSP contains server logic:
6.Create an action class to handle user input to the JSP.
7.Edit struts_config.xml to add action mapping for the JSP.
A look at what’s involved in displaying one of the standard tabbed pages―the Users
page―should give you an idea of how you might create a custom tab and allow users to access it.
The Users page
The Users page looks like this:
The tab’s label (Users) and the page label (Manage Users) are specified in the resource file
...classes/resources/lmm/properties/ApplicationResources.properties: